problem regarding editing already saved data in a webform
I am facing a problem in editing a form which displays data that was submitted earlier.
Suppose there is a dropdown list(web form control) and user selects an input and submits the form.
Now when the user wants to change this input he goes back to form.
What i m doing is i m retrieving the input he submitted last time and displaying the dropdown list with that input selected using following code -
ddlInput.selectedindex = input;
Now the problem is when the user selects diferent input i am not able to get that new value.
Can anyone please solve my problem.
Same is true for other web controls.
Can't you pass the data in a QueryString or hidden form field, or using the HTTP POST method in a form?
Or you could look up "Passing Server Control Values Between Pages" in the Visual Studio help.
manish237, Why can't you get the selectedItem.Value which will always give your the current item selected and pass it to your querystring.
Hope that helps
By Muhammad Waqas in forum VB Classic
Last Post: 12-18-2005, 08:28 PM
By Simon in forum VB Classic
Last Post: 03-04-2002, 06:10 AM
By John in forum VB Classic
Last Post: 10-12-2001, 06:09 PM
By anne in forum VB Classic
Last Post: 11-26-2000, 05:05 PM
Last Post: 10-26-2000, 03:43 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center