|
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.
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
Hello man see this example u can understand and knows clearly about forms authentication.
www.xoc.net this is site and look on that forms authentication.
I hope it will work for u
Happy coding.
|
|
|
|
|
i created a web user control.now i want that control to come into the toolbar.
what should i do?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
svae this user control in gac
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
yaar woh kaise karu?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
sorry its not possible only dll and exe add on tollbarrrrrrrrrrrrrrrrrrrrrr
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
piyush......how to add it in web form
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
why u want to add
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
really u don't know how to add in web from its so simple
mouse se pakado user control ko aur web form me dall do add ho g
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
I CREATED A WINDOW USER CONTROL AND ADDED IT'S DLL AS A REFERENCE INTO THE WEB SOLUTION.
CAN I ADD THAT CONTRO;L IN THE TOOLBAR IN WEB SOLUTION
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
This is a common forum so try to use a universal language. Do not think that everyone knows your language. It will irritate people and they will not reply to you
|
|
|
|
|
SORRY
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Ok if the question and answers are in English other members can refer it
|
|
|
|
|
yes i understand, i will keep it in mind next time.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
You must think over it Before Posting it in the Forum. Since it is Universally readed so everyone should understand what is there ?
SSK.
|
|
|
|
|
ok yes sir.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Go with the English,this is Forum.
Hope you guys got it?
SSK.
|
|
|
|
|
OK SORRY
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
All web user controls in the solution are automatically added to the toolbox when in design mode.
If it does not work try a clean and rebuild of your solution.
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
hi,
How to Change picture in Ad rotator control using specfic time interval without postback..?
thanx & regards
Ramu Annamalai
|
|
|
|
|
Don't Cross Post in Multiple Forums.
SSK.
|
|
|
|
|
hi vir ssk,
thanks for the advice, its my first time in this site,
some dilemas over my mind. here after i'll go clean..!
Cheers
Ramu Annamalai
|
|
|
|
|
hello ,
The date validation should be done using javascript only.
ok byee
|
|
|
|
|
Below i have Answered you.
BTW why you create a new thread for the same.
SSK.
|
|
|
|
|
hello everyone,
I have small doubt regarding DateValidation.I have a textbox and button in a webform.aspx page .When i enter a date and click on button the corresponding date validations should be done and dateformat should be in dd/mm/yyyy format only.Plz help in write it is very urgent for me,...
ok byeee
Murali
Murali
|
|
|
|