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?
Submitted by: AdministratorYou 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 &"')").
Submitted by: Administrator
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 &"')").
Submitted by: Administrator
Read Online ASP.NET 2.0 Job Interview Questions And Answers
Top ASP.NET 2.0 Questions
☺ | Web service support |
☺ | What types of data validation events are commonly seen in the client-side form validation? |
☺ | 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? |
☺ | How to rename a table using sql queries? |
☺ | Can a .NET web application consume Java web service? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |