A look at Master Pages in ASP.NET 2.0
A very useful article
I was busy developing the infrastructure of my project's website -- A portal that provides administrative functions to the system. I was looking at new features in ASP.NET 2.0 -- Master Pages. This is not the first time I touch on ASP.NET 2.0. However, prior to this, I've had some experiences in not able to fully utilise the potential and functionalities of the Master Page feature. This time around, I decided to study this topic thoroughly. I read through a few websites and their articles, and basically none of them helped solve my problems. Just when I was about to resort to the traditional "Trial and error" approach and attempt to solve the problems on my own, I came across this article: ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps by Scott
This is by far the best article I can find addressing several misleading concepts (I'm the one being misled, not the controls) that programmers would have. It is in-depth, very technical, yet not as dry as other technical-based articles.
Kudos to Scott for completing such a comprehensive article, you can also see his introductory overview of Master Pages here, it is also a great article to start with.
veetian - 6/25/2007 1:12:42 AM
Permalink
0 Comment(s)
Google Maps
See it to believe it
Google Maps, as explained by Jeff Atwood on this post, has declared desktop applications "dead". I couldn't agree more, especially when I finally begin using it to browse maps of Singapore. It is not yet as impressive as StreetDirectory, but its sleek design and ease of use, compared with StreetDirectory's heavily ad-based layout design, has won my heart. You will not relate Google Maps as a web application -- it has (almost) gathered all the strengths of conventnional desktop applications (fast, rich user controls), yet maintaining the strengths of using web applications (non-deploying, no need to update, fast, simple). Although it has caused some controversy, Google StreetView has astonished me (yet again) by combining real time web-cam views of street sightings with its map. You can now view your destination's street image!  The concept is simple (through the web, post an image and allow users to tilt/pan it) -- You fetch an image from a street, link it up with a location on the map, and user can view it upon selection. It takes something special (and simple) to cause such a big hoo-haa around the world. Now, when is Google Maps coming to Singapore? (The full version of course) :)
veetian - 6/11/2007 2:07:37 AM
Permalink
0 Comment(s)
.Net 2.0 Nullable Type
From heaven to hell
In .Net, value-typed variables are not allowed to have null values, but chances are you would need to assign null values to such variables in your code, although it is not sensible to do so (why on earth would you want an integer to be null in the first place? It would have corrupted your program at some point of execution). One example where we need nullable type is when we use strongly-typed DataSets. When we associate a stored procedure (or a Sql command text) to the TableAdapter that comes with the DataSet, the input parameter may somehow need to be null. The workaround we had last time (in .Net 1.1 or earlier) was to set such input parameter to either empty string or -1. Now, in .Net 2.0, the nullable type has been introduced and all value-typed objects can be assigned to a nullable type by simply: Nullable<int> iSomeValue = null;or ?int iSomeValue = null;This worked perfectly fine, till Remoting kicks in. Nullable types are not supported in the SOAP serializer, and thus could not be passed as a parameter through the Remoting interface! Well, looks like we can only use nullable types within the data access layer, and continue to use value types across the Remoting interface. Here is the confirmation where nullable types are not SOAP serializer-supported: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=147645&SiteID=1
veetian - 6/5/2007 6:24:52 PM
Permalink
0 Comment(s)
BF Blog
The ASP.NET 2.0 Approach
BFBlog (Where BF actually stands for Bizzarrie Fantast, which is my website) is a ASP.NET 2.0-driven blog application written in C# 2.0. The first version consists of the following features: - Integrated ASP.NET membership provider, you may configure the blog application to take in your own website's membership provider for user authentication.
- Full HTML editor courtesy of FreeTextBox. This version being used is a trial version, in which may have several constraints. You may opt to purchase a full copy from FTB.
- Blog comments comes with 3 modes:
- Anonymous -- Anybody is able to post a comment.
- Disabled -- Comments are not allowed.
- Captcha -- Anti-spam mechanism applies (where a comment poster will need to enter the correct letters as displayed by the system). Courtesy of Jeff Atwood (from Coding Horror, which is one of my favourite blog!), the source code for the Captcha Web Control (which is written in ASP.NET 2.0 using VB.NET) can be downloaded here.
- Post editing.
- Post tagging.
Subsequent versions will cater for the following: - Integrated ASP.NET membership provider for blog viewing, i.e. Personal Blogs.
- Comments moderation.
- Additional comment mode "Membership", where only registered members can post comments.
- RSS Feed.
You can download the precompiled version here. You can reach me at veetian@gmail.com.
veetian - 5/30/2007 8:33:56 PM
Permalink
0 Comment(s)
|
|