PDA

Click to See Complete Forum and Search --> : Explain the concept please?


Anjari
Oct 2nd, 2004, 03:58 PM
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

jhermiz
Oct 2nd, 2004, 04:44 PM
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

:p

Anjari
Oct 2nd, 2004, 07:48 PM
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

:p

jhermiz
Oct 2nd, 2004, 09:17 PM
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

Anjari
Oct 2nd, 2004, 11:40 PM
Your Killing me Jon :p


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

hellswraith
Oct 3rd, 2004, 01:11 PM
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/using/building/web/default.aspx?pull=/library/en-us/dnaspp/html/aspformbinding.asp