• URL Mapping In ASP.Net 2.0

    URL Mapping :           URL Mapping is a new feature introduced in ASP.NET 2.0. you can change your URL more understanding purpose Example you can generally write http://localhost/UrlMapping/Detail.aspx?Id=1 In this URL we passing a query string value when any user see this url it like some improper. you can improve this using the URL Mapping http://localhost/UrlMapping/one.aspx…


  • How To Generate Captcha Image In Asp.net 2.0

    why Captcha Image Required ?           Restrict User to Auto Registration or Login in the site. General Senario for that if you have a company who create new login or registration for the users. in this situation you never be going registration or login one by one. you create simple file in that file you put that…


  • Upload CSV File And Read Using ASP.net

    steps : 1) Create Simple Web Application Using (ASP.Net with C#). 2) Create Class CSVReader (CSVReader.cs) 1: using System; 2: using System.Data; 3: using System.Configuration; 4: using System.Web; 5: using System.Web.Security; 6: using System.Web.UI; 7: using System.Web.UI.WebControls; 8: using System.Web.UI.WebControls.WebParts; 9: using System.Web.UI.HtmlControls; 10: using System.IO; 11: using System.Text; 12: using System.Collections; 13: 14: public…


  • Asp.Net run on Apache Server

    why the asp.net application run on apache server? i have created the application in php before the 6 month. now a days little bit modification on that one and client want to change the plateform means that they create whole site in asp.net rather then the php. now i suggest him to we have create…


  • Create Web Service In Asp.Net 2.0

    1) Why WebService ? when you used any webservice at that time do not worry about platform or programming language used to implement the web service.          example :          i have create one store application (windows application for counter and online application for management from the warehouse). here i create web service which connecting two application.…


  • GridView Data Print In Asp.net 2.0

    here is the steps: 1) create simple web application (here i used asp.net with C#). 2) put following control in to Page. 1) Gridview (id = GridView1) 2) html button (id =Button1) <inputid=”Button1″type=”button”value=”Print”language=”javascript”onclick=”return Button1_onclick()” /> <asp:GridViewID=”GridView1″runat=”server”> </asp:GridView> 3)  fill data into GridView //here i used the list you  can bind with database also System.Collections.Generic.List<string> obj =…


  • Export GridView Data into CSVFile In Asp.net 2.0

    Steps. 1) Create Simple Web Application ( asp.net using C#). 2) put the below control in to the page (.aspx) 2.1) GridView (id= GridView1) 2.2) Button (id=button1 and Text =Create CSV File) or put the below code   <form id=”form1″ runat=”server”> <center> <div> <table> <tr> <td> Create CSV File </td> </tr> <tr> <td> <asp:GridView ID=”GridView1″…


  • Create Zip File Using Dotnet

    in the dotnet framework there are two method for compressing data 1) GZip 2)Deflate here i am using GZip Stream (System.IO.Compression). Steps 1) Create Simple Web Application (asp.net with C#). 2) put below control in to page. 2.1) Button (id=”btnCompress”) 3) put below code in to click event of button. //create one folder in the…


  • Read Excel using Dotnet application

    steps: 1) create simple dotnet application(here i am used C#.net) 2) put the below code //add namespace using System.Data.OleDb; //read Excel File string FilePath =”c:\test.xls”; OleDbConnection con = new OleDbConnection(@”Provider=Microsoft.Jet.OLEDB.4.0;Data Source=”+ FilePath +”;Extended Properties=Excel 8.0″); OleDbDataAdapter da = new OleDbDataAdapter(“select * from [sheet1$]”, con); DataTable dt = new DataTable(); //get data in datatable da.Fill(dt); Thnx


  • Disabled Right Click On Web Site

    steps : 1) create simple application (html). 2) put the below javascript in to the code. <script language=”JavaScript”> // on right click appear this message var DisplayMsg=”Right Click Disabled”; //return message function clickBYIE() { if(document.all) { alert(DisplayMsg); return false; } } //return message function clickBYNS(e) { if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) { alert(DisplayMsg); return false;…