Posts

Showing posts from February, 2025

Complete CRUD Operation in Asp.Net C# With SQL Server Step by Step

Image
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CRUDTutorial._Default" %> <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">     <div>         <div style="font-size:x-large" align="center">Student Info Manage Form<br />             <br />         </div>         <table class="w-100">             <tr>                 <td style="width: 166px"></td>                 <td style="width: 198px">Student ID</td>                 <td>                     <asp:TextBox ID="TextBox1" runat="server" Font-Size=...

ASP .net CRUD Operations using stored procedures | CRUD in ASP.Net | Winsoft Technologies

Image
 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.SqlClient; using System.Configuration; namespace CRUD_ASP_WithSP {     public partial class WebForm1 : System.Web.UI.Page     {         string cs = ConfigurationManager.ConnectionStrings["MyCon"].ConnectionString;         private void ShowEmployeeData()         {             try             {                 SqlConnection con = new SqlConnection(cs);                 con.Open();                 SqlCommand cmd = new SqlCommand("prc_ShowEmpData", con);                 cmd.CommandType = CommandType.StoredProcedure; ...

use jquery client side validation in asp.net web forms | Coding Solutions With Ankit

Image
 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JqueryValidation.index" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <script src="https://code.jquery.com/jquery-3.7.1.js" integrity="sha256-eKhayi8LEQwp4NKxN+CfCh+3qOVUtJn3QNZ0TciWLP4=" crossorigin="anonymous"></script>     <script>         $(document).ready(function () {             //$("[id*=ControlID]");//Selector             $("[id*=btnsubmit]").click(function () {                 if ($("[id*=txtname]").val() == "") {                     alert("Please enter name");                     $("[id*=txtname]").focus();       ...

Create Stored Procedure for Login | ASP.NET C# | Final Year Project | Login Type 3 | Coder Baba

Image
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Data; using System.Configuration; namespace CoderBabaSystem.wwwroot {     public partial class Login : System.Web.UI.Page     {         string cs = ConfigurationManager.ConnectionStrings["dbcs"].ConnectionString;         protected void Page_Load(object sender, EventArgs e)         {         }         protected void Button1_Click(object sender, EventArgs e)         {             //Second way as shown below:This is the best way for best and fast performance             if (IsFormValid())             {                 try       ...