Interviewer And Interviewee Guide

ASP.NET 2.0 Interview Question:

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: Administrator
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 &"')").
Submitted by: Administrator

Read Online ASP.NET 2.0 Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.