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  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Disable Submit button
Previous Previous
 
Next Next
New Post 8/30/2007 1:35 AM
User is offline M Bouwman
192 posts
www.mvic.nl
9th Ranked


Re: Disable Submit button 

By the way, I did this in vb:

Dim sb As New StringBuilder
sb.Append("if (typeof(Page_ClientValidate) == 'function') { ")
sb.Append("if (Page_ClientValidate() == false) { return false; }} ")
sb.Append("this.value = 'One moment...';")
sb.Append("this.disabled = true;")
sb.Append(Me.Page.GetPostBackEventReference(Me.btnSubmit))
sb.Append(";")
btnSubmit.Attributes.Add("onclick", sb.ToString())

And it said GetPostBackEventReference is obsolete, and I should use ClientScript.GetPostBackEventReference.

 

 
New Post 8/30/2007 2:05 AM
User is offline M Bouwman
192 posts
www.mvic.nl
9th Ranked


Re: Disable Submit button 

And last but not least (getting off topic, I know, I am sorry Jon).

I have this page where, if a user visits it, the visit get's logged into the database.
However, when the user refreshes the page, I don't want it to get logged.
So I am looking for a way to detect a refresh.

I thought I had a nice method here: http://www.codeproject.com/aspnet/Detecting_Refresh.asp?df=100&forumid=176652&exp=0&select=1359535

But it doesn't seem to work (I guess because a module doesn't inherit System.Web.UI.Page....

I've also seen that there are javascript kind-of solutions for this.

Does anyone have an idea how to do this?

 
New Post 8/4/2008 7:59 AM
User is offline ljjoey
9 posts
10th Ranked


Re: Disable Submit button 

I've done this before and it is fine as far as it goes.   But now say that I have 2 buttons on the page and I need to disable both on the click of one or the other.  "This" works well for the one pressed, but obviously won't work for the other and using the find by element id has issues because of the way the page is rendered.  Any suggestions?

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Disable Submit button
 


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.

 


Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com
telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com
CrystalTech
CrystalTech Web Hosting™ provides first-class service and support. Our value-packed ASP.NET plans offer DNN installation, SQL 2005 and up to 100 domain names starting at only $16.95 per month!
CrystalTech.com

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