ASP.net:Literal¿Ø¼þ
ÔÚÍøÉÏ¿´µ½Ò»¶Î¹ØÓÚÒýÓÃLiteralµÄ´úÂë
<head>
<script runat="server">
void ButtonClick(Object sender, EventArgs e)
{
MM1.Text="Welcome to ASP.NET!!"; Õâ¸ö²¿·ÖÊdzõÖµ
}
</script>
</head>
<body>
<form runat="server">
<h3>Literal Example </h3>
<asp:Literal id="MM1"ÕâÀïÓ¦¸ÃÊÇÒýÓÃLiteral¿Ø¼þµÄλÖõİɣ¬ÄÚÈݾÍÊÇMM1µÄtext
Text="Hello World!!"
runat="server"/>
<br> <br>
<asp:Button id="Button1"
Text="¸Ä±äLiteralÄÚÈÝ"
OnClick="ButtonClick"
runat="server"/>
</form>
</body>
ÄÇôֻҪɾ³ý <asp:Literal id="Literal1"
Text="Hello World!!"
runat="server"/>
ÊDz»Ê
Ïà¹ØÎÊ´ð£º
aspÏÂÃ棬µ±Òª¸ù¾Ý²»Í¬µÄȨÏÞÏÔʾһЩ¹¦ÄÜ°´Å¥µÄ»°»áд³É
<%
if ȨÏÞ=1 then
%>
<input type="submit" name="Submit" value="Ìá½»" />
<%
end i ......
protected void btn_sea_Click(object sender, EventArgs e)
{
if (t_date1.Text == "" | t_date2.Text == "")
......
Label lbsingle = new Label();
if (ds.Tables[0].Rows.Count == 0)
Label.Visible = false;
......
ÎÒʹÓÃODBCÁ¬½ÓsysbaseÊý¾Ý¿â£¬ÔÚasp.netÖÐÓÃSqlDataSourceÉèÖÃÊý¾ÝÁ¬½Ó£¬¹ý³ÌÖгöÏÖÒ»¸öµ¯³ö¿òûÓÐ˵Ã÷¾ÍÊÇÒ»¸ö¾¯¸æµÄͼ±ê¡¢Ò»¸öÈ·¶¨°´Å¥£¬µã»÷¼ÌÐø£¬Äܹ»Íê³É²éѯ¡£ÔÚä¯ÀÀÆ÷ÉÏÔËÐÐʱ»¹Êǵ¯³öÄǸöµ¯³ö¿ò£¬±ØÐëµã»÷² ......
±¾È˳õ´Î½Ó´¥GIS£¬ÏëÔÚ×Ô¼ºÓÃasp.net½¨µÄÍøÕ¾ÄÚ£¬Ç¶ÈëGIS¼¼Êõ£¬×öÒ»¸öµØͼ£¬ÄÜÔÚµØͼÉ϶¯Ì¬Éú³É·Ïߣ¬ÓÉÓÚ³õ´Î½Ó´¥GIS£¬ÊµÔÚÊDz»Öª´ÓºÎÏÂÊÖ£¬¿ª·¢WEBGISÓÃЩʲôÑùµÄÈí¼þ¹¤¾ß£¬ÓÖÈçºÎ½«×ö³ÉµÄµØͼÔÚvs2008ÀïʹÓã¬Õâ ......