hi i have a problem regarding to datagrid in aspdotnet.i
have a datagrid in my application.i have to place
add,edit,delete buttons or links what ever it may be.
now the problem is if i click on add button then the page
has to redirected to another form called "xyz.aspx" and if
i click on edit button the page has to redirected to
another form called "abc.aspx".i am phasing the problem
that if where ever i click on the datagrid the cursor goes
to gv1_SelectedIndexChanged event.please tell me the
solution about the code.
Answer Posted / anant anand gupta
You can use the ItemCommand event of the datagrid.
give each command button a 'CommandName'
And 'CommandArgument' if required. CommandArgument you can
assign at the time of ItemDataBound (or RowDataBound) event
of the DataGrid. In the event handler method you can check
for the command name and perform the required task.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to comment out asp.net tags?
What is in a session cookie?
What is difference cookie and session?
What is the used of "ispostback" property?
What is server side routing?
Explain login control and form authentication.
What is the use of placeholder control?
What is the difference between Classic ASP and ASP.Net?
can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it
What is IPostBack? How to use it?
What are client activated objects and server activated objects?
What do you understand by aggregate dependency?
what is AutoEventWireUp and what is the use of This property explain in details?
What is postback request?
Can we handle the error and redirect to some pages using web.config?