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  |  

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


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


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.

 


SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com
AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/
Willhite & Sharron Realtors
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com

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