Click here to Skip to main content
15,905,000 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
first form registered user enters his login id and password, (i completed this one)

on my 2nd form i have 2 text box and 1 button

register user only can Enter Type on textbox1, and The amount should insert database

i need to receive error message if un reistered user Enter.on text box1
can any 1 give me the sample code.
Thanks
Posted

1 solution

on login page if ok

Do this

FormsAuthentication.RedirectFromLoginPage

in web.config file you need this

 <authentication mode="Forms">
   <forms loginurl="login.aspx" name=".ASPXFORMSAUTHprod" protection="All" />
</authentication>

<authorization>
 <deny users="?" />
</authorization>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900