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...
View ArticleModalPopupExtender 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...
View ArticleSession 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...
View ArticleHow 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...
View ArticleHow 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....
View ArticleResponse.Redirect() throws an error when called inside Update Panel
When I tried to call Response.Redirect() inside a UpdatePanel, it was throwing me an AJAX error. Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be...
View Articlewhy does Modalpopup close on postback?
ads: Watch Indian TV Serials Online I thought modalpopup control is very easy to use but it’s not. It took me whole day to figure it out why ModalPopup Extender closes down during page postback. You...
View ArticleASP.NET color converter tool
Wants to convert HEX to RGB or RGB to HEX in C# ASP.NET application? I have created Color Converter ASP.NET application. You can convert HEX color code values to RGB Color. It’s free tool. I have...
View ArticleJoin Video files(mpg, flv) using DOS command
I have downloaded couples flv files and I wanted to join those files so that I can watch video file by just opening one video file. I was looking for freeware software I can use to join mpg or...
View ArticleFile upload control fails first time, then works on subsequent submits
As everybody knows that FileUpload control doesn’t work inside update panel, there are some work around and in fact I have posted post about that as well. Here is my post link just in case you got...
View ArticleHowto: Set page focus to message after Ajax update
There are so many good things about AJAX but we need to tweak it some times to make it even user experience. Let me explain my situation first. I have a datagrid that has a edit button tied to...
View ArticleCan’t drag and drop Song/Video file in iTunes
Usually I just drag and drop music(mp3) files into itune when want to add music file into my iPhone 4. But suddenly I can not drag and drop songs in iTunes after updating iTune software to version...
View ArticleASP.NET Custom Validator Validation not firing
I have been using ASP.NET CustomValidator when I want to validate field based on values of other fields. For example, User must provide other contact info if selected. For this let says we have other...
View ArticleHowto: Fire an ASP.NET Validator from JavaScript
Let’s take an example of my previous post and make it little bit user friendly. Here is the demo page link to see in live action. In the example(#1. Without ValidatorEnable), Custom validator fires...
View ArticleHowto: Pass own argument as a custom attribute to a specified control from...
I learn something new today that I want to share with you. How can you pass your own argument to any JavaScript Element object from code behind that you can access it like property of that object from...
View ArticleSilverlight 4 DataGrid Example with Add Edit Delete using Linq WCF
In my previous article , I have explain in details how you can bind data, update and delete record in silverlight data grid. But it has missing feature to add a new record. I took some time to update...
View ArticleGetting Started with Silverlight PivotViewer control
Microsft LiveLabs team released very useful Silverlight “PivotViewer” control that enables you to visualize data information in a DeepZoom type experience. In this article, I will walk you through the...
View Articlehow to handle control’s event inside of nested repeater
In this article I will show you how can you handle control’s event that is inside of nested repeater control and pass informative message from user control to main page(f.e success/failure message). I...
View ArticleHow to find child control’s position in a parent repeater
If you have repeater inside a repeater, in some situation you may need to find position of control( that’s inside child repeater) in parent repeater. Let’s take an example. Here is what I have. As...
View ArticleForms authentication doesn’t work in IE
I have found interesting thing about IE that I would like to share with you. I was using forms authentication for login page. After successful login, ASP.NET creates an authenticated cookie and sends...
View Article