I have developed a DNN 3.2 module with several ascx files. When I move to another control it shows on a page using wrong skin. Please Help
In Module Definitions I have defined my module controls of type view and for each I have given a proper key value expect my module main ascx for which the value is empty.
Module Definition:
Control Key Title Source Type
MdlMain DesktopModules/CompanyName.Members/MdlMain.ascx View
AddMember AddMember DesktopModules/ CompanyName.Members/AddMember.ascx View
In the code, I navigate between ascxs using Response.Redirect(EditURL("", "", ControlKeyValue")).
Code:
Private Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Response.Redirect(EditURL("", "", "AddMember"))
End Sub
This code takes me to the following link:
http://localhost/DotNetNuke/Test/tabid/56/ctl/AddMember/mid/373/Default.aspx
Using EditURL I can navigate to another control (and it works fine) but the skin being used is the admin skin and not the page skin. I need to use the same skin for all my ascx files but using EditURL all my ascx files (which have ControlKey value) have the admin skin while only my first page uses the page/module skin .
I have tried another option (using the same module definition) which is “NavigateURL”, this keeps the same skin for me but it shows empty page instead of the requested control page.
Code:
Private Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Response.Redirect(NavigateURL(TabId, "AddMember"))
End Sub
This code takes me to the following link:
http://localhost/DotNetNuke/Test/tabid/56/ctl/AddMember/Default.aspx
For our DNN site we have 2 skins and 2 container styles. One for USER Pages and other one for ADMIN Pages. Is it possible to keep same skin (user skin) for all my module ascxs without changing to the admin skin? Also which function should I use to move between ascxs EditURL or NavigateURL as I mentioned before EditURL redirects me to the write page but with admin skin and the NavigateURL gives me an empty page with the same module skin.
Please advice.