楼上大哥web.config从那里去设啊

解决方案 »

  1.   

    你只要打开你的web.config文件就可以找到了。把所以的utf-8改成gb2312就行了,web.config就在你新建的web项目的根目录下
      

  2.   

    Re:楼上大哥web.config从那里去设啊
    在你的asp.net网站根目录和子目录里。请在搜索引擎搜索 web.config,可以得到很多资料。
      

  3.   

    惨了,我是用Macromedia Dreamweaver MX做的,没这个文件,这么办呢...
      

  4.   

    谁能给我一只web.config文件???
      

  5.   

    web.config
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration><system.web><compilation defaultLanguage="vb" debug="true" />
    <customErrors mode="RemoteOnly" />
    <authentication mode="Windows" /> <authorization>
    <allow users="*" /> 
    </authorization><trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" /><sessionState 
    mode="InProc"
    stateConnectionString="tcpip=127.0.0.1:42424"
    sqlConnectionString="data source=127.0.0.1;user id=sa;password="
    cookieless="false" 
    timeout="20" 
    />
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" /></system.web></configuration> 
    以上的内容放在web.config文件中并将其中的uft-8字样改为gb2312即可
      

  6.   

    谁能解释解释楼上是什么意思呢,我感觉<compilation defaultLanguage="vb" debug="true" />这一句像是设成调式模式stateConnectionString="tcpip=127.0.0.1:42424"
    sqlConnectionString="data source=127.0.0.1;user id=sa;password="这一句像是连数据库web.config有什么好处?
    数据库连接写到
      

  7.   

    这一句像是连数据库web.config有什么好处?
    方便如果数据库名称或者ip经常修改,只需要修改一个变量
    不需要在程序中每个修改类似公共变量