懂asp和asp.net的高手
帮我把asp的翻译成asp.net的谢谢<%Response.Buffer=trueResponse.Expires=0userName=Request.Form("us...
帮我把asp的翻译成asp.net的谢谢
<%
Response.Buffer=true
Response.Expires=0
userName=Request.Form("username")
if username="" then Response.Redirect "index.asp"
session("u_name")=username
if Request.Form("sx")="1" then
session("u_sx")="1"
else
session("u_sx")="0"
end if
%> 展开
<%
Response.Buffer=true
Response.Expires=0
userName=Request.Form("username")
if username="" then Response.Redirect "index.asp"
session("u_name")=username
if Request.Form("sx")="1" then
session("u_sx")="1"
else
session("u_sx")="0"
end if
%> 展开
2个回答
展开全部
if (Request.Form.Count != 0)
{
string userName = Request["username"];
if (username == "")
Response.Redirect("index.asp");
Session["u_name"] = username;
if (Request["sx"] == "1")
Session["u_sx"] = "1";
else
session["u_sx"] = "0";
}
{
string userName = Request["username"];
if (username == "")
Response.Redirect("index.asp");
Session["u_name"] = username;
if (Request["sx"] == "1")
Session["u_sx"] = "1";
else
session["u_sx"] = "0";
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询