Hello, I have a few issues but this one is stopping me in my tracks.
I am making a asp.net app using
VB, and I have some basic controls on my web form: drop down list box, button, label. Now when I double click on the drop down box and I get the SelectedIndexChanged event and fill it in with some basic code, when I run the app that event doesnt even get ran. Now I have a web form button and web form drop down box. Also the button command and text values are Submit.
Also I am trying to store what value was selected in the drop down box and carry it over to the postback page so I can do other means with that value, but I am unable to save it using ViewState() function. Well am unsure if its saving the value but getting the value out of it could be failing also. I cant debug it since the server isnt setup to do it, so I kinda have to use the lable to send output text.
Also another problem, in my button event I have this code
ViewState.Add("INDEX", 1)
in my load event I got this code
If IsPostBack = True Then
Label1.Text = CType(ViewState("INDEX"), String)
end if
The value isnt being sent over, and those 2 lines dealing with ViewState are the only code related to that, also I have enableviewstate for the button and drop down to true. I am not making a new viewstate obj which I dont think I need to myself. But anyway the code isnt working so if there are any settings that I need for this to work let me know.
Thank you.