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...Using Modules a...Using Modules a...Redirecting to another page after form submitsRedirecting to another page after form submits
Previous
 
Next
New Post
7/24/2014 12:51 PM
 

Here the exact systax :

Response.Redirect(Globals.NavigateURL(), true);

You have to do that outside of a try catch.

There an example in OnSaveClick of :

https://github.com/dnnsoftware/Dnn.Pl...

 
New Post
7/24/2014 1:33 PM
 

It seems like I've found the problem.

The code in the skin itself follows:

<dnn:Form id="Form" runat="server" ENCTYPE="multipart/form-data" >

After being processed, it displays in the browser as:

<form name="Form" method="post" action="/onlineorderform.aspx" onsubmit=" return WebForm_OnSubmit();" id="Form" enctype="multipart/form-data">

The action seems to changes itself on whatever page you're on. Is there a solution to fix this? Can this be the reason that it overrides the C# code?

 

 
New Post
7/25/2014 4:19 AM
 

Hi,

It's not easy to help without the whole context of your dev environment.

Are you trying to create a button in a module ?  In a .ascx file ?

Or in a web form ? A .aspx file ?

 

Regards

 
New Post
7/25/2014 7:54 AM
 
That shouldn't matter and you probably want it to post to itself anyway,

Let's figure out why it won't redirect in your code because it should.

Did you try what Sacha recommended?

Mark
 
New Post
7/25/2014 9:41 AM
 
What Sacha recommended should work. One key item is the True argument.

Additionally, I saw in your original Redirect that you just had "submit.aspx". Make sure the URL is pointing to the right page - with the correct path too. Sacha's use of NavigateUrl isn't technically required but is best practice as should convert your supplied URL to the correct format - based upon your URL rewriting provider.

Best,
Kelly

Create simple forms or build complete module solutions XMod Pro is the best-selling forms and views module of all time.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Redirecting to another page after form submitsRedirecting to another page after form submits


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