?
Solved

ImageButton not redirecting bcos of WebForm_DoPostBackWithOptions

Posted on 2010-09-08
3
Medium Priority
?
1,048 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

765 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