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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Page Refresh Upon Button ClickPage Refresh Upon Button Click
Previous
 
Next
New Post
10/9/2008 12:22 PM
 

Hello,

In my module, I have button A. When I click button A, it's suppose to refresh the page, adding query string into the URL so that the Page load can read the query string and do the right job.

This works OK. However, if I leave the webpage on overnight and click button A again the next morning, the page just refresh. It doesn't seem like the button click even registered.

Q1) Am I suppose to refresh the controls in order to avoid this situation? Why? How?

Q2) I have to do the page redirection because I don't want the user to not be able to click the back button. It seems like all ASP buttons use POST and so redirecting it simulates a GET request rather than a post request. Is there a cleaner way of doing this?

Please help me, this has been a big problem for me. Thank you.

 
New Post
10/9/2008 12:28 PM
 

This works OK. However, if I leave the webpage on overnight and click button A again the next morning, the page just refresh. It doesn't seem like the button click even registered.

So the button causes postback but the querystring value is null? Or does the querystring show up in the URL at all?

 
New Post
10/9/2008 4:40 PM
 

I'm sorry. Let me be more clear:

I have a gridview with button A, B.

There's a home button (H) (Not part of the gridview)

Buttons A, B, H works as expected. At 5:00 PM, I click button A. The query string is &A=1.

Overnight, when I click button B, the query string is still &A=1. I expect it to change to &B=1.

Overnight, clicking the Home button doesn't take me home either: query string is still &A=1. I expect clicking the home button to remove all of the query string I've added (no &A=1 or &B=1). 

I hope I've answered your question.

Another thing I want to ask is if this is related to ASP.NET page unloading? If there is a possibility, can you explain the correlation? I'm thinking it might be related because since the website is not being accessed overnight, it seem like it might be unloaded, but then why does that not trigger a button click event? Another reason is when the page refreshes, sometimes, it take a while to refresh, and this behavior is similar to the behavior I've read about when a page unload. If this is a possibility, how can I force this situation to happen? What other possible explanations are there?

 
New Post
10/27/2008 11:03 AM
Accepted Answer 

Sorry - I didnt receive a notification that you replied.

It does sound like your page is unloading. If you use the onclick method in javascript for your buttons, you can avoid this. That way a postback is not necessary; it would be a window.location function. Unless you need to keep v13wstat3 from the controls... but then again you could also put those values in query strings. Hope this helps.

 
New Post
11/3/2008 6:12 PM
 

Thank you for your reply. I don't think the JS method will work with my situation, and these are query string values that I am working with. However, since you also think that it's the page unloading issue, I have a few options that I can try out, maybe the DNN keep alive modules will do. I'll look into these when I have time. Thanks again.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Page Refresh Upon Button ClickPage Refresh Upon Button Click


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