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, 07:28 PM
By Simon in forum VB Classic
Last Post: 03-04-2002, 05:10 AM
By John in forum VB Classic
Last Post: 10-12-2001, 05:09 PM
By anne in forum VB Classic
Last Post: 11-26-2000, 04:05 PM
Last Post: 10-26-2000, 02:43 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL