BUG REPORTING

S

Sadun Sevingen

ON STATE CONTROLS...

i fill my listbox's just in fisrt load. then if user needs to add value
javascirpt adds a value to the listbox and selects it... however asp.net
state does not recognize it... for any reload current state of listbox which
is changed by javascript returns to the old which is look like first load...

this means VIEWSTATE control does not recognize changes on the web
controls... (like adding opption)


System: Windows XP SP2
framework 1.1 (updated today)
 
C

Cowboy \(Gregory A. Beamer\) [MVP]

This is not a bug, per se, as there is a separation between the server and
client.

When you use ViewState, it is loaded on the server side. You are loading
values on the client side, with JavaScript. How is the server supposed to
know what is happening on the client.

If you want to load values in this manner, you really need to take a trip to
the server and add values, so they can be reflected in the ViewState of the
dropdown control.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
 
K

Ken Dopierala Jr.

Hi Sadun,

You can save each new listbox addition on the client-side into a hidden
field as a comma delimited screen (or another delimiter if your fields have
commas). When you get back to the server split the string and add the
values to the listbox, database, or wherever they need to go. Good luck!
Ken.
 
S

Sadun Sevingen

VIEWSTATE controller must see that there is a value come it which is not in
controller... JUST LIKE TEXTBOX and just add it...


owwww i seee... just value send... dropdown text cannot be regonized by
server thats ok ... i agree thats not a bug...
 
S

Sadun Sevingen

thanks i handle it with writing it to session and reloading...

it seems to be bug for me... just not :)

thanks for help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top