Posts

ASP.NET web form with SQL database(delete, update and search functions) in Visual Studio

Image
 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Insert.aspx.cs" Inherits="Insert_Function_Web_Form.Insert" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <style>         .auto-style1{             width:100%;         }         .auto-style2 {             text-align: center;         }         .auto-style3 {             width: 120px;         }     </style> </head> <body>     <form id="form1" runat="server">         <div>             <table cellpadding="1" cellspacing="2" class="auto-style1">               ...

ASP.NET web form with SQL databse and insert function in Visual Studio

Image
 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Insert.aspx.cs" Inherits="Insert_Function_Web_Form.Insert" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <style>         .auto-style1{             width:100%;         }         .auto-style2 {             text-align: center;         }         .auto-style3 {             width: 120px;         }     </style> </head> <body>     <form id="form1" runat="server">         <div>             <table cellpadding="1" cellspacing="2" class="auto-style1">               ...

Error Solution : Both DataSource and DataSourceID are defined on 'GridView1'. Remove one definition.

 IF BELOW ERROR IS OCCURRED THEN THE SOLUTION IS GIVEN BELOW : Server Error in '/' Application. Both DataSource and DataSourceID are defined on 'GridView1'. Remove one definition. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Both DataSource and DataSourceID are defined on 'GridView1'. Remove one definition. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidOperationException: Both DataSource and DataSourceID are defined on 'GridView1'. Remove one definition.] System.Web.UI.WebControls.DataBoundControl.EnsureSingleDataSource() +11637816 System.Web.UI.WebCont...

Registration Form in Asp.Net C# with Sql Server Database

Image
 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegistrationForm.aspx.cs" Inherits="Registration_Form_Sql.RegistrationForm" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <style>         .auto-style1{             width:34%;         }         .auto-style2 {             width: 101px;         }         .auto-style3 {             width: 101px;             height: 23px;         }         .auto-style4 {             height: 23px;         }     </style> </head> <body>     <form id="form1" runat="server"> ...