?
Solved

ImageButton not redirecting bcos of WebForm_DoPostBackWithOptions

Posted on 2010-09-08
3
Medium Priority
?
1,073 Views
Last Modified: 2012-05-10
I have a user control embedded in the master page. The user control has a button and an image button. Clicking on the image button would redirect me to a particular page. The intended works just fine in all pages except one. When i look into the generated HTML source, i see that the code generated for the button in the page where it doesnt work is

<a id="ctl00_AccountidPanel_usercontrol_homeLink" href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$AccountidPanel$usercontrol$homeLink&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))">Go to Home</a>

and in the other pages it is

<a id="ctl00_AccountidPanel_usercontrol_homeLink" href="javascript:__doPostBack('ctl00$AccountidPanel$usercontrol$homeLink','')">Go to Home</a>
0
Comment
Question by:rajasoorya_kc
3 Comments
 
LVL 9

Expert Comment

by:rfportilla
ID: 33633626
Not terribly familiar with this, but let me take a stab at it.  Is this source code bleeding through?  Check quotes, parentheses, and or html closing tags.  

It looks like the code is not getting executed correctly.  I think it's just a matter of finding what is different about this page.  That's hard to do without knowing more about the structure of your site, how the code is put together, etc.  (At least for me.)

0
 
LVL 5

Accepted Solution

by:
muhammadyasir earned 1500 total points
ID: 33633640
0
 

Author Closing Comment

by:rajasoorya_kc
ID: 33633697
Thanks Muhammad.
It worked fined when i added causesValidation=false for the link.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Loops Section Overview
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

807 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