GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET 2.0
Go To First  |  Previous Question  |  Next Question 
 ASP.NET 2.0  |  Question 97 of 161    Print  
In A Page I have gridview with Options of select and delete using hyperlink when i am selecting any one of then it has to open another page how can it

  
Total Answers and Comments: 3 Last Update: November 02, 2006     Asked by: vishnuVardhan 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 24, 2006 02:31:26   #1  
Balasubramanian.R        

RE: In A Page I have gridview with Options of select a...

Ans 1: You can have template column for select and delete instead of the databound column. In which you can mention the destination page where you need to navigate.

Ans 2: Using RowDataBound event you can add attribute to the select and delete hyperlink like:

e.Row.Cells(CellPosition).Controls(0).Attributes.Add( OnClick return fnJavascriptFunction() )

e.Row.Cells(CellPosition).Controls(0).Attributes.Add( OnClick return fnJavascriptFunction(' & If any argument & ') ).

Thanks


 
Is this answer useful? Yes | No
August 24, 2006 16:20:38   #2  
shankar        

RE: In A Page I have gridview with Options of select a...

goto the html page of the webpage

in the datagrid code write like

<Columns>

<asp:TemplateField >

<ItemTemplate >

<a href linkpage.aspx >linkpage</a>

</ItemTemplate>

</asp:TemplateField>

</Columns>


 
Is this answer useful? Yes | No
November 02, 2006 16:16:47   #3  
kevin        

RE: In A Page I have gridview with Options of select a...
set Gridview.AutoGenerateDeleteButton True Gridview.AutoGenerateSelectButton True
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape