problem regarding editing already saved data in a webform


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: problem regarding editing already saved data in a webform

  1. #1
    Join Date
    Feb 2004
    Posts
    22

    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

  2. #2
    Join Date
    Apr 2004
    Location
    New York City
    Posts
    538
    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

  3. #3
    Join Date
    Feb 2004
    Posts
    126
    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

  1. Data Display problem in MSFELXGRID Table
    By Muhammad Waqas in forum VB Classic
    Replies: 4
    Last Post: 12-18-2005, 07:28 PM
  2. editing data in a database
    By Simon in forum VB Classic
    Replies: 1
    Last Post: 03-04-2002, 05:10 AM
  3. Data List Control Problem
    By John in forum VB Classic
    Replies: 0
    Last Post: 10-12-2001, 05:09 PM
  4. Data report problem!!!
    By anne in forum VB Classic
    Replies: 1
    Last Post: 11-26-2000, 04:05 PM
  5. 230k XML data Files - any problem?
    By brian in forum XML
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center