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

Showing Answers 1 - 3 of 3 Answers

Balasubramanian.R

  • Jul 24th, 2006
 

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

  Was this answer useful?  Yes

shankar

  • Aug 24th, 2006
 

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>

  Was this answer useful?  Yes

kevin

  • Nov 2nd, 2006
 

set Gridview.AutoGenerateDeleteButton="True" Gridview.AutoGenerateSelectButton="True"

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions