listbox control in C#
-
i took two listbox web server controls..ok In My Listbox1 there is some data which comes from database on client side i added some elements from listbox1 to listbox2 i have done this by using javascript ok... Now on some event my page is going to refresh.. so what ever the data i have add on client side in listbox2 vanishes as page get refresh.. what i think as .Net provide a view state so how it get vanishes .... so can u tell me where i m wrong... the reason behind to think so, is that (if we add some data in text box through javascript or we just enter through our key board) and when it do the server trip it remains there ,then why not for list box.. so please help me and tell me where i m wrong... thanks in advance...
-
i took two listbox web server controls..ok In My Listbox1 there is some data which comes from database on client side i added some elements from listbox1 to listbox2 i have done this by using javascript ok... Now on some event my page is going to refresh.. so what ever the data i have add on client side in listbox2 vanishes as page get refresh.. what i think as .Net provide a view state so how it get vanishes .... so can u tell me where i m wrong... the reason behind to think so, is that (if we add some data in text box through javascript or we just enter through our key board) and when it do the server trip it remains there ,then why not for list box.. so please help me and tell me where i m wrong... thanks in advance...
This is a question for the ASP.NET[^] forum.
Microsoft MVP, Visual C# My Articles