Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > how to change redirection to default.aspx when logged?

Reply
Thread Tools

how to change redirection to default.aspx when logged?

 
 
Ben
Guest
Posts: n/a
 
      04-15-2007
Hi,

when loggeg with the login control, the user is automatically redirected to
the file "default.aspx'.
Any way to change that (i guess in web.config)?

Thanks
Ben


 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      04-15-2007
Yes, set the DestinationPageUrl property.

http://msdn2.microsoft.com/en-us/lib...onpageurl.aspx

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Ben" <> wrote in message
news:...
> Hi,
>
> when loggeg with the login control, the user is automatically redirected
> to the file "default.aspx'.
> Any way to change that (i guess in web.config)?
>
> Thanks
> Ben
>



 
Reply With Quote
 
 
 
 
Juan T. Llibre
Guest
Posts: n/a
 
      04-15-2007
Add a DestinationPageUrl to the Login control, or change it if it exists.

<asp:Login
ID="Login1"
runat="server"
DestinationPageUrl="~/some.aspx">
</asp:Login>




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
===================================
"Ben" <> wrote in message news:...
> Hi,
>
> when loggeg with the login control, the user is automatically redirected to the file
> "default.aspx'.
> Any way to change that (i guess in web.config)?
>
> Thanks
> Ben
>





 
Reply With Quote
 
Ben
Guest
Posts: n/a
 
      04-15-2007
Thanks both

"Juan T. Llibre" <> schreef in bericht
news:...
> Add a DestinationPageUrl to the Login control, or change it if it exists.
>
> <asp:Login
> ID="Login1"
> runat="server"
> DestinationPageUrl="~/some.aspx">
> </asp:Login>
>
>
>
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaņol : http://asp.net.do/foros/
> ===================================
> "Ben" <> wrote in message
> news:...
>> Hi,
>>
>> when loggeg with the login control, the user is automatically redirected
>> to the file
>> "default.aspx'.
>> Any way to change that (i guess in web.config)?
>>
>> Thanks
>> Ben
>>

>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
A Paradise DNS address change? What change? There was no change. Tony Neville NZ Computing 7 09-22-2006 01:02 PM
Redirection Limit John Firefox 4 07-28-2005 10:47 AM
webcrawle with LWP: how to make redirection work? S Perl 1 01-14-2004 06:51 AM
input redirection MadHatter Perl 6 10-16-2003 04:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57