当前位置: 代码迷 >> ASP.NET >> 关于Iprincipal的有关问题
  详细解决方案

关于Iprincipal的有关问题

热度:9327   发布时间:2013-02-25 00:00:00.0
关于Iprincipal的问题
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