http://2788.net/guestbook/index.aspx1、怎么过滤特殊字符?比如'
2、后台管理怎么做?要用两个datagrid吗?如果是一个怎么验证身份?不会是用session吧?
3、用DW做的CSS文件怎么连接上呀?不想手工写连接代码?在VS里没有连接CSS的功能吗?

解决方案 »

  1.   

    “/guestbook”应用程序中的服务器错误。
    --------------------------------------------------------------------------------运行时错误 
    说明: 服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止远程查看应用程序错误的详细信息(出于安全原因)。但可以通过在本地服务器计算机上运行的浏览器查看。 详细信息: 若要使他人能够在远程计算机上查看此特定错误信息的详细信息,请在位于当前 Web 应用程序根目录下的“web.config”配置文件中创建一个 <customErrors> 标记。然后应将此 <customErrors> 标记的“mode”属性设置为“Off”。
    <!-- Web.Config 配置文件 --><configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>
     注释: 通过修改应用程序的 <customErrors> 配置标记的“defaultRedirect”属性,使之指向自定义错误页的 URL,可以用自定义错误页替换所看到的当前错误页。
    <!-- Web.Config 配置文件 --><configuration>
        <system.web>
            <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
        </system.web>
    </configuration>
     
      

  2.   

    是啊,当我用<script>alert('test');</script>时就出先上面错误,怎么修改?
      

  3.   

    <%@ page language="vb" validaterequest="false"%> //加上这个
    然后用下面的替换文本框的内容
    在vb中
    dim text1 as string=text1.text
    text1=text1.replace("'","''")
    text1=text1.replace(" ","&nbsp;")
    text1=text1.replace(chr(10) & chr(13),"<br/>")
    在c#中
    String text1=text1.Text;
    text1=text1.Replace("'","''");
    text1=text1.Replace(" ","&nbsp;");
    text1=text1.Replace(\r\n,"<br/>");
      

  4.   

    么过滤特殊字符?比如'
    string a=Replace(b,"'","");
      

  5.   

    1、怎么过滤特殊字符?比如'
    -----------------------------
    可以用验证控件或后台代码做合法性判断来过滤,也可以用String.Replace提一个别的字符
    3、用DW做的CSS文件怎么连接上呀?不想手工写连接代码?在VS里没有连接CSS的功能吗?
    ---------------
    <LINK href="style.css" type="text/css" rel="stylesheet">
      

  6.   

    写错啦 string a=b.Replace("'","");
    后台管理怎么做?要用两个datagrid吗?如果是一个怎么验证身份?不会是用session吧?
    你可以自己定datagrid,身份验证可以考虑session or cookies
      

  7.   

    3。css链接,加在<head></head>中
    <link href="css/site.css" rel="stylesheet" type="text/css">
      

  8.   

    请教<%@ page language="vb" validaterequest="false"%>如果放在web.config里该放哪里?
      

  9.   

    String text1=text1.Text;
    text1=text1.Replace("'","''");
    text1=text1.Replace(" ","&nbsp;");
    text1=text1.Replace(\r\n,"<br/>");
    -------------------------------------
    更正一下!
    String text1=text1.Text;
    text1=text1.Replace("'","''");
    text1=text1.Replace(" ","&nbsp;");
    text1=text1.Replace(\r\n,"<br>");
      

  10.   

    2.用cookie和session都可以,至于后台管理你下个留言本研究一下!
    www.sj00.com
      

  11.   

    我一直以为到asp.net了不用session来管理登陆了呢请教<%@ page language="vb" validaterequest="false"%>如果放在web.config里该放哪里?