Results 1 to 3 of 3

Thread: data on page

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    data on page

    I have careated a search page where the user selects items from several drop down list controls as well as text boxes. When the search button is clicked the result is displayes underneath (in a datagrid).
    The datagrid has a few fields that are being displayed.
    A user may want to update a record.
    I would like to have the update page somewhere else rather than making the grid editable.
    So, when the user selects one of the records in the datagrid I want either to go to the edit.aspx to do the editing or to pop up the edit.aspx and the user then updates the data and then on saving the page closes and the user can then look at another record.
    My question is basically what is the best way to do this? Having a pop up window to edit the data or be redirected to edit.aspx
    My problems with this are as follows:
    If popup is the best way for this then I do not know how to do it
    I do know how to be redirected to edit.aspx and then save data but I do not know how to keep the data in the search as they were before editing data.
    Hope you are following me.

    Thanks guys

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: data on page

    If you are using DataGrid, then you might cosider the In-Build editing facility of the DataGrid, I use this if the Table only contains few fields, if you have large number of fields then use a seperate page for editing. Here is a great article on how you can do DataGrid Editing on asp.net

    http://aspnet.4guysfromrolla.com/articles/071002-1.aspx
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3
    New Member
    Join Date
    Jan 2005
    Posts
    1

    Re: data on page

    I'm in the same boat. I just want to snag the ID from the keyfield and pass it to an Edit page populated with TextBoxes, query the database and populate the textboxes with the existing data, allow the user to change the contents of the textboxes and click "Save" to save the changes back to the database.

    I'm killing myself right now trying to find an example of how to do this seemingly simple task, but all of the tutorials/articles I run across all keep shoving a DataGrid at you and telling you how to modify it to do this.

    I also have too many fields and lots of validation I'd like to implement and just want to bind a bunch of textboxes to a database record.

    If anybody has any advise, I'm all ears

    (BTW, I'm using a SQL Server table and am coding using VS.NET 2003)

    TIA,

    Doug

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width