Click here to Skip to main content
15,889,356 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncan't get RegisterStartupScript with src=path\filename to work Pin
dd31415911-May-09 11:00
dd31415911-May-09 11:00 
AnswerRe: can't get RegisterStartupScript with src=path\filename to work Pin
dd31415911-May-09 11:03
dd31415911-May-09 11:03 
Questionget the cursor position in a textarea Pin
Member 364582311-May-09 9:18
Member 364582311-May-09 9:18 
AnswerRe: get the cursor position in a textarea Pin
N a v a n e e t h11-May-09 16:27
N a v a n e e t h11-May-09 16:27 
QuestionDatagrid edit command textbox reference Pin
janetb9911-May-09 4:34
janetb9911-May-09 4:34 
AnswerRe: Datagrid edit command textbox reference Pin
uoods11-May-09 9:04
uoods11-May-09 9:04 
QuestionASP.NET Login & Sessions question (related to not using built-in MSSQL roles & Web Administration) : repost. Pin
EliottA11-May-09 2:50
EliottA11-May-09 2:50 
AnswerRe: ASP.NET Login & Sessions question (related to not using built-in MSSQL roles & Web Administration) : repost. Pin
N a v a n e e t h11-May-09 3:33
N a v a n e e t h11-May-09 3:33 
EliottA wrote:
So how would I go about making a login script and creating a session?


I am not sure that I got your question correctly. Are you asking how to validate the user login and create a session for user? If yes, that sounds pretty trivial.

You have to classify the types of users and restriction levels required in your website. Assuming you have two kinds of users, a normal user and administrators. Create a class that derives from System.Web.UI.Page, say WebPage. Since you have two types of restriction levels, create two classes NormalUserPage and AdminPage both derived from WebPage and contains security checking for each type.

If a page in your website has normal user access rights, derive the page from NormalUserPage . If it requires administrator rights, derive from AdminPage. This method helps you to add/remove certain user types with minimal code change.

Is that what you are looking for?

Smile | :)


GeneralRe: ASP.NET Login & Sessions question (related to not using built-in MSSQL roles & Web Administration) : repost. Pin
EliottA11-May-09 3:59
EliottA11-May-09 3:59 
GeneralRe: ASP.NET Login & Sessions question (related to not using built-in MSSQL roles & Web Administration) : repost. Pin
N a v a n e e t h11-May-09 16:24
N a v a n e e t h11-May-09 16:24 
Question"threat was being aborted" error [modified] Pin
priya1515s11-May-09 2:50
priya1515s11-May-09 2:50 
AnswerRe: "threat was being aborted" error Pin
Colin Angus Mackay11-May-09 2:59
Colin Angus Mackay11-May-09 2:59 
GeneralRe: "threat was being aborted" error Pin
N a v a n e e t h11-May-09 3:06
N a v a n e e t h11-May-09 3:06 
GeneralRe: "threat was being aborted" error Pin
Colin Angus Mackay11-May-09 3:10
Colin Angus Mackay11-May-09 3:10 
GeneralRe: "threat was being aborted" error Pin
N a v a n e e t h11-May-09 3:17
N a v a n e e t h11-May-09 3:17 
GeneralRe: "threat was being aborted" error Pin
priya1515s11-May-09 3:07
priya1515s11-May-09 3:07 
GeneralRe: "threat was being aborted" error Pin
Colin Angus Mackay11-May-09 3:10
Colin Angus Mackay11-May-09 3:10 
AnswerRe: "threat was being aborted" error Pin
Colin Angus Mackay11-May-09 3:03
Colin Angus Mackay11-May-09 3:03 
AnswerRe: "threat was being aborted" error Pin
priya1515s11-May-09 3:31
priya1515s11-May-09 3:31 
AnswerRe: "threat was being aborted" error Pin
Yusuf11-May-09 4:09
Yusuf11-May-09 4:09 
AnswerRe: "threat was being aborted" error Pin
Baran M11-May-09 19:36
Baran M11-May-09 19:36 
QuestionGridview Display When no data to bound Pin
suzzain11-May-09 2:27
suzzain11-May-09 2:27 
AnswerRe: Gridview Display When no data to bound Pin
Herman<T>.Instance11-May-09 22:41
Herman<T>.Instance11-May-09 22:41 
QuestionCrystal report? Pin
Karthick_gc11-May-09 2:25
Karthick_gc11-May-09 2:25 
AnswerRe: Crystal report? Pin
DeveloperAtul11-May-09 23:09
DeveloperAtul11-May-09 23:09 

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.