Results 1 to 6 of 6

Thread: Explain the concept please?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    Canton, GA
    Posts
    487

    Explain the concept please?

    I don't get it... I know this may sound silly to some people...

    I need a web form that is automatically populated with a users information pulled from a database, so they can edit the information and save... but the only thing my books seem to cover and I can find most documentation about is using a Datagrid??

    I don't want my results to be returned in a grid style... am I missing something or overlooking the concept?

    Can someone point me in the right direction?

    Thanks!

    Webgye

  2. #2
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492

    Re: Explain the concept please?

    If you dont want a grid how else do you want to pull back and edit data?

    There is a great example on asp.net of updating / editing a datagrid


  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    Canton, GA
    Posts
    487

    well...

    I thought I had explained this above...

    I want it to be in a form... You remember the good old days when we used forms?

    Webgye


  4. #4
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492

    Re: well...

    Why would you want an "access" like form on the web?

    You can still do it this way but its a pain in the ass...

    Just create a web form and on an UPDATE or whatever kind of event you simply pull the record and bind the data to the fields.

    Jon

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    Canton, GA
    Posts
    487

    ok...

    Your Killing me Jon


    Can you give me an example? I would offer to pay you but all my spare cash goes to my ex-wife

  6. #6
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I will assume you are talking about a user information form like we have on this site when you edit your profile....

    All you need to do is retrieve the data from the database with either a dataset or datareader object.

    Then you go through the columns in the row that you want to display and set the control values to those column values.

    When the user updates, you collect it from the form, and call save.

    It is super simple. If you are looking for more advanced concepts, I seen a cool databinding sample that is pretty slick:
    http://msdn.microsoft.com/asp.net/us...ormbinding.asp

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