Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Scripting / April 2006

Tip: Looking for answers? Try searching our database.

formsauthentication and code behind

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kyle Peterson - 13 Apr 2006 20:56 GMT
I have some forms authentication going on.

Right now I am just checking the username and password from a database in my
login.aspx file in the usual way.

and I have the usual in web.config.

<forms name=".protect" loginUrl="login.aspx" protection="All" timeout="60"
/>

and of course my <authorization> section with the usual entries...

Everything works as it should as far as all that goes...

My question is can my login.aspx file use code.behind so I can hide all that
authentication logic?
I just dont want the end users of this application seeing any authentication
logic as it will just confuse them when they try to edit the login form, its
ok for them to edit the look of the admin form but I just need it to be as
easy as possible for them so they don't go killing the authentication script
sections in there.

The reason I am asking is because I just can not find any authentication
examples where anyone has used code.behind like that in the main forms
authentication login.aspx page.

I guess I am just looking to know if anyone has done this before.

I sorta thing it is doable and I know how to write code.behind but so far I
can't get it to work that way.
Kyle Peterson - 13 Apr 2006 20:58 GMT
and I really thought I posted this under dotnet security..

didn't mean to post it here

sorry

>I have some forms authentication going on.
>
[quoted text clipped - 26 lines]
> I sorta thing it is doable and I know how to write code.behind but so far
> I can't get it to work that way.
Kyle Peterson - 13 Apr 2006 21:42 GMT
I managed to get it all working with code behind.
Sorry to have asked the question. I should have worked on it longer before
posting.

> and I really thought I posted this under dotnet security..
>
[quoted text clipped - 32 lines]
>> I sorta thing it is doable and I know how to write code.behind but so far
>> I can't get it to work that way.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.