how to connect database using c# and asp.net
Sample code for simple webform connecting database using visual studio with asp.net and C#. Asp.Net code <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Registration.aspx.cs" Inherits="dbconnect_web.dbconnect" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <h4>Register page</h4> <table> <tr> <td><asp:Label ID="username" runat="server" Text="User Name :"></asp:Label></td> <td><asp:TextBox ID="input1" r...