CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 12/1/2007 1:25:35 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
SolitaryMan
Asp.Net User
Login Control and Secure Pages question12/1/2007 1:25:35 PM

0/0

If a user clicks a link, but the resulting page requires a login, I do a server.transfer to the login.aspx page.

What would be nice is after the click the signin button they were automatically redirected to the original link they chose that required a login.

How is this done?

 
Sample app I am trying to build is at www.projectguard.com use guest and password of guest1

 
Thanks for any help and ideas, this is all using asp.net 2.0 Login controls so I want them to get redirected to the link they WANTED before the sign-in.

 
I could look at the URL address in the address bar.. but that is so hacky!
 

e_screw
Asp.Net User
Re: Login Control and Secure Pages question12/1/2007 1:46:14 PM

0/0

Check this link http://aspnet.4guysfromrolla.com/articles/120705-1.aspx

Thank

-Mark post(s) as "Answer" that helped you


Its not so easy to do... So you are here!

Electronic Screw
Website||Blog||Dub@i.net
SolitaryMan
Asp.Net User
Re: Login Control and Secure Pages question12/1/2007 1:51:16 PM

0/0

 OK, I will read the page now.. Also I had an idea for the secure page, instead of a redirect to the signin page. How about just loading a login control at the top of the page?

public partial class Life_Plan : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!User.Identity.IsAuthenticated)
            Server.Transfer("signin.aspx");
        // how about instead of transfering them away from the current page
        // I show a login control instead?
    }
}
 

SolitaryMan
Asp.Net User
Re: Login Control and Secure Pages question12/3/2007 2:53:38 PM

0/0

Hi all. If you could please see my question here.

I am asking would it be better to display a login control on the current page? Or somehow redirect them to the login page - but then BACK to the secure page?

 


 

XiaoYong Dai –
Asp.Net User
Re: Login Control and Secure Pages question12/4/2007 7:40:54 AM

0/0

SolitaryMan:

I am asking would it be better to display a login control on the current page? Or somehow redirect them to the login page - but then BACK to the secure page?

Hi

I suggest you use a loginView control so it displays different Web site content templates (or "views") for different users, based on whether the user is authenticated

For example:

            <p>
                <asp:LoginView id="LoginView1" runat="server">
                    <AnonymousTemplate>
                        <asp:Login ID="Login1" runat="server">
                    </AnonymousTemplate>
                    <LoggedInTemplate>
                        Thanks for logging in
                        <asp:LoginName id="LoginName1" runat="Server"></asp:LoginName>.
                    </LoggedInTemplate>
                   </asp:LoginView></p>


Best Regards
XiaoYong Dai
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
SolitaryMan
Asp.Net User
Re: Login Control and Secure Pages question12/4/2007 2:36:36 PM

0/0

 Thank you! I will give it a try!

6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005
C# for Programmers: Updated for C# 2.0 Authors: Paul J. Deitel, Pages: 1317, Published: 2005
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, David Sussman, Chris Ullman, Pages: 735, Published: 2006
Beginning ASP.NET 2.0 in C# 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1148, Published: 2006
Visual C# 2005: How to Program Authors: Harvey M. Deitel, Paul J. Deitel, Pages: 1591, Published: 2006
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
Podcasting Bible Authors: Mitch Ratcliffe, Steve Mack, Pages: 570, Published: 2007

Web:
Secure only Login.aspx for a site - Stack Overflow Moved Login Page to Secure/Login.aspx 3. Set the appropriate Login url in web. config as ... tagged sharepoint iis ssl login secure or ask your own question. ...
Login Class (System.Web.UI.WebControls) Login control properties represented by text boxes, such as UserName and Password, are accessible during all phases of the page life cycle. ...
How to keep RETURNURL when accessing a secure page, yet disable it ... How to keep RETURNURL when accessing a secure page, yet disable it ... I tried to change the login status control behaviour with no luck, ...
Steve C. Orr - Using the new Login Controls of ASP.NET 2.0 Create a new Web page named “Login.aspx”. Drag a Login control onto this page. ... answered the secret question that was established upon registration. ...
PC Remote Control Software and Remote Access Software: Control ... Radmin - PC Remote Control Software for Fast and Secure Remote Access to Computer from ... to answer user’s questions and see the status of remote desktop. ...
AWB Limited - Security Policy The page information window will appear confirming the AWB login control is encrypted under SSL connection. Firefox Login properties. When accessing secure ...
CreateUserWizard and smtp secure - ng.asp-net-forum.security - fix ... Securing Login Controls Login controls include the CreateUserWizard control, Login control, ... writing secure code and securing applications in the book ...
Creating a secure login page with Java QUESTION POSED ON: 06 September 2006 How do I create a secure login page using ... enforcement of authentication and access control policies regardless of ...
46 Results for [passwordless] Find pages that contain either element such as all discussion of reliability ... h) good passwordless login control i) currently being supported Things . ...
LogMeIn - Remote Access and Desktop Control Software for your PC LogMeIn is FREE, secure remote desktop access to your PC from anywhere. Remotely control the mouse, keyboard and desktop from any computer or PocketPC ...

Videos:
Online Safety: Cookies Episode 3 (of a 7-part series) This Nortel LearniT tutorial reviews the cookies in reference to online safety.
How To Break Web Software - A look at security vulnerabilities in web software Google TechTalks April 13, 2006 Mike Andrews Mike Andrews is a senior consultant who specializes in software security and leads the web application...




Search This Site:










treeview navigateurl

daab - c# datetime parameter intto a smalldatetime field in the database conversion error

2-level tabbed navigation menu problem

powerreports professional 2.5 for ibs

character counter - multiline textbox

sending file to user

treeview does not show a tree, just plain string of text

compiles, properties manipulatable in editor, runtime compilation error

rss newsfeeds open in new window?

2 different platforms - 2 different treeview controls?

background image in theme won't show

web.config problem

about menu control

check this control please

the server not register with dcom within the required timeout

please help, edit page needs fixing urgently

adding a field to the news_edit page

webhosting recommendations!?

sigmapro module integration

save a text file to a network drive

reset password doesn't work

trouble using isa server with controls

asp.net configuration on xp

object reference not set to an instance of an object error

setting breakpoints in javascript code

problem changing a label in the gridview's footer

how to get current permission on folder

at wits end with sharpziplib errors and 1and1.com server.

exception has been thrown by the target of an invocation

how can we create pdf document which contains html(html tags like pre, bold etc) using itextsharp

 
All Times Are GMT