J
JMehta
Hi,
I am relatively new at .net applications and am having trouble doing the
following. I have tried to read the help and discussion groups but cannot
seem to be able to do what is required.
I have a Master Page and a content page. On the content page I have:
1) a gridview (GridView1) with 4 fields
Name
Date
AreaCode
PhoneNumber
2) Button1 (Upload)
3) Button2 (Save)
4) Button3 (Select)
I also have an excel spreadsheet with 4 columns (same as the gridview columns)
When the user clicks Button1 (Upload), I would like to have the contents of
the excel spreadsheet show on the GridView1.
When the user clicks on Button2 (Save), I would like to add the data from
the gridview to an SQL database table (NameInfo), I would like the gridview
to be blank after the save and a message saying "data added". If the number
of records added can be displayed in the message that would be great.
When the user clicks on Button3 (Select), I would like to show all the
records from the SQL database table (NameInfo).
Any help would be much appreciated.
I am relatively new at .net applications and am having trouble doing the
following. I have tried to read the help and discussion groups but cannot
seem to be able to do what is required.
I have a Master Page and a content page. On the content page I have:
1) a gridview (GridView1) with 4 fields
Name
Date
AreaCode
PhoneNumber
2) Button1 (Upload)
3) Button2 (Save)
4) Button3 (Select)
I also have an excel spreadsheet with 4 columns (same as the gridview columns)
When the user clicks Button1 (Upload), I would like to have the contents of
the excel spreadsheet show on the GridView1.
When the user clicks on Button2 (Save), I would like to add the data from
the gridview to an SQL database table (NameInfo), I would like the gridview
to be blank after the save and a message saying "data added". If the number
of records added can be displayed in the message that would be great.
When the user clicks on Button3 (Select), I would like to show all the
records from the SQL database table (NameInfo).
Any help would be much appreciated.