show-notice
hide-notice

Sunday 7 July 2013

how to use HTML Server Controls


Introduction
 

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>

SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com