出了什么错啊?tostring就是把对象session转换成字符串的意思

解决方案 »

  1.   

    谢谢flcandclf(怪手大分) 
    错误提示:An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 
      

  2.   

    TO:terryshi(terryshi) 
    我是看一本的实例是这样的,在前一个显示留言板的页面出现PostID这个参数,我也觉得奇怪,应该这个参数要在这个页面出现才可以,但它的例子就是这样的,我也不知道为什么可以这样
    你能解释一下吗?
      

  3.   

    联到这页面的前一个页面需要传一个叫做PostID的参数,这个页面本身没有什么错误,只是不够健壮巴勒
      

  4.   

    TO:terryshi(terryshi):
    这个传递怎样实现呢?
      

  5.   

    你自己定义一个postid就可以了,当然要赋值的
      

  6.   

    然后替代掉那个request【】
    这样做实质上没有什么用,根本的方法是
    你在上一个页面转到这个页面的时候在相应的url上加上参数&postid=值
    就可以了
      

  7.   

    To: rachy(黑色雨) 
    能不能把具体的语句写一下
    谢谢~!
      

  8.   

    if(!Request["PostID"]==unll)
    {
       postID=Request["PostID"];
    }
    else
    {
       没有参数PostID时,赋PostID的初始值
    }
      

  9.   

    To:gyf19(秋天的云) 
    还是不行
      

  10.   

    出现的错误提示:Compiler Error Message: CS0103: The name 'postID' does not exist in the class or namespace 'ASP.write_back_aspx'
      

  11.   

    改成 Request.QueryString["PostID"] 试试。
      

  12.   

    你是在哪个页面转到这个页面的啊?
    比方说我现在在页面mainfrom.aspx上,点击按钮
    转到你现在的页面detail.aspx,那么在点击按钮的事件中:
    string url = "detail.aspx?a=1&b=1&postid=2";
    response.redirect(url)
    你在上面的url中把postid加上就好了
      

  13.   

    那个PostID参数是从leaveword.aspx传递到wrtie back.aspx页面
    在PostID是通过leaveword.aspx中的Datagrid中的超连接列传递的,而且我运行wrtie back.aspx页面的时候网址那里也看到PostID参数已传过来。