仅注册用户可以在textbox1上输入Type [英] register user only can Enter Type on textbox1

查看:64
本文介绍了仅注册用户可以在textbox1上输入Type的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

第一个表单注册用户输入其登录ID和密码,(我完成了此操作)

在第二个表格上,我有2个文本框和1个按钮

仅注册用户可以在textbox1上输入Type,并且金额应插入数据库

如果文本框1上的用户Enter.on不受欢迎,我需要收到错误消息
可以给我任何一个示例代码.
如果,请在登录页面上感谢

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

推荐答案


这样做

FormsAuthentication.RedirectFromLoginPage

在web.config文件中,您需要此

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>


这篇关于仅注册用户可以在textbox1上输入Type的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆