Development With A Dot

Blog on development in general, and specifically on .NET

Sponsors

News

My Friends

My Links

Permanent Posts

Portuguese Communities

Browse by Tags

All Tags » Controls (RSS)
Extended ASP.NET Button Control
I once had the need to have a button control that would change its look depending on a theme, for example, it would render either as regular button, an image or a link. Of course, the only way I had to achieve this was by manually swapping the Button...
My All Time Favorite Posts
Since this blog started, back in 2008, I wrote a lot of posts. I’d say some are still up to date. I picked a few of them, those I’m more proud of, in no particular order. ASP.NET Web Forms: Using the ASP.NET Health Monitoring Provider to Secure Your Application...
ASP.NET DropDownList With Groups
A long time ago I submitted a request to the ASP.NET team for having the standard DropDownList support HTML’s optgroup tag: http://aspnet.codeplex.com/workitem/10318 . For those of you not familiar with this tag – that has been around for quite some time...
ASP.NET Image Control With Fallback URL
What happens when the URL that your image is pointing to does not exist or cannot be reached? Well, all browsers I know of resort to displaying something like: Sometimes, however, we may be able to anticipate that a given image won’t be accessible and...
Wrapping ASP.NET Client Callbacks
Client Callbacks are probably the less known (and I dare say, less loved) of all the AJAX options in ASP.NET, which also include the UpdatePanel , Page Methods and Web Services . The reason for that, I believe, is it’s relative complexity: Get a reference...
General Purpose ASP.NET Data Source Control
OK, you already know about the ObjectDataSource control, so what’s wrong with it? Well, for once, it doesn’t pass any context to the SelectMethod , you only get the parameters supplied on the SelectParameters plus the desired ordering, starting page and...
Creating a Control From its Markup Representation
No words, just code! 1: public static T CreateControlFromMarkup<T>(String markup) where T: Control 2: { 3: StringBuilder builder = new StringBuilder(); 4: TemplateControl page = HttpContext.Current.Handler as TemplateControl; 5: Int32 start = markup...
Changing a Control’s Output Dynamically
A question that pops up occasionally in ASP.NET forums or sites like Stack Overflow is how to change a control’s output dynamically. Well, since the CSS Friendly Control Adapters came out, I knew how to do it statically, through static registration on...
Remove View State from UpdatePanel Call
You may not be aware that view state (and control state) is included on each UpdatePanel call, even if the controls placed inside it have it disabled. As view state can get quite large, it may be useful to disable posting it during UpdatePanel calls,...
Inline Image in ASP.NET
Update February 2nd 2013: you can use tag mapping to have all your controls render inline images. Inline images is a technique that, instead of referring to an external URL, includes all of the image’s content in the HTML itself, in the form of a Base64...
More Posts