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 are the new navigation controls in asp.net 2.0?

988


Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?

1052


How to deploy/publish webservices?How many ways?Plz explain me

2266


What is the difference between trace and debug in asp.net?

1120


What is the difference between a default skin and a named skin?

1077


i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1850


How to use multiple scriptmanager controls in a web page?

1085


What is a web pool?

1100


What is strong-typing versus weak-typing?

1104


How does the cookies work in asp.net?

1141


What are the 3 levels at which content pages can be attached to Master Page?

1109


What is the difference between c# and .net?

1033


Can we have multiple master pages in asp net?

959


What is the procedure to create the environment for asp.net? : asp.net mvc

1029


What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?

959