Several page jumps commonly used by dnn (editurl and globals. navigateurl)

Source: Internet
Author: User
Users who have read my video tutorials or downloaded the source code of the blog project should know that the page jump in my demo is completed on the HTML page. if we add a button of our own Code To complete the page Jump, how do we write the jump code?
Below I will list several common page jumps. You can refer to them.
I. Inter-Module
1) Jump to the ascx page without Parameters
Response. Redirect (editurl ("", "", "ascx page key value "));
2) Jump to the ascx page with Parameters
Response. Redirect (editurl ("", "", "ascx page key value", "blogid1 = blog parameter 1", "blogid2 = blog parameter 2 "));
3) Go to the module homepage on any ascx page without Parameters
Response. Redirect (globals. navigateurl (), true );
4) Go to the module homepage on any ascx page with Parameters
Int inttabid = This. Tabid;
Response. Redirect (globals. navigateurl (inttabid, "", "op = back "));

2. jump between different modules
Dotnetnuke. Entities. modules. modulecontroller objmodules = new dotnetnuke. Entities. modules. modulecontroller ();
Int inttabid = objmodules. getmodulebydefinition (portalsettings. portalid, "DM blog"). Tabid;
1) Inter-module jump without Parameters
Response. Redirect (globals. navigateurl (inttabid ));
2) Inter-module jump with Parameters
Response. Redirect (globals. navigateurl (inttabid, "", "blogid1 = blog parameter 1", "blogid2 = blog parameter 2 "));
3) jump between modules to an ascx page of another module without Parameters
Response. Redirect (globals. navigateurl (inttabid, "ascx page key value "));
4) jump between modules to an ascx page of another module without Parameters
Response. Redirect (globals. navigateurl (inttabid, "ascx page key value", "blogid1 = blog parameter 1", "blogid2 = blog parameter 2 "));

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.