Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What does asp.net stand for?

1204


Web API supports which protocol?

1425


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

2208


How do you initiate validation on the server manually? What are two situations when you might you want to do that?

1887


Define globalization and localization.

1039


Why would a company use an application service provider?

986


How can we provide the WebParts control functionality to a server control?

1055


Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?

1249


Can I combine classic asp and asp.net pages?

1143


What is a page life cycle? What are the events in a page life cycle?

940


Will the asp.net validators run in server side or client side?

1196


Can you explain composite pattern?

1099


What is the benefit of WebAPI over WCF?

1065


What are Caching techniques in .NET

1107


What is semantic gap?

1069