This Arttical i will explain how to use HTML Server Controls.
Example
<%@ Page Language="C#" %>
<script runat="server">
protected void Button1_ServerClick(object sender, EventArgs e)
{
Response.Write("Hello " + Text1.Value);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Using HTML Server Controls</title>
</head>
<body>
<form id="form1" runat="server">
<div>
What is your name?<br />
<input id="Text1" type="text" runat="server" />
<input id="Button1" type="button" value="Submit" runat="server"
onserverclick="Button1_ServerClick" />
</div>
</form>
</body>
</html>
|
0 comments :
Post a Comment