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 ...How Do I Force A Full Form Post Back on DNN 4.7How Do I Force A Full Form Post Back on DNN 4.7
Previous
 
Next
New Post
11/21/2007 5:12 PM
 

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

 

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.

 

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

 

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.

 

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

 
New Post
11/26/2007 2:07 PM
 

I feel like I've stumped the forum on this one. Or i'm not explaining the issue.

Does anyone have an idea how i can attempt to force a Full Form Post Back on a DNN 4.7 version, like you could in early DNN 2.x versions?

Any help or suggestion as to a work around would be great!

Thanks.

 
New Post
11/26/2007 10:05 PM
 

Not sure i understand what you want you want info from the hosting page (the one that has the iframe) to put info into the html page in the iframe and then force that page to submit itself?

I think you are looking at a javascript solution there

not really sure but maybe a on click event on the hosting page submit button and then js to submit the inside form

Does that help or am i off base?


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
11/27/2007 5:28 AM
 

In fact your postback is working! The problem is not in postback here.

As I undestand your script alters the action of the form and directs it to another page, this is all cool, but the problem is that the __VIEWSTATE field contained in the form is also forwarded to the new page. ASP.NET tries to parse this __VIEWSTATE as it were the viewstate of the new page and obviously fails.

I think making osmething like document.getElementById("__VIEWSTATE").value=null; before doing form.submit() can solve your problem but you should know that this is NOT the right way to do it in ASP.NET. You can get antoher errors this is why you should also clean the __EVENTTARGET and __EVENTARGUMENT hidden imputs in the form.

If you want to pass parameters very much you can pass them in querystring (address)

Good Luck


Regards, Ion
 
New Post
11/27/2007 12:45 PM
 

Thanks...

I've also just been informed by a Robert Chumley (while discussing this issue on another DNN formum) that DNN has changed the way forms are submitted. And a patch is being written. This patch is to be posted shortly.

I am very curious which previous version of 4.x would remain unchanged?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How Do I Force A Full Form Post Back on DNN 4.7How Do I Force A Full Form Post Back on DNN 4.7


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