Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDisable Submit buttonDisable Submit button
Previous
 
Next
New Post
8/30/2007 4:35 AM
 

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 5:05 AM
 

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 10:59 AM
 

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
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDisable Submit buttonDisable Submit button


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out