.NETMarch 5, 2006 11:44 pm

There are 4 ways to handle error redirection
1) User < @%Page ErrorPage =”errPage.aspx” %>
2)Use PageError event handler to trap the errors on page. This overrides ApplicationError as well as web.config customErrors settings.
3) Use Application_Error event in Global.asax to handle application level errors
4) Use < customerrors > tag in web.config to handle the application error in a declarative way.

Server.GetLastError gives the details of last error and Server.ClearError clears the error and prevents the errors from continuing to Application_Error event.

Read More Articles
.NETFebruary 3, 2006 2:49 pm

Pune user group and INETA(International .NET Association) celebrates community launch of SQL Server 2005, Visual Studio 2005 and BizTalk Server 2006.
Date: 4th February
For more details visit:
Worldwide launch
Pune user group

Read More Articles
.NET, COM+October 13, 2005 9:53 pm

I have Word 2000, Word 2003 and Word 97 installed on my machine. At a time ,only one exe will be active as per the behaviour. i.e . When I click on the Word 2003 exe (Winword.exe) all icons changes to Word 2003. When I click on Word 2000,all icons changes to Word 2000 and so is with Word 97. Since the compare method of Word 2000 object model accepts only one parameter i.e filename , I am using the same with Word 2003 also. When I tried to compare documents edited with word 2000 using Word 2003 object model, it is not showing track changes on. When I use Word 2000 Compare method, it is working perfectly.

However, when I use Compare method with additional parameter as CompareTarget: =1 (in Word 2003), it is working fine.

Why the Compare method with single parameter as FileName is not working in word 2003 ?

One more problem: I have written code to clean the Word Application as well as Word Document object in the ‘finally’ expression,but Task manager is showing an instance of WINWORD.EXE running under the account of ASPNET user..Can anybody explain the behaviour !!!

Read More Articles
.NET 6:43 pm

Use the Page.Request.Params(”__EVENTTARGET”) to get the name of control who caused postback.
However, this does not return the name of control,if the postback is caused by button/ image button.
You can get the button control by looping through all the controls from Page.Request.Forms and comparing with Button Webcontrol.

Dim controlName as string
controlName = Page.Request.Params(”__EVENTTARGET”)
Dim control as Control
If controlName <> Nothing And controlName <> String.Empty
control =Page.FindControl(controlName)
End If

Read More Articles
.NETOctober 6, 2005 6:07 am

Visit Microsoft Patterns and PractisesSummit 2005-2006 for more details.

Read More Articles
.NETOctober 5, 2005 12:45 pm

Following is a nice link wherein you can find all shortcuts related to VS .NET 2003 http://www.codinghorror.com/blog/files/visual%20studio%20net%202003%20keyboard%20shortcuts.html

This is a very nice article which demonstrate how to generate these using program.

Read More Articles
.NETAugust 31, 2005 3:28 pm

Event
Event Source
Event Receiver
Delegate- Like Function pointer in C - holds references to multiple event handlers methods

Required things:
1. EventNameEventArgs Class
2.EventNameHandler -Delegate
3.Class to raise the event -
a) Delcare Event type of variable
b) Method onEventName to raise the event- Must be protected +overridable so that dereived classes can
override - call base class’s method from derived class onEventName so that it delegate/eventhandler
receives the event

MSDN Reference: Events and Delegates

Read More Articles
.NET 3:17 pm

- groktalk -MS RD talk abt Technology

TechEd 2005 boggers

Read More Articles
.NETAugust 27, 2005 11:26 am

.NET Framework Versions
1) .NET FrameWork 1.0
2).NET FrameWork 1.1

ASP.NET Versions
1.ASP.NET 1.1
2.ASP.NET 2.0

Visual Studio .NET

  1. Visual Studio .NET 2001
    2.Visual Studio .NET 2003
  2. Visual Studio .NET 2005
Read More Articles
.NET 11:23 am

In the KeyPresss Event-

e.KeyCode - Gives which charecter is pressed AscW(e.KeyCode) gives the Ascii value of Key Pressed

e.Handled =True means the KeyPress event is handled

Read More Articles