473,466 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to change redirection to default.aspx when logged?

Ben
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
Apr 15 '07 #1
3 1688
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" <b@en.sdwrote in message
news:uE**************@TK2MSFTNGP04.phx.gbl...
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

Apr 15 '07 #2
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" <b@en.sdwrote in message news:uE**************@TK2MSFTNGP04.phx.gbl...
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

Apr 15 '07 #3
Ben
Thanks both

"Juan T. Llibre" <no***********@nowhere.comschreef in bericht
news:Oz*************@TK2MSFTNGP04.phx.gbl...
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" <b@en.sdwrote in message
news:uE**************@TK2MSFTNGP04.phx.gbl...
>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


Apr 15 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andrew Jones | last post by:
I'm struggling with page redirection. Here are the steps 1. forms authentication to authenticate user. 2. when system returns to base page I have the following code in Page_Load if ( New...
0
by: Dimitrios Mpougas | last post by:
Hello, I have two asp.net pages. The first is a page (main.aspx) wich has four links on it. The href value of each link is: href="view.aspx?id=1" traget="_blank" href="view.aspx?id=2"...
1
by: graphicsxp | last post by:
Hi, I'm using FormsAuthentication.redirectFromLoginPage() in order to to user authentication. The problem is that I'm redirected to the last page visited before the session expired (or the...
2
by: fReDiNi | last post by:
Hi, I have an strange problem with session variables. I have a site hosted in a local server. I have physic access to this server and its configuration.(apache, php,files...). I have external...
1
by: Mike Hofer | last post by:
I really need some help, and I'd appreciate any that you folks can provide. The ASP.NET application in question uses version 1.1 of the .NET Framework. All of the pages use a common base class...
1
by: Vlad | last post by:
Hello everybody, I have a problem with custom error page. I' using a redirection in a web.config file to a custom error page: <customErrors mode="RemoteOnly"...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
7
by: Jonathan Wood | last post by:
My site requires all users to log on. Depending on the user's role, they will have access to a certain set of pages. I implemented this by redirecting the user to the appropriate home page in...
9
by: Nick | last post by:
Hi there, I'm passing an HTML encoded string to an URL in the query parameter. This query string works perfect in the website if you are already logged on, if you are not logged on the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.