I am displaying a table in the page with the help of grid view where we get the contents of the job vacancies and also button displayed with each row having two buttons "APPLY JOB" and "SAVE JOB". I want to handle the on clicking event of each buttons based on the specified row.I have tried a lot of coding. If i click on apply job of one if the row button then it save or handle some event based on the button of that row.
thanks the code i got is working fine.
Now i want that the button in the row i select the data button pressed row data should be fetched in the string.
So that i can use it to store it in the database.
please give me ans as soon.
Loading
Arul ManivannanPosted Mar 22, 2013, 1:02 AM
In Design page, add the buttons SAVE JOB and APPLY JOB in the gridview like this.
Create gridview_rowcommand event on code behind file
protected void gridview1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "savejob")
{
// WRITE YOUR SAVE JOB LOGIC HERE
}
else if (e.CommandName == "applyjob")
{
// WRITE YOUR APPLY JOB LOGIC HERE
}
}
Please intimate if my answer is insufficient. Thanks
Arul Manivannan.