在<title></title>中怎么调用数据库中的内容 如题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://dotnet.aspx.cc/article/091502D4-CD3B-4463-A1CF-14A36602FF6A/read.aspx *****************************************************************************欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/ <%@ 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> 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(); } 有个正则表达式 关于 C#的datacolumn语句的理解 各位大哥帮帮忙,最后78分了 推荐一个支持bind submit delvier等过程的sgip模拟网关 请问HttpWebRequest问题 VS 2005中 有没有地方 写开发文档? 水晶报表如何每页汇总??????????????????????????????? active directory 请教:排序----使用范型 怎么把科学计数法的数值格式化成非科学计数法数值? c# winform 按enter 进入下一个控件。。。在线等 winform的keydown事件怎样得到用户同时按ESCAPE两次?
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码)
http://feiyun0112.cnblogs.com/
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>
{
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();
}