Click here to Skip to main content
13,199,311 members (68,714 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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
Updated 2-Jan-17 23:15pm

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 28-Jul-12 4:00am
   
Thanks for the answer. i forgot about prerender event. Thanx
qasimtyagi 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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web04 | 2.8.171020.1 | Last Updated 3 Jan 2017
Copyright © CodeProject, 1999-2017
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