Kevin

天高任鸟飞,海阔凭鱼跃

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  23 随笔 :: 0 文章 :: 39 评论 :: 0 引用
<%@ Page Language=”VB” %>
<script runat=”server”>
Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs)
Meta1.Attributes(“Name”) 
= “description”
Meta1.Attributes(“CONTENT”) 
= “Generated on: “ & DateTime.Now.ToString()
End Sub

</script>
<html xmlns=”http://www.w3.org/1999/xhtml” >
<head runat=”server”>
<title>Using the HtmlGenericControl class</title>
<meta id=”Meta1” runat=”server” />
</head>
<body>
<form id=”form1” runat=”server”>
<div>
The rain 
in Spain stays mainly in the plains.
</div>
</form>
</body>
</html>

<%@ Page Language=”C#” %>
<script runat=”server”>
protected void Page_Load(object sender, EventArgs e)
{
Meta1.Attributes[“Name”] 
= “description”;
Meta1.Attributes[“CONTENT”] 
= “Generated on: “ + DateTime.Now.ToString();
}

</script>
posted on 2005-12-29 20:34 Kevin 阅读(397) 评论(1) 编辑 收藏

评论

#1楼 2006-01-13 10:58 Leonic      
感觉.net 2.0只是把基于.net1.1的很多第三方控件整合了。
 回复 引用 查看