htmlinputbutton

代碼:

<script  runat="server">

Sub submit(sender As Object, e as EventArgs)

if name.value<>"" then

   p1.InnerHtml="Welcome " & name.value & "!"

end if

End Sub

</script>

<!DOCTYPE html>

<html>

<body>

<form runat="server">

Enter your name: <input id="name" type="text" size="30" runat="server" />

<br><br>

<input type="submit" value="Submit" OnServerClick="submit" runat="server" />

<p />

</form>

</body>

</html>

運行結果:


相關文章
亚洲国产精品第一区二区,久久免费视频77,99V久久综合狠狠综合久久,国产免费久久九九免费视频