Category dotnet

URL rewriting in

what is URL rewriting ? URL rewriting is the process of intercepting an incoming Web request and redirecting the request to a different resource. When performing URL rewriting, typically the URL being requested is checked and, based on its value, the request is redirected to a different URL.  why URL rewriting? 1) Make User […]

PDF Viewer in

Here I am explaining how to create PDF Viewer in Steps: 1) create Class Library Project Here I am give name OnlinePdfViewer. Here I am using Write below code in to file. using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace OnlinePdfViewer { public class DisplayPdf : […]

Convert Generic List In To DataTable

Create simple application with C#. Add new class (GenericToDataTable). using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; public class GenericToDataTable { /// <summary> /// Default Constructor /// </summary> private GenericToDataTable() { } /// <summary> /// /// </summary> /// […]

find not working in visual studio

Find option is not working in the visual studio environment. solved this issue follow the below steps. steps : 1) open the visual studio in safe mode using command devenv/safemode go to command prompt and type your visual studio path. in my pc is ” C:\Program Files\Microsoft Visual Studio 8\Common7\IDE ” run above code and […]

Encrypt Sections Of Web.Config File in ASP.NET 2.0

1) why the need of Encryption in Web.Config File? We know that Web.Config file hold sensitive information like (Database server name , user name,password ect). In any database related application the database is more important.  if you do not protect database related information from malicious user or hacker sometime it create a danger situation for […]

Transfer Session Variable From ASP To ASP.Net 2.0

you can transfer you asp session to session. here i give small demo for that. steps: 1) create asp page (mypage.asp) 1: 2: <%@LANGUAGE=”Vbscript” CODEPAGE=”1252″%> 3: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “”&gt; 4: <html xmlns=””&gt; 5: <head> 6: <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ /> 7: <title>Untitled Document</title> 8: </head> 9: <form name=’form1′ action=’login.asp’ […]

Embedding Resources in ASP.Net 2.0

embed resources let’s start with the very basic if i tell you create the customize control (inherit the Textbox and create new Textbox MyTextBox) . in other word you  can create customize textbox with three condition 1) Upper Case : when user selected Upper Case all enter input converted into Upper Character. 2) Lower Case : when user selected […]

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 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 […]