DataGrid's DataSource

J

Johnny

I have an aspx page with 2 text input. User will enter in
values and press the "Add" button, which will add a
record with their values onto a datagrid. I need to find
a way to store data and then insert into the database
when the user is ready to save. I'm thinking of using an
array to store the data and set the datasource to it, but
I'm fairly new with this stuff, so any help is
appreciated. My big concern is how to keep track of the
array, because I would lose this information when the
user clicks to add a new record, because the page would
load again. Does this mean I would have to use some sort
of session variable. Also, the user should be able to at
any point in time delete an item from the grid and add a
new one. If you've done this before or something
similar, please respond with info

Thanks
 
D

David Wier

Why not just take the data from the text boxes and insert the data into the
database, then bind or rebind the DataGrid with the data from the table?

--
David Wier
August Wind Software
http://aspnet101.com
http://aspexpress.com
Home of ASP Express - the best ASP/HTML text editor in the Galaxy!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top