Click here to Skip to main content
15,912,897 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: the opposite of Page_Validate Pin
Ali Al Omairi(Abu AlHassan)23-Feb-11 10:41
professionalAli Al Omairi(Abu AlHassan)23-Feb-11 10:41 
GeneralRe: the opposite of Page_Validate Pin
Ali Al Omairi(Abu AlHassan)23-Feb-11 12:53
professionalAli Al Omairi(Abu AlHassan)23-Feb-11 12:53 
GeneralRe: the opposite of Page_Validate Pin
Bernhard Hiller23-Feb-11 20:12
Bernhard Hiller23-Feb-11 20:12 
AnswerRe: the opposite of Page_Validate Pin
bVagadishnu24-Feb-11 10:24
bVagadishnu24-Feb-11 10:24 
GeneralRe: the opposite of Page_Validate Pin
Ali Al Omairi(Abu AlHassan)25-Feb-11 7:31
professionalAli Al Omairi(Abu AlHassan)25-Feb-11 7:31 
QuestionUsing user accounts and permissions from custom database for authentication and authorisation in ASP.NET 4? [modified] Pin
kbalias21-Feb-11 23:55
kbalias21-Feb-11 23:55 
AnswerRe: Using user accounts and permissions from custom database for authentication and authorisation in ASP.NET 4? Pin
JV999923-Feb-11 3:07
professionalJV999923-Feb-11 3:07 
AnswerRe: Using user accounts and permissions from custom database for authentication and authorisation in ASP.NET 4? Pin
Lisa Z. Morgan23-Feb-11 6:07
Lisa Z. Morgan23-Feb-11 6:07 
The good news is, you can do exactly what you are doing now. Porting your application to the web does not impede your ability to query your database for the users' roles and permissions and provide access to the page only if they meet the criteria they would have needed in a Windows application. There are excellent tools in the built-in asp.net membership providers as someone else has posted, but you can also do it just like you are doing now and not have to re-write that part of your code. I work in a web-based environment where we use exactly that sort of thing--roles and permissions and actions linked in SQL2008 tables. Works fine. If you do switch to the built-in role and membership providers in ASP.Net, you will gain some advantages because you can simply check the value of methods like UserIsInRole or IsLoggedIn and so forth, but you can also port your Windows Forms code to check these in the page load event, and redirect them to a page telling them they can't play there if they don't belong.

I hope this helps, and good luck with your application.

Lisa Z. Morgan
QuestionPage methods subscribing to Control Events such as Load and PreRender Pin
swjam21-Feb-11 17:49
swjam21-Feb-11 17:49 
AnswerRe: Page methods subscribing to Control Events such as Load and PreRender Pin
senguptaamlan22-Feb-11 22:23
senguptaamlan22-Feb-11 22:23 
QuestionCreating an ASP.NET UserControl with collection-type property Pin
kensai21-Feb-11 3:47
kensai21-Feb-11 3:47 
AnswerRe: Creating an ASP.NET UserControl with collection-type property Pin
Ali Al Omairi(Abu AlHassan)22-Feb-11 4:38
professionalAli Al Omairi(Abu AlHassan)22-Feb-11 4:38 
Questionusing Microsoft.Office.Interop.Word + timeout Pin
Member 769046020-Feb-11 18:37
Member 769046020-Feb-11 18:37 
Questionhtml to code behind Pin
Ramkumar_S20-Feb-11 15:38
Ramkumar_S20-Feb-11 15:38 
AnswerRe: html to code behind [modified] Pin
Andy_L_J20-Feb-11 15:50
Andy_L_J20-Feb-11 15:50 
GeneralRe: html to code behind Pin
Not Active21-Feb-11 4:23
mentorNot Active21-Feb-11 4:23 
AnswerRe: html to code behind Pin
Anurag Gandhi20-Feb-11 22:43
professionalAnurag Gandhi20-Feb-11 22:43 
QuestionHelp in understanding PopupControlExtender Pin
simsen19-Feb-11 0:10
simsen19-Feb-11 0:10 
QuestionRe: Help in understanding PopupControlExtender Pin
Sunasara Imdadhusen21-Feb-11 23:22
professionalSunasara Imdadhusen21-Feb-11 23:22 
QuestionFormat Dynamic GridView at runtime Pin
Andy_L_J18-Feb-11 23:22
Andy_L_J18-Feb-11 23:22 
Questionc#+object copy Pin
Ramkumar_S18-Feb-11 16:30
Ramkumar_S18-Feb-11 16:30 
AnswerCross Post Pin
dan!sh 19-Feb-11 0:05
professional dan!sh 19-Feb-11 0:05 
QuestionRunning a web application on two windows Pin
xyz_999@hotmail.com18-Feb-11 5:19
xyz_999@hotmail.com18-Feb-11 5:19 
AnswerRe: Running a web application on two windows Pin
Steve Maier18-Feb-11 5:50
professionalSteve Maier18-Feb-11 5:50 
QuestionAssign a Textbox in the parent page from a ModalPopup in asp.net Pin
Vimalsoft(Pty) Ltd17-Feb-11 23:40
professionalVimalsoft(Pty) Ltd17-Feb-11 23:40 

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.