Tutorials

This section contains various .NET and Web Development tutorials.

Advanced ASP.NET tutorials

Hierarchical Data Binding in ASP.NET

Writing to Event Log in ASP.NET application

SSL installation on IIS Server tutorials

Creating a Self-Signed SSL Certificate without a mess of makecert.exe (using SSL Diagnostics Tool)


Other small FAQ

Q:how to zip in .NET
A:find library ICSharpCode

Q:System.Net.HttpWebRequest vs WebClient

Q:How to create self-signed ssl certificate?
A:use makecert.exe (part of .NET) Ex:makecert.exe -a SHA1 -ss my -sr LocalMachine -n "CN=ComputerName" -b 01/01/2000 -e 01/01/2050 -eku 1.3.6.1.5.5.7.3.1 -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12
Then install it in IIS

Q:How to implement ssl switching (b/w http & https) in asp.net app?
A:See "Switching Between HTTP and HTTPS Automatically" by "Matt Sollars"

Q:How to create multiple Web Servers in WinXP?
A:cscript c:\Inetpub\Adminscripts\adsutil.vbs COPY W3SVC/1 W3SVC/2
http://www.bobshowto.com/iis_servers.htm

Q: how to copy user's profile?
A: http://support.microsoft.com/default.aspx?scid=kb;EN-US;811151

Q: SELECT permission denied on object 'ASPStateTempApplications', database 'tempdb', owner 'dbo'.
A: http://support.microsoft.com/default.aspx?scid=kb;en-us;810474
http://idunno.org/dotNet/sessionState.aspx

Q: How to debug Client-Side in .NET
A: -In IE Tools\Adv Options clear "Disable script debugging..."
-In VS.NET Tools\Debug Processes attach to the IExplore.exe
-In VS.NET set a breakpoint in the Client Side code
-In IE cause the script to run

Q: When connecting another computer to cable modem, it can't connect to Internet saying "Unable to contact DHCP host"
A:Reboot the cable modem

Q:aspx files don't run, but open "File download" dialog.
A:C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\aspnet_regiis.exe -i

Q: When trying to run asp.net, the server gives: "Server Application Unavailable" error
A:http://support.microsoft.com/default.aspx?scid=kb;en-us;Q315158

Q: Disable Windows Explorer search assitant
A: In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState add String Value "Use Search Asst" with value "no"

Q: How to output an xls file
A: Response.ContentType = "application/vnd.ms-excel" OR "application/excel" and maybe Page.EnableViewState = "false"