当前位置:首页
开发技术指南» 文章正文
    引言:

 ·求助在用tc时会有延迟现象    »显示摘要«
    摘要: 大家帮忙 我在运行tc后,开始用的时候没有问题,不一会就会有动作延迟,就是我键盘上都输完了但是屏幕上像死机了一样没反应,要等一会,然后刷刷刷都出来了,每次在家里做c程序的时候都很郁闷。我是在windowsxp下运行的tc,后来附件的命令提示符下试着运行,还是那样。后来我又从学校把tc拷来安上,可还一样,为什么学校的电脑可以,我的电脑不行?大游戏也可以很流畅的。希望哪位大虾可以告诉我这是怎么......
    摘要: type exception report message description the server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.jasperexception: unable to compile......


关于VIEWSTATE的在返回地址时的应用

在Page_Load(...)中  
  if(!Page.IsPostBack)  
  {  
        ViewState["backUrl"]=Request.UrlReferrer.ToString();  
  }  
  在返回button的click事件中:  
  Response.Redirect(ViewState["backUrl"].ToString());  
  这样当有click事件时就能正确的返回到上个url  
  但这样不行吗:  
  Response.Redirect(Request.UrlReferrer.ToString());  
  为什么不行?难道只能在Page_Load中才能调用Request.UrlReferrer吗?在别的事件代码中就不行吗?  
  还有个问题,在上面所说的button_click中  
  Reponse.redirect("webform1.aspx");  
  Reponse.redirect("webform2.aspx");  
  运行的时候转到webform1.aspx后就不会运行后面的,也就是说不会再转到webform2.aspx了,有原因吗?  
  谢谢大家

NO.1   作者: xrascal

Reponse.redirect("webform1.aspx");  
  Reponse.redirect("webform2.aspx");  
   
  页面都已经重定向到了   webform1.aspx   了,程序已经是在加载   webform1.aspx   的代码了。  
  当然不会再执行   Reponse.redirect("webform2.aspx");   了。  
   
 


    摘要: c++关于私有数据的描述如下:一种是私有(private)成员,只有在类中说明的函数才能访问该类的私有成员,而在该类外的函数不可以访问私有成员; 但是看我下面写的一个程序,可以编译运行 #include<iostream.h> class a { private: int x,y; public: a(int a, int b) { x=a; y=b; } a() { ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE