日期:2014-05-16 浏览次数:20430 次
namespace FM
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string connectionString = ConfigurationManager.ConnectionStrings["Projector"].ConnectionString;
SqlConnection con = new SqlConnection(connectionString);
con.Open();
SqlCommand comm = new SqlCommand("select * from ProjectorFM", con);
SqlDataReader read = comm.ExecuteReader();
while (read.Read())
{
Response.Write(read[1].ToString() + "<br>");
}
}
protected void Unnamed_Click(object sender, ImageClickEventArgs e)
{
}
protected void Unnamed_Click2(object sender, ImageClickEventArgs e)
{
}
}
}
div.InnerHtml=read[1].ToString();