当前位置: 代码迷 >> ASP.NET >> Iprincipal myprincipal = this.user 出现异常
  详细解决方案

Iprincipal myprincipal = this.user 出现异常

热度:1736   发布时间:2013-02-25 00:00:00.0
Iprincipal myprincipal = this.user 出现错误
protected void btnsubmit_click(object sender, EventArgs e)
  {
  Iprincipal myprincipal = this.User; 是错的吗?
  string tablestring = "<table border=1><tr><td>Name</td><td>";
  tablestring += Server.HtmlEncode(myprincipal.identity.name) + "</td></tr>";
  Response.Write(tablestring);
  }

------解决方案--------------------------------------------------------
路过,up
  相关解决方案