Monthly Archives: July 2010

How to define Enum in JavaScript

Everybody familiar with Enum in server side scripting language.  I was wondering if we can define Enum type in JavaScript and I found that we can define type as Enum. Here is the syntax to define Enum. Here is example

Posted in Microsoft Technology Tagged with:

How to: Bind Jagged array or Single dimension array to repeater control

In this article I will show you how you can bind Jagged array or single dimension array to the repeater control. 1) Jagged array Let’s create Jagged array first. Create repeater control on the aspx page. Bind Jagged array to

Posted in Microsoft Technology Tagged with:

Session is null in ASHX handler

I was trying to access session inside ASHX page but I was getting a null reference exception.  I think session should be available on every request but it’s not the case with ASHX handler.  I was wrong there. If you

Posted in Microsoft Technology Tagged with: ,

ModalPopupExtender without TargetControlID

You need to specify Control ID (clicking on this control trigger to open modal popup) to TargetControlID property of ModalPopupExtender control and TargetControlID is required property.  If you don’t set value to TargetControlID property or you set empty value, you

Posted in Microsoft Technology Tagged with:

Difference between “throw” and “throw ex”

Have you ever wonder what’s difference between “throw ex” and “throw’?  I used to do “throw ex” from inside catch block rather than “throw”.  But it’s really need to know the different between those two. Let’s create a sample web

Posted in Microsoft Technology Tagged with:

Ads