Has any one experienced and resolved blocking postbacks with the OnClientClick="return false;" tag on an asp link button or asp button?
It works "fine" with IE7 and XP/2003 server and lower, however i just bot a new box with vista home premium, and my IE7 no longer allows the above funtion to work as previously expected.
What i use it for is to show or hide divs, and do other client side events. I use the asp tags so that way i can pass in the dynamic control name when used in a master/content page (ctl00_ctl01_btnShowDiv, i.e.)
My js function showDiv works fine because it works in all other OS's n browsers, just not IE7 vista.
It should show the div and not postback, however it is posting back effectively resetting the div back to display: none;
Thanks for any input.
It works "fine" with IE7 and XP/2003 server and lower, however i just bot a new box with vista home premium, and my IE7 no longer allows the above funtion to work as previously expected.
What i use it for is to show or hide divs, and do other client side events. I use the asp tags so that way i can pass in the dynamic control name when used in a master/content page (ctl00_ctl01_btnShowDiv, i.e.)
Code:
<asp:LinkButton ID="lbShowAttachments" runat="server" Text="Upload My Own Photos" OnClientClick="showDiv(this,'divAddAtach');return false;" />
My js function showDiv works fine because it works in all other OS's n browsers, just not IE7 vista.
It should show the div and not postback, however it is posting back effectively resetting the div back to display: none;
Thanks for any input.