|
-
Oct 2nd, 2004, 03:58 PM
#1
Thread Starter
Hyperactive Member
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
-
Oct 2nd, 2004, 04:44 PM
#2
Banned
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
-
Oct 2nd, 2004, 07:48 PM
#3
Thread Starter
Hyperactive Member
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
-
Oct 2nd, 2004, 09:17 PM
#4
Banned
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
-
Oct 2nd, 2004, 11:40 PM
#5
Thread Starter
Hyperactive Member
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
-
Oct 3rd, 2004, 01:11 PM
#6
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|