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

What is fulltrust?

559


i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?

1840


What is difference between URL and URI?

627


How can we identify that the page is post back in asp net?

511


What is the advantage of using Windows authentication in a Web application?

557






Which method do you use to kill explicitly a users session?

621


How do you remove duplicates without using remove duplicate stage?

613


How can we inherit a static variable?

541


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

491


Explain about ASP.NET?

633


What is asp.net and ado net?

516


What is viewstate? What does the “enableviewstate” property do?

524


Demonstrate Render and PreRender?

603


What is the difference between session and viewstate?

515


Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?

1717