首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

Iprincipal myprincipal = this.user 出现异常

2012-03-16 
Iprincipalmyprincipal this.user 出现错误protected void btnsubmit_click(object sender, EventArgs e

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

热点排行