扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:廖煜嵘 来源:天极网 2007年11月7日
关键字: Windows
<%@ Page Language="VB" AutoEventWireup="false" CompileWith="Default.aspx.vb" ClassName="Default_aspx" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <asp:Label ID="Label1" Runat="server" Text="Label" Width="74px" Height="19px"></asp:Label> <br /> <asp:GridView ID="GridView1" Runat="server" DataSourceID="SqlDataSource1"> </asp:GridView> <br /> <br /> <asp:SqlDataSource ID="SqlDataSource1" Runat="server" SelectCommand="SELECT * FROM authors" ConnectionString="Initial Catalog=pubs;Data Source=localhost;user id=sa;password=123456"> </asp:SqlDataSource> </form> </body> </html> |
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Label1.Text = CType(System.DateTime.Now(), String) End Sub |
<?xml version="1.0"?> <configuration> <connectionStrings> <add name="PubsConn" connectionString="Initial Catalog=pubs;Data Source=(local);user id=sa;password=123456"/> </connectionStrings> <system.web> <caching> <sqlCacheDependency enabled="true" pollTime="500"> <databases> <add name="Pubs" connectionStringName="PubsConn"/> </databases> </sqlCacheDependency> </caching> </system.web> </configuration> |
![]() |
![]() |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。