如何添加代码使用户必须登陆才能看到信息
zmw79 2006-06-02 11:04:00 现在不用登陆直接可以后台添加,前面浏览。
但是现在必须要做到,必须登陆才能看。
protected void Page_Load(object Src, EventArgs E)
{
NewsType = Request.QueryString["NT"];
if(!IsPostBack)
{
if (NewsType=="1")
Menus.Text = "1";
if (NewsType=="2")
Menus.Text = "2";
if (NewsType=="3")
Menus.Text = "3";
if (NewsType=="4")
Menus.Text = "4";
if (NewsType=="6")
Menus.Text = "6";
if (NewsType=="7")
Menus.Text = "7";
SearchBox.Text="";
bindData();
}
}
大侠们,帮我看看啊。