Click here to Skip to main content
15,896,726 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Error in retrieving data using JOINS Pin
Sathesh Sakthivel19-Jul-07 23:47
Sathesh Sakthivel19-Jul-07 23:47 
GeneralRe: Error in retrieving data using JOINS Pin
n_gchaitra20-Jul-07 0:59
n_gchaitra20-Jul-07 0:59 
Questionanybody know Something @ UnauthorisedAccessException? Pin
Amit.Amit.Amit...19-Jul-07 23:20
Amit.Amit.Amit...19-Jul-07 23:20 
AnswerRe: anybody know Something @ UnauthorisedAccessException? Pin
Paddy Boyd20-Jul-07 0:03
Paddy Boyd20-Jul-07 0:03 
AnswerRe: anybody know Something @ UnauthorisedAccessException? Pin
N a v a n e e t h20-Jul-07 0:06
N a v a n e e t h20-Jul-07 0:06 
QuestionRe: anybody know Something @ UnauthorisedAccessException? Pin
Amit.Amit.Amit...21-Jul-07 0:29
Amit.Amit.Amit...21-Jul-07 0:29 
QuestionI have 2 type user.how can I create a login page? Pin
mehran.asg19-Jul-07 22:36
mehran.asg19-Jul-07 22:36 
AnswerRe: I have 2 type user.how can I create a login page? Pin
Amit.Amit.Amit...19-Jul-07 23:38
Amit.Amit.Amit...19-Jul-07 23:38 
if u r using VS.net 2.0

take a login control drag it to ur page

& take a registation control to register ur page

go to .net command prompt type aspnet_regsql

it will open a wizard follow that to ur working DB

now add some attributes to ur web.config

authentication mode="Forms"
forms loginUrl="Login.aspx" name="D1" timeout="60" /forms
/authentication
authorization
allow users="*"/
/authorization
membership defaultProvider="MyProvider"
providers
add name="MyProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="BankDBConnectionString" passwordFormat="Clear" enablePasswordRetrieval="true" /add
/providers
/membership
roleManager enabled="true" defaultProvider="MyRoleProvider"
providers
add name="MyRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="BankDBConnectionString"/
/providers
/roleManager
profile defaultProvider="MyProfileProvider"
providers
add name="MyProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="BankDBConnectionString"/
/providers
properties
add name="Theme"/
/properties
/profile
this will give u Roles,Members and Profiles

Now create two roles as u hv two

Rols.
//u will get something like createrole("")
make two folders for two roles respective page in respective folder
now make two seperate web.config for these folders

and write
authorization
allow roles="Staff"/
allow roles="Manager"/
deny users="?"/
/authorization


as ur roles

thats it........

please read code care fully i m not showing tags so please interpret it right.

Rose | [Rose]









Amit Metkar
3i-infotech, Mumbai.

AnswerRe: I have 2 type user.how can I create a login page? Pin
aditya_asv22-Jul-07 16:22
aditya_asv22-Jul-07 16:22 
Questionweb user control. Pin
Sonia Gupta19-Jul-07 22:24
Sonia Gupta19-Jul-07 22:24 
AnswerRe: web user control. Pin
Piyush Vardhan Singh19-Jul-07 22:39
Piyush Vardhan Singh19-Jul-07 22:39 
GeneralRe: web user control. Pin
Sonia Gupta19-Jul-07 22:42
Sonia Gupta19-Jul-07 22:42 
GeneralRe: web user control. Pin
Piyush Vardhan Singh19-Jul-07 22:59
Piyush Vardhan Singh19-Jul-07 22:59 
GeneralRe: web user control. Pin
Sonia Gupta19-Jul-07 23:01
Sonia Gupta19-Jul-07 23:01 
GeneralRe: web user control. Pin
Piyush Vardhan Singh19-Jul-07 23:01
Piyush Vardhan Singh19-Jul-07 23:01 
GeneralRe: web user control. Pin
Piyush Vardhan Singh19-Jul-07 23:09
Piyush Vardhan Singh19-Jul-07 23:09 
GeneralRe: web user control. Pin
Sonia Gupta19-Jul-07 23:31
Sonia Gupta19-Jul-07 23:31 
GeneralRe: web user control. Pin
tisaracorner19-Jul-07 23:14
tisaracorner19-Jul-07 23:14 
GeneralRe: web user control. Pin
Sonia Gupta19-Jul-07 23:20
Sonia Gupta19-Jul-07 23:20 
GeneralRe: web user control. Pin
tisaracorner19-Jul-07 23:45
tisaracorner19-Jul-07 23:45 
GeneralRe: web user control. Pin
Sonia Gupta19-Jul-07 23:47
Sonia Gupta19-Jul-07 23:47 
GeneralRe: web user control. Pin
Sathesh Sakthivel19-Jul-07 23:50
Sathesh Sakthivel19-Jul-07 23:50 
GeneralRe: web user control. Pin
Sonia Gupta20-Jul-07 0:08
Sonia Gupta20-Jul-07 0:08 
GeneralRe: web user control. Pin
Sathesh Sakthivel19-Jul-07 23:18
Sathesh Sakthivel19-Jul-07 23:18 
GeneralRe: web user control. Pin
Sonia Gupta19-Jul-07 23:32
Sonia Gupta19-Jul-07 23: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.