DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004

    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.

    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.


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


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

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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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

By using this site, you agree to the Privacy Policy