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  |  

AspDotNetStoreFront
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Page Refresh Upon Button Click
Previous Previous
 
Next Next
New Post 10/9/2008 10:22 AM
Resolved
User is offline hn1
24 posts
10th Ranked


Page Refresh Upon Button Click 

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 10:28 AM
User is offline Jermski
26 posts
www.Jermski.com
10th Ranked


Re: Page Refresh Upon Button Click 

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 2:40 PM
User is offline hn1
24 posts
10th Ranked


Re: Page Refresh Upon Button Click 

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 9:03 AM
Accepted Answer 
User is offline Jermski
26 posts
www.Jermski.com
10th Ranked


Re: Page Refresh Upon Button Click 

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 3:12 PM
User is offline hn1
24 posts
10th Ranked


Re: Page Refresh Upon Button Click 

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 Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Page Refresh Upon Button Click
 


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.

 


Module Development by Engage Software
Specializing in custom module development, training and skinning.
www.engagesoftware.com
BataviaSoft DotNetNuke Solutions
BataviaSoft offers custom DotNetNuke solutions especially for the European and the South East Asian market.
www.bataviasoft.com
Viva Portals, L.L.C.
Expert module development and graphic design.
www.continure.com

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