Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How to Prevent Postback on Javascript call
Previous Previous
 
Next Next
New Post 6/23/2008 4:40 AM
User is offline deepak
51 posts
10th Ranked


How to Prevent Postback on Javascript call 

Halo guys,

 

I have an image button on my page that runs some

<asp:ImageButton runat="server" id="ImageButton3"
ImageUrl="Graphics/Help.png" AlternateText="Help"
onclientclick="window.open('help_rent.aspx,'','',''')" />



It works okay--it pops up a separate help window with content from another
page--but it also refreshes the current page, which I want to prevent.

How do i stop refreshing the current page..?

How do I stop the default behavior?

Kindly help me in this regard..

all replies are appreciated..

 
New Post 6/23/2008 6:42 AM
User is offline Ian Robinson
645 posts
www.engagesoftware.com
7th Ranked


Re: How to Prevent Postback on Javascript call 

Hey Deepak,

Is there any way you could make it a regular link instead of an ImageButton? If you do not need to post back - there may not be a good reason to be using the Button.

Take care,

Ian


Ian Robinson
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How to Prevent Postback on Javascript call
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


ADefWebserver.com
DotNetNuke® Module Development Help Website
ADefWebserver.com
Get Smarter Mail, SmarterStats, SmarterTickets
Windows mail server, web log analytics, and customer service management software - Free Editions Available!
www.smartertools.com
DotNetNuke Modules, Skins, Training and Consulting
If you want DotNetNuke done right then look no further. Developed Solutions provides module development, skin design, user and developer training and consulting. Based in Adelaide, Australia, we offer our services worldwide.
www.developedsolutions.com.au

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP