Grid View Problem
Hello i would like to add a link button in the grid view along with the predefined ones as Assign. This will be shown in grid view. What i need is when i click on this i would like to have some execution to be occurred how it will be possible..

Dorababu MekaPosted Jun 23, 2009, 9:31 AM
My grid view looks as follows
Course name Course Id Faculty Select User
-----------------------------------------------------------------------
ASP Asp101 XYZ Edit/Assign |
-----------------------------------------------------------------------
C# C#101 ABC Edit/Assign |
------------------------------------------------------------------------
and so on
What i need is when i click on assign i will redirect to another page there i will display all student names in a grid view as follows
Student name Student Email Registered Courses Options
-------------------------------------------------------------------------------------------------------
Abc [email protected] reg Checkbox
--------------------------------------------------------------------------------------------------------
Abc [email protected] reg Checkbox
----------------------------------------------------------------------------------------------------------
and so on ..
For this i need to write
Subramanyam RompicherlaPosted Jun 23, 2009, 9:00 AM
I hope below code will be use for you
private void GridView1_RowCommand(object sender, System.Web.UI.WebControls.GridViewCommandEventArgs e)
{
if (e.CommandName == "Select") {
//Write the Stuff here
}
if (e.CommandName == "Scrap") {
//I do my stuff here
}
}