Quantcast
Channel: smart developer's blog
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

How 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 Article

Image may be NSFW.
Clik here to view.

Visual 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 Article

Image may be NSFW.
Clik here to view.

Generate 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 Article

Image may be NSFW.
Clik here to view.

Crop 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 Article


Image may be NSFW.
Clik here to view.

XPath 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 Article

Image may be NSFW.
Clik here to view.

Linq 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 Article

Image may be NSFW.
Clik here to view.

Improve 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 Article


Image may be NSFW.
Clik here to view.

SQL 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 Article


Image may be NSFW.
Clik here to view.

Google 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
Browsing latest articles
Browse All 10 View Live




Latest Images