Hello Lee,
Here is more description about my problem... side by side i am looking on other forums... Meanwhile if you find solution please reply me...
I have created control into admin/security/ folder and have added it as control into ‘User Account’ module. I have given key to this module as ‘RedirectOpt’ and its ascx is physically located at admin/security/RedirectOptions.ascx.
Now, I want to call this control on Page_Load event of register control. So I have added following code block in to register.ascx.vb.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
Response.Redirect(NavigateURL("RedirectOpt"))
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
Now it is redirecting to this http://localhost/DotNetNukedev/Home...fault.aspx link. But it is not the control, which I have created. On my control I have added some text boxes, and above link is showing blank page.
Can you please tell me how this is behaving. And how can I redirect to my control (RedirectOptions.ascx.). Though its key is right, it is not redirecting to my control so please tell me where it is going wrong.
Note: I have properly created RedirectOptions.ascx into admin/security/ folder and added some text boxes. So I am expecting redirection on this page and it should show my textboxes. When I keep break point on Page_Load event of RedirectOptions.ascx.vb, it is not going there, it means RedirectOptions.ascx is not getting called.
Also I have tried
Response.Redirect(EditUrl("", "", "RedirectOpt", ""))
Response.Redirect("Home/tabid/36/ctl/RedirectOptions/Default.aspx", False)
Response.Redirect("Home/tabid/36/ctl/RedirectOptions/Default.aspx", true)
All the time it is redirecting to the blank page.
I appreciate your quick reply.
Thanking you,
Sandi