-
problem regarding editing already saved data in a webform
Hi
I am facing a problem in editing a form which displays data that was submitted earlier.
For e.g
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.
Thanks
-
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.
-Andrew
-
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
Patrick
Similar Threads
-
By Muhammad Waqas in forum VB Classic
Replies: 4
Last Post: 12-18-2005, 07:28 PM
-
By Simon in forum VB Classic
Replies: 1
Last Post: 03-04-2002, 05:10 AM
-
By John in forum VB Classic
Replies: 0
Last Post: 10-12-2001, 05:09 PM
-
By anne in forum VB Classic
Replies: 1
Last Post: 11-26-2000, 04:05 PM
-
Replies: 1
Last Post: 10-26-2000, 02:43 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks