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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Page Load Running twicePage Load Running twice
Previous
 
Next
New Post
3/12/2009 12:19 AM
 

I am trying to convert a survey that I had on an old survey page (aspx) to a DNN module.

The survey asks 10 questions, one at a time, then emails a report to the user.
We ask one question at a time because it is important not to see patterns in the questions.
 
So the process currently is:
 
1.                  Load question and 5 answers (multiple choice) as datagrid from sql database
2.                  Users answers question clicks NEXT button
3.                  update database with users answer
4.                  Go to next question. Repeat 1 to 4 until 10 questions
5.                  Send report.
 
I am having troubles with how to update SQL because page load happens before update.
 
I have tried to trap it but the page load appears to happen twice. The datagrid therefore loses the users selection.
 
How can I collect the users selection in the datagrid before the page load?
 
Why does page_load happen twice?
 
Your help would be greatly appreciated.
 
Cheers
 
 
New Post
3/12/2009 12:06 PM
 

probably has to do with either order of events or you are loading questions everytime the module loads (inital load and postback) - or load even runs twice - i have seen that happen

 

 

 


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
3/12/2009 12:42 PM
 

It could be connected to this thread by a colleague of mine - www.dotnetnuke.com/Community/Forums/tabid/795/forumid/118/postid/285382/scope/posts/Default.aspx

A support issue was raised but appears to have been closed now.

Please let me know if you manage to resolve this issue.


Blue & White hooped blood runs through my veins!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Page Load Running twicePage Load Running twice


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