If you have experience to develop DNN Module, you aware of “DotNetNuke.Common.Globals.NavigateURL()” is to return from Edit Page to View Page or Listing Page, what if I want to navigate to detail page from view or listing page? Yes, you also can use “DotNetNuke.Common.Globals.NavigateURL()” but you need to pass 2 extra parameters for this method, or else you will return to listing page or view page!
Here my solution,
DotNetNuke.Common.Globals.NavigateURL(TabId, "","mid", ((int)DataBinder.Eval(Container.DataItem,"ModuleID")).ToString(),"CourseID", ((int)DataBinder.Eval(Container.DataItem,"CourseID")).ToString(),"ctl", "Details", "")
You have to pass “ModuleId” (even your application do not store the Module Id, you must include it in this API or else it will not work) and Table Primary key “CourseId” for this case. Yes, do you notice another 2 parameters at the back ? We have to let the DNN know we are going to “Details” page, but you need to make sure your details page is set as “details” when you register the user control. Please Look at the photo I attached for better understanding.
Ok, that’s all for now.