我在web.config中配置了<globalization fileEncoding="gb2312" requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN"/>解决了乱码,但是我首页是这样的
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
        &nbsp;
        <asp:ImageButton ID="ImageButton1" runat="server" Height="80px" ImageUrl="~/images/button/btnxy1.bmp"
            OnClick="ImageButton1_Click" Width="155px" />
            </ContentTemplate>
        </asp:UpdatePanel>
        &nbsp;
        <div style="z-index: 101; left: -214px; width: 481px; position: absolute; top: -150px;
            height: 6px">
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
         <ProgressTemplate>
             <asp:Image ID="Image1" runat="server" Height="9px" ImageUrl="~/images/Loading.gif"
                 Width="581px" />
             <center style="color: #0000ff; font-family: 楷体_GB2312">
                 正在装载系统初始化................</center>
            </ProgressTemplate>        </asp:UpdateProgress>
        </div>
     我在ImageButton1_Click这样写的
Thread.Sleep(3000);        Response.Redirect("Main.aspx");
然后那个在Updateprogress里面的图片和字就显示不出来了,如果我把在web.config中我写的那句去了,就行了。
请各位高手看看,谢谢啦!