Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:804625
More Search Options
RSS Available
Matching Posts
Re: VB Redirect to Different Page After Login - Based on Role
i do have a role named Client, i also tried to use my Admin role, but its just as if i didnt write the code, keeps taking me to my default home page.. i wanted this code because i want it to redirect the Admin to the Users Management Page, without using a link on my home page.. i want to keep my design clean.. thanks for help
Posted to
Security
(Forum)
by
zetfactor
on 7/4/2008
Re: VB Redirect to Different Page After Login - Based on Role
hi, i used the same code as yours Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Request.IsAuthenticated AndAlso User.IsInRole("client") = True Then Response.Redirect("~/Default.aspx") ElseIf Request.IsAuthenticated AndAlso User.IsInRole("client") = False Then Response.Redirect("~/ManageUsers.aspx") End If End Sub Default.aspx is my home page, ManageUsers.aspx is only authorized for admins, but it keeps loggin
Posted to
Security
(Forum)
by
zetfactor
on 6/30/2008
Re: Aspnet_users and Custom Tables
i have the same problem as yours.. can u show me how u did that in a little bit more detail? thanks
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
zetfactor
on 6/27/2008
Re: AutoUpade UserId [Foreign Key] From the Primary Key UserId in the aspnet_Users table ?
thanks for the fast reply.. it would be great if you hooked me with a tutorial or an example.. cheers
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
zetfactor
on 6/26/2008
AutoUpade UserId [Foreign Key] From the Primary Key UserId in the aspnet_Users table ?
Hello everyone I want the userId PrimaryKey in the aspnet_Users Table in the ASPNETDB.mdf to Update it's foreign key in another table called ClientInfo in the same database, Once the User is created a new userId is created, i want this userId to be automatically entered in the foreign key table ClientInfo... how can that be accomplished?
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
zetfactor
on 6/26/2008
Re: A simple ASP.NET Login Application using VS2005 & SQL SERVER 2005
why don't you make two separate pages.. one for the Admin which has all the controls. and another one for users.. that has minimum controls. then go to ASP.NET configration - Click on Security, then click on the Use the security Setup Wizard to configure security step by step. link, and it will guide you through the steps in the end, Make sure you setup your Access rules correctly! hope i make sense
Posted to
Security
(Forum)
by
zetfactor
on 6/21/2008
Re: Login the redirecting to user info from SQL server database
This solved my little problemo http://www.asp.net/learn/security/tutorial-08-vb.aspx thanks all...... cheers!! am kinda hyper now
Posted to
Security
(Forum)
by
zetfactor
on 6/21/2008
Re: Login the redirecting to user info from SQL server database
hey scott.. where did i go wrong ? this page is called ClientInfo it's where the magic should happen... Partial Class CSSystem_ClientInfo Inherits System.Web.UI.Page Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If User.Identity.IsAuthenticated = False Then Server.Transfer("~\authentication\unauthorized.aspx") End If End Sub Protected Overrides Function Evaluate(ByVal context As System.Web.HttpContext, ByVal control As System.Web.UI.Control
Posted to
Security
(Forum)
by
zetfactor
on 6/5/2008
Re: Login the redirecting to user info from SQL server database
Thanks everyone, sorry for my bad search.. i just didnt have a clue about parameters.. my DSL was off for 3 days.. and it took me 2 days to figure out the parameters trick by trial and error.. am off to read ur links.
Posted to
Security
(Forum)
by
zetfactor
on 6/5/2008
Re: Login the redirecting to user info from SQL server database
Thanks scott...really cool security tutorials.. bookmarked and studied... but now my problem is how to link Login name.. with User information as i want that to happen on page load, page name is My information, so after you login, you click on my information, and i want the user information to appear, i already accomplished that with a textbox and a bottom that holds the commands to retrieve from the Client table and some other tables.. but i want that to happen with login.. so as the application
Posted to
Security
(Forum)
by
zetfactor
on 6/1/2008
Page 1 of 2 (11 items) 1
2
Next >
ASP.NET:
Search Engine Optimization (SEO) Toolkit
ASP.NET:
How the IIS SEO Toolkit Saved My Butt
ASP.NET:
Using WCF RIA Services without Silverlight in Visual Studio 2010 for building 3 tier ASP.NET Applications
Channel 9:
Ping 41: Top stories of 2009, bing, windows 7, laptop hunters, azure
Channel 9:
endpoint.tv - Windows Server AppFabric in action monitoring and troubleshooting
Channel 10:
Windows Marketplace for Mobile Opens to 6.0, 6.1 Phones
Channel 9:
Rx API in depth: Hot and Cold observables
ASP.NET:
Back in Business
TechNet Edge:
Hacking Windows 7 Interview
WindowsClient:
Windows Client Developer Roundup for 12/14/2009
Channel 9:
TWC9: Silverlight Web cam apps, VS extensibility, Explorer shell extensions
ASP.NET:
Visual Studio Project Sample Loading Error: Assembly could not be loaded and will be ignored. Could not load file or assembly or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
WindowsClient:
Working with Windows 7 Taskbar Thumbnail Buttons with WPF 4
WindowsClient:
overflow:hidden -- a fix to a CSS problem
TechNet Edge:
Empowering your teams with SharePoint
TechNet Edge:
TechNet Radio: Expert presents: Creating and Executing a Comprehensive 2007 Office Deployment
ASP.NET:
ViewModel Pattern for Silverlight - Options for Hooking a View to its Model
Channel 9:
Rx API in depth: Concat, Catch and OnErrorResumeNext
Channel 10:
PowerPoint Twitter Tools Updated
Channel 10:
Windows Live Messenger Arrives on Nokia Phones
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online