一般处理程序的代码
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/html";
HttpCookie cookie = context.Request.Cookies["user"];
string rodeId = cookie["uId"].ToString();
string name = cookie["uName"].ToString();
BGYPLibrary.Model.T_User user = new BGYPLibrary.Model.T_User();
user.UserName = name;
user.userRoleId = Convert.ToInt32(rodeId);
//string[] str = { rodeId,name };
string html = CommonHelper.RenderHtml("index.html", rodeId);
context.Response.Write(html);
}
html也得js
var use = "< %=data.userRoleId% >";
为什么这种方法不能接收传回来的值?要怎么样才能接收?那位大神说一下,最好能说清楚的