如题

解决方案 »

  1.   

    http://dotnet.aspx.cc/article/091502D4-CD3B-4463-A1CF-14A36602FF6A/read.aspx
      
    *****************************************************************************
    欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) 
    http://feiyun0112.cnblogs.com/
      

  2.   

    <%@ Page Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script runat="server">
        protected void Page_Load()
        {
            Page.Title = "CSDNABC";
        }
    </script><html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        
        </div>
        </form>
    </body>
    </html>
      

  3.   

     protected void Page_Load(object sender, EventArgs e)
        {
            string connstring = "server=.;uid=virus;pwd=;database=DevTest";
            SqlConnection conn = new SqlConnection(connstring);
            conn.Open();
            SqlCommand comm = new SqlCommand("select top 1 aaname from aa where aaid=1", conn);
            this.Title = comm.ExecuteScalar().ToString();
            conn.Close();
            conn.Dispose();
        }