List Info

Thread: Display gridview in web page in insert mode and insert multiple rows into database




Display gridview in web page in insert mode and insert multiple rows into database
country flaguser name
United States
2007-07-13 15:50:13
Hello,
   I am designing a web page that is to be used as a data
entry form.
Each row contains 50 columns, and the user needs to be able
to input
about 25 rows on each page. To save some time from creating
so many
textboxes and rows in a table, I decided to do so in a
gridview;
however, I'm not sure if this is even possible. What I wish
to do is:
1) upon Page_Load, display the gridview in insert mode;
2)once the
user has input all the data into the gridview, validate each
row and
alert user to ALL errors; 3) if validation is successful,
loop through
each row and add the row to the database. Is anyone familiar
with
this? If so, would you give me some informations on how to
accomplish
this? Also, please give as many details as you possibly can
for I am a
newbie to ASP.NET.

Thanks so much


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Display gridview in web page in insert mode and insert multiple rows into databas
country flaguser name
United States
2007-07-17 19:44:40
You can do this but I would say its would be a waste of time
to trying
to loop through all rows of the GridView and perform a
single insert.
You should search gridview samples as asp.net has built in
providers
for working with gridviews without writing a single line of
code.

Gridview samples microsoft.com
http://msdn2.microsoft.com/en-us/library/aa479339.aspx


Also if your a visual learner check the video tutorial for
the "To-Do
list".  It is a quick 10 minute tutorial but servers as
a great
introduction to the Gridview/Detail view concept and also
will show
how how to AJAX Enable your application.

Hope this helps,

Kr3at.com

Developers List your services free
http://directory.kr3at.com


If your a .Net developer with some free time, we are looking
for VB,
C#, C++, and J# developers to collabrate on an ASP.NET CMS. 
Join the
project at http://forums.kr3at.com



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )