Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

How Do I Force A Full Form Post Back on DNN 4.7

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
RegGFX
Posts:25



11/26/2007 2:06 PM  

Hi John,
I have a DNN POST BACK DILEMMA or (DPBD)

I have a special situation where I have a client (who’s web site use to be DNN 2.X) needs to have the ability to do post-backs.

I've redesigned this site as a DNN 4.7 Version however we still have need to do the occasional full form Post-Back on certain pages.

This is because we have a small input box on the webpage where a user can submit hidden input to another DNN page with an IFRAME that links to an HTML page that accepts the submitted information from the simple input boxes.

My problem is that I have to carry over this feature from DNN 2.X over to a new site that is 4.7
And because DNN 4.7 is Ajaxing the entire page, I cannot do a traditional Form post-back to a HTML/ASP page inside an DNN Iframe. I get an error that reads

[u]Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.[/u]

Any suggestions on how to submit this info from my DNN Page to an HTML page inside of a DNN DNN 4.7 Iframe?

I'll consider any suggestions or Ideas to trick or get DNN 4.7 to make this work. Its just a simple matter of passing some hiddin input from one page to a page that has an IFRAMED Html or Classic ASP page.

Thanks and there's always hope.

John Mitchell
Posts:3479



11/26/2007 2:12 PM  
How about passing it on the querystring for the SRC of the IFRAME instead of posting to the other page?

I may not be understanding correctly though because I'm not sure how you would do a POST from your page to an internal IFRAME page.
RegGFX
Posts:25



11/26/2007 2:55 PM  

Hi... Thanks for the Reply... sorry about the confusion, I'll try to explain.

Here is what i know... in the YE'OL DNN 2.x versions you could put a simple input boxes with a submit button(pasted inside the TEXT/HTML as HTML) and submit hidden input info to a DNN Page that had the IFRAMED HTML or ASP page. That DNN Page with the HTMLor ASP page IFRAMED inside of the DNN page would recieve the data via the hiddin input.

However, in DNN 4.7 you get an error called Failed to load viewstate.
I'm just trying to find a way to post hiddin input submitted from a traditional form text box to a HTML or Classic ASP page that rests inside a DNN IFRAME Module.

For example i've noticed that your website has a Quick Nav Jump Menu.  For the sake of illustaration, lets say you wanted one of those items in your jump menu to submit hiddin input to a page with an DNN IFRAME that had HTML or ASP inside the IFRAME that was awaiting that hiddin input from that submission.

Again sorry if i sound confusing.... You've really helped me out of pinch before and hopefully there's a work-a-round.

Thanks again

John Mitchell
Posts:3479



11/26/2007 8:45 PM  

I've been trying to recreate this, but I guess I'm still not understanding because I can't get posted variables in an IFRAMED page from the page that has the IFRAME in it.
Was the action part of the form that you were posting to changed to the ASP page?

If so you could do it by setting the action attribute of the form in the DNN page to the other page by using the trick described in the following post.
http://www.snapsis.com/DNN-Tips-And-Tricks/tabid/560/forumid/12/postid/5091/view/topic/How-To--Add-PayPal-Buy-Now.aspx

RegGFX
Posts:25



11/27/2007 11:23 AM  

Hi John...
Again thanks for the reply...

Let me put a sample together that may better show what is happening.

It is very simular to the PAYPAL trick except instead of posting to another website we are posting to another DNN TAB that holds an IFRAME Module. And that is when we get the viewstate error. This appears to happen in 4.7 release.

I'm hearing chatter on the forums that DNN 4.7 form posting has been changed completely which may be causing the problem. Some of the problem is due to some kind of AJAX wrapper. 

John Mitchell
Posts:3479



11/27/2007 11:33 AM  
I can see where you would run into problems posting from one ASP.Net page to another. You may have just been lucky on the 2.x version of DNN that the viewstate was the same since it had less going on.

I would recommend passing the variables with a GET instead of a POST if you are going from an ASP.Net page to another ASP.Net page, but maybe your sample will help me to better understand what you are doing.
RegGFX
Posts:25



12/14/2007 9:42 PM  
After much research here's what we did.

1)I took some code from DNN 2.X IFRAME module.
2)Pasted the code inside of the DNN 4.7 Iframe Module.
3)Disabled AJAX for now

And it works... WOW
Now i can post information to an ASP CLASSIC page that is inside of an DNN IFRAME...

Maybe i got lucky this time.

Thanks for all the replies
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >General-DNN-Help > How Do I Force A Full Form Post Back on DNN 4.7



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 Performance for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

AuthorNina Meiers
Price$49.00
Product Information