Answers

Question and Answer:

  Home  ASP.NET 2.0

⟩ 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?

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.

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 &"')").

 160 views

More Questions for you: