服務(wù)熱線
153 8323 9821
<% int a = 1; int b = 2; if (a<b) { Response.Write("<script>alert('正確?。?</script>"); } %><table><tr><td>
<% if(a>0) //隨便來(lái)的一個(gè)條件 %>idc311.com <% else %> 我是www.idc311.com</td></tr></table>
用 <%內(nèi)嵌代碼%>
比如 :
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>內(nèi)嵌代碼的用法</title>
</head>
<body>
<form id="form1" runat="server">
<%if(DateTime.Now.Hour<12)%>
上午好!
<%else%>
下午好!
</form>
</body>
</html>