i want to design a database application contains different pages
main page should contain a gridview and some buttons(insert,update,search,delete).
if insert button is clicked application move to respective page, then details are given in text boxes and when button(insert record )is clicked the data should be inserted and should display on the main page in a gridview control.same scenerio for update ,search and delete buttons.
please help me in this regard.thank you
umair mohsinPosted Feb 6, 2015, 11:41 PM
Joginder BangerPosted Feb 6, 2015, 3:05 PM
Mohsin,
Fist of all need bind the gridview view on page load event. Add the every button as per your requirement. Why are used the button I think link is very cool as per you question. I make a sample ,
Add the link like this type
Edit
when you are click above link move to your respective page. On respective get the id on page onload event.
Like
public page_load(object sender,Eventagrs e)
{
int i=Convert.Int32(Query.String["EmpID]);
//Make the stuff get a records on database as per ID.
}
I hope you got something idea how do this.
I share one link check this for better https://csaspnetgridview.codeplex.com/