How to make a CheckBox fire the ItemCommand Event of a Repeater
Today I needed to add a check box control to a repeater’s item template and have it fire the ItemCommand event on the repeater. I could’t do that, because this control (Checkbox) does not trigger this...
View ArticleHow to generate a vCard file
Ever needed to dinamically generate a vCard file? The syntax is very simple. Just generate a .vcf text file and open it! You can find many link resources here. Also, you can find a nice generator here:...
View ArticleVisual Studio .NET 2005 Keyboard Shortcuts
No comments on this. Just use them: Class Diagram Num + ClassDiagram Expand Shift + Alt + B Edit ExpandCollapseBaseTypeList Ctrl + Del Edit Delete Del Edit RemovefromDiagram Enter View ViewCode Shift +...
View ArticleGenerate image thumbnails using ASP.NET(C#)
You can use the GetThumbnailImage built-in method to generate a thumbnail using this method I created: If the Image contains an embedded thumbnail image (all digital cameras attach a thumbnail to the...
View ArticleCrop image in ASP.Net (C#)
You can use the custom method below: If you combine this with the thumbnail auto-generation you can get a nice method that can generate a cropped thumbnail. Posted in .Net Tagged: croping, image...
View ArticleXPath vs Linq to XML
Considering you have an xml file: Basically there are two ways of querying XML files form C#: 1. The first one would be to use a XPath expresion. There are a few methods in System.Xml.XPath namespace...
View ArticleLinq in DataSet
I recently had to filter and order some datasets. I used Linq and I found it to be very nice. Here are a few examples: 1. If you have a dataset with a table containing products and you want to search...
View ArticleImprove WebClient by adding UserAgent and Cookies to your requests
Suppose you need to make a lot of web requests and you need to set/change your user agent or to add cookies. You cannot do this by using the default WebClient in ASP.net but you can do it by extending...
View ArticleSQL queries running slow from web
If you have a MSSQL query (stored procedure) that runs OK (fast) in the Query Analyzer or Management Studio but extremely slow when you run them from a web page, then the solution is one of the...
View ArticleGoogle Chrome Extension: Google Weather
I have just developed a nice Google Weather extension. You can find it here: Google Chrome Extensions: Google Weather. I hope you will enjoy it! I will make available soon the source code. Just stay...
View Article
More Pages to Explore .....