Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I am working on a project in which i add a image button and some link button on master page.
on imagebutton click event i coded for link button show/hide.
after running the project the default value are loaded as defined, but when i click the imagebutton then the page associate with it's postbackurl property is successfully loaded but link button has no effect. after second click on that imagebutton it will fire the onclick event.
 
i use button control instead of imagebutton, but there is no chnage.
 
Can any one solve this problem.
Please help.
Posted 27-Jul-12 21:53pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The most likely reason is that you flip your value in an event, and set it in page load. Page load fires first, which creates the lag, move your page load code to page prerender and the order will be correct.
 
Read on how to use your debugger, you can't code without it.
  Permalink  
Comments
Mohd Imran Saifi at 28-Jul-12 4:00am
   
Thanks for the answer. i forgot about prerender event. Thanx
qasimtyagi at 19-Sep-12 3:31am
   
i malso finding, link button is not working on single click when we using postbackurl on code behind to redirect the page in new tab
Christian Graus at 19-Sep-12 3:35am
   
I suspect you need to post a new question, where you post code and define 'not working'

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 435
1 Maciej Los 335
2 OriginalGriff 278
3 CHill60 180
4 Sinisa Hajnal 180


Advertise | Privacy | Mobile
Web02 | 2.8.141022.2 | Last Updated 28 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100