Monday, May 1, 2017

ASP.NET Example

<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="Label1" runat="server" Text="Sno"></asp:Label><asp:TextBox ID="SnoTextBox"
            runat="server"></asp:TextBox><br/>
        <asp:Label ID="Label2" runat="server" Text="Name"></asp:Label><asp:TextBox ID="NameTextBox"
            runat="server"></asp:TextBox><br/>
        <asp:Label ID="Label3" runat="server" Text="Address"></asp:Label><asp:TextBox ID="AddressTextBox"
            runat="server"></asp:TextBox><br/>
        <asp:Button ID="Button1" runat="server" Text="Insert" onclick="Button1_Click" />
        <asp:Button ID="Button2" runat="server" Text="Find" onclick="Button2_Click" />
        <asp:Button ID="Button3" runat="server" Text="Update" onclick="Button3_Click" />
        <asp:Button ID="Button4" runat="server" Text="Delete" onclick="Button4_Click" />
        <asp:Button ID="Button5" runat="server" Text="Reset" />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
    </div>
    </form>
</body>

No comments:

Post a Comment