jQuery AJAX JSON example in Asp.net to insert data into sql server database without postback Table Schema:- CREATE TABLE BookDetails( [BookId] [int] IDENTITY(1,1) NOT NULL, [BookName] [varchar](100) NULL, [Author] [varchar](100) NULL, [BookTypeId] [int] NULL, [Price] [decimal](18, 2) NULL, CONSTRAINT [PK_BookDetails] PRIMARY KEY CLUSTERED ( [BookId] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = ..
Category : ASP.NET Projects
Complete ASPX Code:- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> <style type="text/css"> .clsTxt { width: 200px; min-height: 25px; max-height: 200px; resize: none; } </style> <script> function resizeTextBox(txt) { txt.style.height = "1px"; txt.style.height = (1 + txt.scrollHeight) + "px"; } </script> </head> <body> <form id="form1" runat="server"> <div> <table> <tr> <td>Description: ..
ASPX Complete Code:- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Reset all fields using jQuery</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript"> function resetAllControls() { $("#form1").find('input:text, input:password, input:file, select, textarea').val(''); $("#form1").find('input:radio, input:checkbox').prop('checked', false).prop('selected', false); }; </script> </head> <body> <form id="form1" runat="server"> <div> <fieldset style="width: 370px"> <legend>Application form</legend> <div> <table cellspacing="2"> <tr> <td>Full Name ..
It's time to update my blog engine which I published some time ago. The updated version is now based on ASP MVC 4 and uses Twitter Bootstrap 3 instead of a custom CSS file. In this post I will give a short overview over the things that were changed. Features/Setup The features of the blog ..
Step 1: Call the page where you code for image merging : Step 2: Add the below code in code behind:- using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; protected void Page_Load(object sender, EventArgs e) { string ThumbnailPath = Server.MapPath(@"images/testimage.jpg"); string watermark =Server.MapPath(@"images/watermark.png"); drawimagewm(ThumbnailPath, watermark, 50, 50); } public void drawimage(string imageurl, string watermark, int startx, int ..
Step 1: Call the page where you code for image merging : Image1.ImageUrl = "dynamicimage.aspx"; Step 2: Dynamic Code for image generation and merging (dynamicimage.aspx/dynamicimage.aspx.cs) using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; protected void Page_Load(object sender, EventArgs e) { string testimage = Server.MapPath(@"images/het_image.jpg"); getimage(testimage, 400, 400); // can set imageurl, max-width and max-height using query string… ..
Step 1: Add the below namesapce at the top of the code behind. using System.Net; using System.Text.RegularExpressions; using System.IO; Step 2: Add the following method which will upload the file. public string UploadFile() { try { string filePath = Server.MapPath(@"FolderNamefile.jpg"); string FtpUrl = "ftp://ftp.domain.com/"; string userName = "ftp_user"; string password = "ftp_password"; string UploadDirectory = ..
In cryptography, SHA-1 (Secure Hash Algorithm 1) is a cryptographic hash function designed by the United States National Security Agency and is a U.S. Federal Information Processing Standard published by the United States NIST.[2] SHA-1 produces a 160-bit (20-byte) hash value known as a message digest. A SHA-1 hash value is typically rendered as a ..
E-Gift Shoppy Project is the advance characteristic which is provided by e-commerce websites to enhance the customers experience in making purchases online and it is also known as ‘shopping cart’ in technical terms of E-commerce World. The business-to-consumer aspect of electronic commerce is the most visible business use of the World Wide Web. The goal ..