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 / sasireddy

Hey,

There is one more option do that.i.e. Take one
Tepletecolumn,in that u should like this

<asp:TemplateColumn HeaderText="Add/Edit/Delete">

<ItemTemplate>

<font face="verdan" size="2"><a href="Add.aspx"
runat="server" ID="A1">Add</a>&nbsp;&nbsp;<a
href="Edit.aspx" runat="server"
ID="A2">Edit</a>&nbsp;&nbsp;<a href="Delete.aspx"
runat="server" ID="A3">Delete</a>

</font>

</ItemTemplate>

</asp:TemplateColumn>

from this you can do Process.......

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create discussion forum in asp.net mvc? : Asp.Net MVC

535


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

1410


What are the various ways to send content from one page to another?

526


how to include timer or counting time to display next page in asp.net

1607


What is the biggest disadvantage of “Other Return Types” in Web API?

944






What is the use of session in web application?

489


What is the difference between user control an custom control?

621


What are Master Pages in ASP.NET?

581


Describe the diffeerence between inline and code behind?

515


Elaborate differentiation between ViewState and SessionState?

618


How can you ensure a permanent cookie?

556


What is a session in programming?

560


Difference between web user control and web custom control?

506


Can you set which type of comparison you want to perform by the comparevalidator control?

526


What is datagrid asp.net?

501