Server-ISYS546DynamicPage–Client-SideScriptExampleDemo:<html><head><title>NewPage1</title></head><body><p>Thetimeisnow<scriptlanguage=vbscript> ()</script></p><scriptlanguage=vbscript>iHour=hour(time())ifiHour<12then "<h1>goodmorning</h1>"else "<h1>goodafternoon</h1><br>"endif</script></body></html>ProblemswithClient-patibilityproblemMozillaIEDynamicWebPages–Server-SideScriptExampleDemo:<body><p>Thetimeisnow<%=()%></p><p>Thetimeisnow<%(())%></p><%dimiHouriHour=()ifiHour<12then ("<h1>goodmorning</h1><br>")else ("<h1>goodafternoon</h1><br>")endif%></body>Note:Needwebserver;cannotopenbyFile/-SidevsServer-SideScriptingClient-sidescripting:-sidescripting::,WebFormstabHTMLtabHTMLIntroductionHeadingsection<head>,<title>,<meta>,<script>,<body>,<p>,<h1>to<h6>,<a>,<br>Formatting:<b>,<I>,<u>,<ment:<!--comment--> List<ul>ImageTable:<table>,<tr>:anewrowintable,<td>::<form>,<input>,<select>,<textarea>METATagThemetatagallowsyoutoprovideadditionalinformationaboutthepagethatisnotvisibleinthebrowser:<metaname=“Author”content=“DChao”><metaname=“Keywords”content=“apple,orange,peach”>Redirection:<metahttp-equiv=“refresh”content=“3;url=”>“3”<tableborder="1"width="100%"><tr><tdwidth="25%"></td><tdwidth="25%"> </td><tdwidth="25%"> </td><tdwidth="25%"> </td></tr><tr><tdwidth="25%"> </td><tdwidth="25%"> </td><tdwidth="25%"> </td><tdwidth="25%"> </td></tr></table>FORMTagForma
Server-Side Scripting with ASP.Net 来自淘豆网m.daumloan.com转载请标明出处.