Yanesh Tyagi on ASP.Net
Technical blog of Yanesh Tyagi
-
K-MUG Presentation on Visual Studio Productivity Tips
Today I delivered a presentation on the Visual Studio Productivity Tips on the K-MUG meeting. The points that I discussed in the presentation was:
-
Dealing with multiple instance of Excel (or any other COM object)
-
Implementing Delete Confirmation Dialog in List View (ASP.Net) – Part 2
In my previous blog post I described how to implementing delete confirmation dialog in ListView Control of ASP.Net. In one comment Dan Gilleland asked how to get the localized message text from resource file. In this post I am providing solution to Dan’s query.
-
.NET Framework FX 4 Beta 1 – What’s New
Today, Microsoft launched Visual Studio 2010 and .Net FX 4 Beta 1. This is available to the MSDN subscribers only. Don’t loose heart. It will be available to everybody on Wednesday.
-
Code Snippet for Automatically Implemented Property
Code snippets allows programmers to extend auto-complete feature of Visual Studio. Code snippets enables a programmer to create an auto-complete that will appear in the intellisense. It also allows a programmer to define the logic of auto complete.
-
Mystery of Not Operator in VB.Net
(Not 2) = -3.
-
Implementing Sorting in Generic List (List<T>)
How to sort a generic list? Well, generic list provides a sort method itself in the form List<T>.Sort(). But wait a sec. This method requires you to implement sorting mechanism in your type. This is because this method uses default sorting mechanism. This is really simple, but what if you don't have sorting mechanism in your type? In that case this method throws InvalidOperationExpression.
-
Implementing Delete Confirmation Dialog in ListView Control (ASP.Net)
Listview control is one of my favorite controls added in asp.net version 3.5. It provides easy way to implement view (list), update, insert and delete functionality. Using SQL Data Source or LINQ Data Source control, you can create a page that will display data from database in your desired format. It will also allow you to edit, insert or delete a record from the listview itself. And the good part is that you don't need to write any code. This may be disappointing to a hard core programmer like me. But again this saves lot of development time.
-
Converting Text into Image On-The-Fly
Sometimes we need to convert text into the images on the fly. This code converts the text into image and displays it onto the web page without saving it into a file on the disk. It also takes care of text wrapping.
-
Ajax Control Toolkit - Controls Disabled in Tool Box
Having my PC broken, I had to work on another machine. I downloaded Visual Web Express and Ajax Control Toolkit. I installed the toolkit as described by Nannette. But nothing appeared on my toolbox. Thinking that I might have missed something, I tried to repeat the process. When I was giving the name during the tab creation step, VWD responded by saying that