ASP.NET

Also checkout my blogs on: PMP | C# | SQL | Personal

 
  Friday, July 28, 2006

ASP.NET page events

The page events fire in the following sequesnce Init, Load, PreReneder,Unload

void Page_Init(Object o,EventArgs e)
void Page_Load(Object o,EventArgs e)
void Page_PreRender(Object o,EventArgs e)
void Page_Unload (Object sender , EventArgs e)

Sunday, July 02, 2006

How to use COM objects if not using Visual Studio.NET

If you are not using the Visual Studio .NET IDE; use Windows Forms ActiveX Control Importer (Aximp.exe) to convert type definitions in a COM type library for an ActiveX control into a Windows Forms control.
For instance: to generate the interop DLL's for the ActiveX browser component using the command line run aximp ..\system32\shdocvw.dll relative to your system32 path. Compilation of a form that uses the AxSHDocVw.AxWebBrowser class would be as follows: csc /r:SHDocVw.dll,AxSHDocVw.dll YourForm.cs.

Credits:Alexander Kent