.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
GeneralAugust 27, 2005 11:29 am

visit http://sggspals.org for more information.

Read More Articles
.NET 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
.NET 11:20 am
  1. check before accesing usercontrol in containing Page for its existence as it may not be instantiated again -becoz it is cached
  2. Access Page Events from usercontrol itself (like Page_Load) 3.StaticPartialCachingControl object is added by Page Parser if the user control included in Page decalratively 4.PartialCachingControl object is added by Page Parser if the user control included in Page Programmatically using LoadControl

Cache is application Level object. Every key in cache is unique.

If you add item in Cache using -Cache.Add and if the item exists already in cache -exception generated If you add item in Cache using -Cache.Insert and if the item exists already in cache -it will be replaced.

Read More Articles
.NET 11:12 am
  1. If Page Cache duration exceeds the UserControl Cached duration, UserControl will not be refreshed untill page expires.

  2. If UserControl Cache expiration is greater than Page - It will remain till cached output expires. Reference:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconCachingPortionsOfASPNETPage.asp

  3. Page can be partially cached by making some of the controls on page into UserControl and setting the @OutPutCache Directive for userControl
Read More Articles
General 11:06 am

@OutPutCache Directive

Applicable in : Page /UserControl

Syntax:

@OutPutCache

  1. Duration – No Of Seconds
  2. Location – It can be Server,Client,Any, DownStream (Proxy Server Or Client),None
  3. VaryByControl- comma separated string of Control ID’s
  4. VaryByCustom- comma separated Custom string – Explained in following para..
  5. VaryByParam- comma separated string – Querystring variables
  6. VaryByHeader- Comma separated string of HTTP headers, whose change changes the output cache
  7. Shared – True if Cached output shared across Pages (Only for UserControl)

For VaryByCustom – Override the method GerVaryByCustomString in Global.asax

This method gives the httpContext with the help of which you can get –Application level objects like Cache, Application and Session for the context . Arg gives the VaryByCustom string – you can return the value appropriately .

Ex.

If arg= “UserID” Return Session(“UserID”)

Read More Articles
.NETAugust 14, 2005 1:43 pm
  1. MumbaiUserGrouponMSN

  2. http://www.geocities.com/dotnetinterviews/

Read More Articles
.NET 1:09 pm

Remove the following from assembly section of Web.config file for your web application :

< add assembly=”*” > < /add >

By default ,this includes all dlls form bin folder of your application

Read More Articles