Posts

Showing posts from November, 2018

Forms

Registration Form  ---------------- ASPX Code ---------------- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Form.aspx.cs" Inherits="Form" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title>Form</title>     <meta charset="utf-8"/>   <meta name="viewport" content="width=device-width, initial-scale=1"/>   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"/>   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>   <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></s...

Registration form with validation

Registration form with validation --------------------- Aspx Designing --------------------- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Details.aspx.cs" Inherits="Details" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>       <link rel="Stylesheet" type="text/css" href="StyleSheet.css" />    <script src="jquery-3.3.1.min.js" type="text/javascript"></script>    <script type="text/javascript">           /*code: 48-57 Numbers        8  - Backspace,        35 - home key, 36 - End key        37-40: Arrow keys, 46 - Delete key*/        function restrictAlphabets(e...

Displaying Multiple Database in web using Gridview AJAX

Displaying Multiple Database in web using Gridview  -------------------- Aspx Designing -------------------- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataBase.aspx.cs" Inherits="AJAX.DataBase" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>       <link href="css/bootstrap.css" rel="stylesheet" type="text/css" /> </head> <body>     <form id="form1" runat="server">     <asp:ScriptManager ID="ScriptManager1" runat="server">     </asp:ScriptManager>        <asp:UpdatePanel ID="UpdatePanel1" runat="server">      ...

Gridview to Excel File (Download)

          Gridview to Excel  Downlaod ASPX.CS Library files 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; using System.IO; ----------- CS code ----------- protected void ImageButton1_Click(object sender, ImageClickEventArgs e)         {             Response.ClearContent();             Response.AppendHeader("content-disposition", "attachment; filename=Filename.xls");             Response.ContentType = "application/excel";             StringWriter stringwriter = new StringWriter();             HtmlTextWriter htmlTextwriter = new HtmlTextWriter(stringwriter); ...

Registration Form with Bootstrap

How to Create Registration Form with DotNet and Bootstrap ASPX Code <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">   <title>Form</title>   <meta charset="utf-8"/>   <meta name="viewport" content="width=device-width, initial-scale=1"/>   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"/>   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>   <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script...