I have a anchor tag like this
<a href="" class="search gl">
<img src="_gfx/cmn/goButton.png" class="searchbutton" name="btn"></img>
</a>
Button from jquery I am setting this href based on different conditions to different page.
$(".search gl").attr("href", "test.aspx");
But when I click on that anchor its loading the test.aspx page but not hitting the page_load event.I have to add some more conditions in that page load. Please help me.
Thanks
if the page is loaded but the event is not hit probably you have missed to specify the handler for the page load.
if in your page you got
AutoEventWireup="true"it will add the handler in the Page.aspx.Designer
otherwise you have to do it manually