Click here to Skip to main content
15,890,185 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: virtual directory Pin
N a v a n e e t h16-Jun-08 23:40
N a v a n e e t h16-Jun-08 23:40 
Questioncreate .txt Pin
vjainpee16-Jun-08 23:06
vjainpee16-Jun-08 23:06 
AnswerRe: create .txt Pin
joemonvarghese80@yahoo.co.in16-Jun-08 23:18
joemonvarghese80@yahoo.co.in16-Jun-08 23:18 
AnswerRe: create .txt Pin
N a v a n e e t h16-Jun-08 23:23
N a v a n e e t h16-Jun-08 23:23 
QuestionRoll based login Pin
vjainpee16-Jun-08 22:48
vjainpee16-Jun-08 22:48 
AnswerRe: Roll based login Pin
joemonvarghese80@yahoo.co.in16-Jun-08 23:04
joemonvarghese80@yahoo.co.in16-Jun-08 23:04 
AnswerRe: Roll based login Pin
Masood Kochi,SSF16-Jun-08 23:16
Masood Kochi,SSF16-Jun-08 23:16 
AnswerRe: Roll based login Pin
N a v a n e e t h16-Jun-08 23:28
N a v a n e e t h16-Jun-08 23:28 
Keep user type in the database. Say you have two types of users namely, "NormalUser" and "Administrator". Create two classes say "NormalUserPage" and "AdministratorPage" which inherits from System.Web.UI.Page. Override OnInit method and do the checking. In "NormalUserPage" check current user role belongs to normal user group and redirect him if not.

Create your ASPX pages and derive that page from the appropriate classes. I mean, if you want to allow a page for admin, derive that from "AdministratorPage". This will make coding more easy than checking in each page load.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

GeneralRe: Roll based login Pin
Jay Royall16-Jun-08 23:59
Jay Royall16-Jun-08 23:59 
QuestionHow to Browse web application Pin
Raghvendra Kumar Roy16-Jun-08 21:51
Raghvendra Kumar Roy16-Jun-08 21:51 
AnswerRe: How to Browse web application Pin
www.Developerof.NET16-Jun-08 22:09
www.Developerof.NET16-Jun-08 22:09 
GeneralRe: How to Browse web application Pin
Raghvendra Kumar Roy16-Jun-08 22:51
Raghvendra Kumar Roy16-Jun-08 22:51 
GeneralRe: How to Browse web application Pin
www.Developerof.NET16-Jun-08 23:26
www.Developerof.NET16-Jun-08 23:26 
Questionchange image format Pin
trilokharry16-Jun-08 21:18
trilokharry16-Jun-08 21:18 
AnswerRe: change image format Pin
N a v a n e e t h16-Jun-08 21:33
N a v a n e e t h16-Jun-08 21:33 
GeneralRe: change image format Pin
trilokharry16-Jun-08 21:44
trilokharry16-Jun-08 21:44 
GeneralRe: change image format Pin
Imran Khan Pathan16-Jun-08 21:50
Imran Khan Pathan16-Jun-08 21:50 
GeneralRe: change image format Pin
Member 343561417-Jun-08 0:01
Member 343561417-Jun-08 0:01 
QuestionFailed to access IIS metabase. Pin
BalasubramanianK16-Jun-08 20:48
BalasubramanianK16-Jun-08 20:48 
AnswerRe: Failed to access IIS metabase. Pin
www.Developerof.NET16-Jun-08 22:14
www.Developerof.NET16-Jun-08 22:14 
GeneralRe: Failed to access IIS metabase. Pin
BalasubramanianK16-Jun-08 22:35
BalasubramanianK16-Jun-08 22:35 
QuestionDate Sorting in Gridview Pin
www.Developerof.NET16-Jun-08 20:39
www.Developerof.NET16-Jun-08 20:39 
AnswerRe: Date Sorting in Gridview Pin
Imran Khan Pathan16-Jun-08 21:36
Imran Khan Pathan16-Jun-08 21:36 
GeneralRe: Date Sorting in Gridview Pin
www.Developerof.NET16-Jun-08 23:23
www.Developerof.NET16-Jun-08 23:23 
Question[Message Deleted] Pin
deepthy.p.m16-Jun-08 20:32
deepthy.p.m16-Jun-08 20:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.