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.0Accessing a page from another!Accessing a page from another!
Previous
 
Next
New Post
4/24/2006 7:13 PM
 

 Hello guys, I am quoting from another region of the forums.

Can u please help?

ok this is perhaps piece of cake but i am stucked!!!

I have a module that contians multiple controls.

I would like to have a link so that a user can access the control B (let's say page B) from default.ascx control.So i cannot do it.I have read the docs etc but no luck.I try

Response.Redirect(NavigateURL() & "mid=" & ModuleId & "&ctl=controlB.ascx") but the portal gives ablank error page and the url is http://localhost/dnn4/mymodule/tabid/114/Default.aspxmid=433&ctl=pagetest.ascx

Say i got a module and when it loads  a "page" that displays a complete cataloge of products. Then i want people to click on a product (does not mind if it is link or button) and to display information on this specific product (like numner, price etc). So this will be another "page".

In aspx it would be 2 different pages, 1 for the complete catalogue, one for the product's details. I do not know how to call this in DNN, i guess it is called "2 different contols of the same module".

So what i want is I guess the response.redirect code for something like this, right?

i am not only interested in knowing the wway to pass values (i also want to learn this) but i mainly want to find out how i can go from one "page"to the other.

 

thnx a lot

 
New Post
4/26/2006 12:04 PM
 

There are a couple of ways you can do this. 

  • You can have 2 completely separate modules with settings in each to have the admin pick the page that the other module appears on.
  • You can put both controls in the same ASCX and control which one is viewed by making the appropriate section visible or invisible.
  • You can create two separate ASCX, but put them in the same module definition (2 controls) then you switch between views using the keywords. 

The ctl isn't for directly linking to ASCX's.  All the modules should be registered through the module definitions area.


Jeff Martin
MCSD C#
 
New Post
4/29/2006 10:05 AM
 

well actually to access diffrent controls of a module you need them registered in the db under the same module definition, each control needs to have a ControlKey defined, and then you can do:

http://localhost/dnn4/mymodule/tabid/114/Default.aspxmid=[CurrentOne]&ctl=[TargetControlKey]

but you can achive this by passing the correct params to the either NavigateURL or EditURL functions (they both support adding params for module id and control key)

hope it helps,

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Accessing a page from another!Accessing a page from another!


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