You need to Register for free and Login to post a message in the forum.

Forum

Subject: Redirect to newly created control.
Prev Next
You are not authorized to post a reply.

Author Messages
sandip
Nuke Active Member
Nuke Active Member
Posts:29

08 Feb 2006 10:48 AM  

Dear Lee,

I want to redirect to my page after successfully registration. So I have created new page (web control into security folder.) Now I want link of that page so that I can use it into redirect function.  I have added new page into this location - \DNN\admin\Security\MyPage.ascx 

Can you please tell me how to do this.

Thanking you,

Sandi

leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3352

08 Feb 2006 10:54 AM  
Hi Sandi,

To be honest I haven't programmed this before, so I don't know without researching it. - I would pop across to the DNN forums as someone must have already implemented this.

When you find the answer, let me know, I will be interested in reading the solution.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
sandip
Nuke Active Member
Nuke Active Member
Posts:29

11 Feb 2006 1:21 AM  

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/tabid/36/ctl/RedirectOpt/Default.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
sandip
Nuke Active Member
Nuke Active Member
Posts:29

11 Feb 2006 1:23 AM  

Hello Lee,

Here is more observations…

 

 When I used

 

1) Response.Redirect(NavigateURL("RedirectOpt"))

 

 It is throwing expectation as “Thread was being aborted” but still redirecting to http://localhost/DotNetNukedev/Home/tabid/36/ctl/RedirectOpt/Default.aspx

 

 2) Response.Redirect(NavigateURL("RedirectOpt"), False)

 

It is not throwing any exception but redirecting to this blank page. http://localhost/DotNetNukedev/Home/tabid/36/ctl/RedirectOpt/Default.aspx

 

 3) Response.Redirect(EditUrl("", "", "RedirectOpt", ""))

 

It is throwing expectation as “Thread was being aborted” but still redirecting to http://localhost/DotNetNukedev/Home/tabid/36/ctl/RedirectOpt/Default.aspx?mid=-1

 

Note: Here reason may be it is not getting proper module ID.

 

4) Response.Redirect(EditUrl("mid", "75", "RedirectOpt", ""))

 

It is redirecting to http://localhost/DotNetNukedev/Default.aspx?tabid=36&error=Input+string+was+not+in+a+correct+format. And showing error on page "A critical error has occurred.
Input string was not in a correct format." Also throwing exception as “Thread was being aborted”

Please throw some light on it....

Thanking you,

Sandi

sandip
Nuke Active Member
Nuke Active Member
Posts:29

15 Feb 2006 9:11 AM  
Hello Lee,
Found the solution... I remove the moduleid for my control and my above redirection start working... now it is working properlly on my live site too...
Thanks,
Sandi
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3352

15 Feb 2006 9:16 AM  
Great, glad to hear you've managed to get it working, thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > Redirect to newly created control.



ActiveForums 3.7

Latest Forum Posts

RE: No Access for me too by leesykes
hello,I have fixed the problem and I have given you a years access beginning from today December 2nd...
old skins for DNN 4.9.0 ? by clippy
Hello from France My question is about the videos for beginners, and specially n° 3; I'm working...
Web.config Error by derpir
HelloI got this error, does this seem familiar to you? Can anyone say how to fix this error?Error 98...
No Access for me too by ristori
I suscribe for the magazine novembre 2008 13. I receive this ticket from Paypal : Prix de l...
How can I list our offices by country by bluehoops
Hi everyone!Apologies if this is a simple question, but it is driving me nuts.I run a small ISV and ...
RE: DNN Creative vs FireFoX V3 by DavidWSnow
It now looks like the error'ing extension is StumbleUpon and it effects FireFox on some, but not all...
Issue 39 Authentication by DavidWSnow
I was glad to see you address this topic. When LiveId was first added to DNN, I tried to implement i...
RE: (catalook) Itempane changes on product pages ?? by Vilaplana
Hi, I think the problem is been caused by your skin and not by Catalook itself.  In the main page, C...
Yahoo Answers by cdtguru
Hey, i was wondering if anyone knew of a module that would create a similar system to Yahoo Answers...
(catalook) Itempane changes on product pages ?? by Gaz35
Hi , hi , I don’t know if you can help me , here is the site in question http...
RE: Virtual Pc 2007 help by jeff@zina.com
You need to get the Virtual PC's network set up.  Might check the Virtual PC news group: http://www...
DNNCreative Just Keeps Getting Better by jeff@zina.com
Kudos on issue 39, the article on importing large quantities of data was both timely for me and spot...
RE: Videos by clippy
Hello from France My question is about the videos for beginners, and specially n° 3; I'm working...
skinning trouble by derpir
HelloI have uploaded a skin to my DNN-website, but I want to make som changes. I have made some chan...
RE: Column width in UDT by VickySwift
In case anyone else is looking for the answer to this, I have been able to add the headers back in b...
RE: search not working by jncraig
Did you either reindex the site to turn on the scheduled task to do it?
RE: Template Issue by jncraig
No, you need to install your custom modules before you use the template.
RE: error message in registration page by jncraig
I'm not sure that you can avoid them, short of rewriting the module.You might want to investigate Dy...
Template Issue by Bobbyjosephg
Hi,   Today I have come up with a problem with templates.I was successful in exporting a template an...
RE: search not working by sanju_k1421
I checked     host==>admin search  page   that is set both limits min //max  page     still i m n...
AppTheory
RSS Feeds