Entries Tagged with ‘ASP.NET’
A very basic method of creating Cookie in ASP.NET with using HttpCookie. You can read briefly about Cookies at http://msdn.microsoft.com/en-us/library/aa289495(v=vs.71).aspx. I am creating a HTML Page with 3 Buttons to read, write and remove cookie. HTML Page < %@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="read_write_httpcookie_Default" %> < !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"> [...]
(Continue reading…)Delete all files method is being used when you store uploaded temporary files in specific folder and want to remove all now. Here I am showing very easy and little method which will definitely help you out. Delete All Files Method – C# public void DeleteAllTempFiles() { foreach (var f in System.IO.Directory.GetFiles(Server.MapPath("~/temp"))) System.IO.File.Delete(f); } Delete [...]
(Continue reading…)Here is another version of SEO Friendly URL creation, I had posted already when I used to work in ASP Classic. Lets review short and simple method to create SEO Friendly URL in ASP.NET. C# Method/Function public string createSEOTitle(string m_strText) { //m_strURL = m_strURL.Replace("&", "and"); m_strText = Regex.Replace(m_strText, @"[^\w]", "-"); do { m_strText = m_strText.Replace("–", [...]
(Continue reading…)As we know the various websites like Facebook, LinkedIn, Google etc., are using Image Cropping tool when we add a new picture. I found many ways to do this work but recently I got Jcrop for image cropping. Jcrop is the quick and easy way to add image cropping functionality to your web application with [...]
(Continue reading…)As we know lots of basic things about the database and tables. Each row in the table is identified by an ID. This is the primary key for the table, so it must be unique for each row. You must obtain a new row with unique ID from the database. Here is the following helper [...]
(Continue reading…)Get the last identity value inserted into an @NEWID variable in the same scope by Data Access Layer (DAL) Class.
(Continue reading…)How to: create INSERT, UPDATE and DELETE method in the Data Access Layer Class.
(Continue reading…)ASP.NET Data Access Model for designing Data Access Layer. Basic Step for creating DAL (SELECT Method).
(Continue reading…)





