How To: Clean Up ASP.NET JavaScript Tags

by ira 4. May 2009 19:13
In April of '08, I wrote a post about cleaning up the ASP.NET head tag using control adapters. I've got some great feedback from it, and I'm glad that I'm not the only one that is horrified when looking at the source of an ASP.NET rendered web page. From the comments of that article I was recently asked how to clean up JavaScript tags. With the code from the project download of the article as-is, when I just slap some script tags in the head tag I get something that looks like this rendered: However, so... [More]

Tags: , , , , ,

ASP.NET | ASP.NET | C# | JavaScript | C# | JavaScript

Creating ASP.NET Ajax Aware Server Controls

by Ira 13. March 2008 18:37
Lately, I have been having to deal with finding ASP.NET Ajax when creating server controls. It is actually quite simple to do, and I think that if you are going to be coding server controls for ASP.NET you should definitely know how to do it. So in this post, we will go through embedding a javascript file into your assembly and then registering it to the page. Then I will show you how to find out if ASP.NET Ajax is loaded during the script registration and also how to find out if ASP.NET Ajax is loaded in... [More]

Tags: , , , ,

ASP.NET | C# | JavaScript | Server Controls | Ajax

Site Wide User Notification Server Control

by Ira 9. March 2008 17:09
Some of you may have read my previous post Creating a Simple Site Wide User Notification Pattern. Upon a revision round of thinking, I thought it may be better to actually have a server control. This would offer some significant advantages, the biggest one being that we could drop the BaseMasterPage. Having the control be a strongly typed server control, we could find it on the page by it's type. We would also only have one place to go to maintain the code, rather than digging through a user controls ... [More]

Tags: , , , , ,

ASP.NET | C# | JavaScript | Server Controls

Creating Namespaces Within Your JavaScript

by Ira 5. March 2008 18:52
Have you ever worked on a project that had a ton of Javascript in it? Not only that, but let me add that the project also made no good use of a Javascript framework. A lot of times when working in a project rich in Javascript, I find functions just defined all over the place without any rhyme or reason. Sometimes it is hard to judge if you are re-defining a function or not. This can get quite hairy, especially without the use of a tool that supports Javascript intellisense such as Visual Studio 2008. If y... [More]

Tags:

JavaScript

Creating a Simple Site Wide User Notification Pattern

by Ira 27. February 2008 18:17
When creating websites, it seems that one problem I always run into is how to gracefully notify the user of errors or display messages to them. In most of my sites I use master pages, so I thought it would be pretty sweet to integrate a messaging pattern into my master pages. I also wanted a quick access method to the notification system from any point in the code-behind of the website that was short and simple to call. The messaging pattern should also ajax aware, and notifications should work in both a ... [More]

Tags: , , , , ,

ASP.NET | C# | JavaScript | User Controls

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About Me

IraIra
I'm just another developer from Florida.

 

Sponsors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

All code samples on this website are free for download, use, and modification with no warranty nor any implied warranty. Liscensed by:

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 United States License.