if Not(IspostBack) Then
{
  //网页第一次加载时,执行的一些操作
}
else
{
  回送时执行的操作
}
//网页每次加载时执行的操作,你的txt_show.Text = viewstate("search_term")应该放在此!

解决方案 »

  1.   

    首先txt_show输入内容,click,再单击HyperLink时txt_show内容为空。
    应该是吧!
    你再次打开的时候已经将ViewState清空了!
      

  2.   

    对的啊, 理论是这样的阿,viewstate是纪录你的操作的,If Not (IsPostBack) 是说 第一次加载叶面的时候,当然没有viewstate了,你根本就没有提交叶面啊,也就是说你根本就没有click Button1
      

  3.   

    when you clicked on the link  "temp.aspx?s=1", it is a page change, not a form submission, i.e., the state saved in your page is not post back, so the viewstate is empty