62,041
社区成员
发帖
与我相关
我的任务
分享
if(Session["UserName"]!=null)
{
lblUser.Text="欢迎您:"+Session["UserName"].ToString();
}
Session["UserName"]=txtUserName.Text.ToString();
Response.Redirect('');
Dim str As String = "select pid,name,pwd from personinfo where name = '" + txtname.Text + "' and pwd = '" + txtpwd.Text + "'"
Dim dt As New DataTable
dt = fee.getDt(str)
If dt.Rows.Count > 0 Then
Session("pid") = dt.Rows(0)("pid")
Session("name") = dt.Rows(0)("name")
Response.Redirect("mainform.aspx")
End If
If Session("name") <> "" Then
lblMsg.Text = "欢迎您:"+ Session("name")
end if
lblMsg.Text = "欢迎您:"+ Session("name")
if(session["User"]!=null)
{
txtUser.Text=Session["User"].ToString();
}