Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2011-09-27
3
229 Views
Last Modified: 2013-11-05
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"/>
0
Comment
Question by:welcome 123
3 Comments
 
LVL 12

Expert Comment

by:Ramkisan Jagtap
ID: 36712063
u can use html anchor tag.
<a href="yourpath"></a>
0
 

Author Comment

by:welcome 123
ID: 36712174
I have other needs to wher I have to use a grid in which clicking on itemid should take you to another page
0
 
LVL 41

Accepted Solution

by:
guru_sami earned 125 total points
ID: 36712186
Instead of HyperLinkField try using TemplateField with HyperLink control like here.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question