How to avoid page load event calling towce when called froma hyperlink

I have a page which calls another page through a hyperlink in a grid and the page load event is called twice because of this. How to avoid this, the page.ispostback does not work as its being called from another page and the hyperlink in the grid is something like this below:

<asp:HyperLinkField HeaderText="RNo" Text="CBRNo" DataTextField="RNo" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Agency.aspx?ID={0}" SortExpression="RNo"/>
welcome 123Asked:
Who is Participating?
guru_samiConnect With a Mentor Commented:
Instead of HyperLinkField try using TemplateField with HyperLink control like here.
Ramkisan JagtapLead DeveloperCommented:
u can use html anchor tag.
<a href="yourpath"></a>
welcome 123Author Commented:
I have other needs to wher I have to use a grid in which clicking on itemid should take you to another page
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.