-
Writing a truly global application would at times require the developer in displaying the different time zones in plain text format. My previous implementation was to capture the offset in the client and pass this value to a server-side hidden field control which can be read from the server. < script...
-
Input checkboxes can be used for all sorts of selection and deselection activities. They can also become extremely useful when used within a grid for multiple item selection. In this example, checked items (or rather rows) are coloured differently when selected. The colouring happens on the client to...
-
Scripts handlers has worked for me so far because they define in the page processing life cycle those previously obscure phases where (we wished in the past) we could perhaps execute some client-side scripts. These are the PageRequestManager Events . The MSDN documentation defines all the events but...
-
Another common validation task that can be more successful if implemented on the client is the length restriction of inputs. Off the bat, we have this handy property in an order textbox. < asp : TextBox ID ="TextBox1" runat ="server" MaxLength ="256" /> The rendering...
-
Client Callbacks fascinate me because it works differently from the standard postback of the ASP.NET Model. The MSDN documentation for Client Callbacks : In the default model for ASP.NET Web pages, the user interacts with a page and clicks a button or performs some other action that results in a postback...
-
I'm starting to favor the jQuery ui more and over the ajax control toolkit, but that's just me. http://jqueryui.com/themeroller/
-
I am all over web programming techniques that present both practical function and visual appeal. One of team is the AjaxControlToolkit’s slider . In this project, I needed to get user input in the form of percentage ranges that would represent exam profiency. I needed user input that would be in...
-
I've been playing aroung with Jquery for months now but its only recently that I have tested jquery intellisense functionality in Visual Studio 2008 What I have noticed is, Intellisense works perfectly but not until referensing other Jquery Plugins like ui.datepicker.js. the warning message is Warning...
-
I’ve said it before and I’ll say it again. I just love being able to debug javascripts and put breakpoints at runtime with Visual Studio or with the free Visual Web Developer.
-
In my endless pursuit of all things pragmatic and reusable, I admired this really smart feature that the New York Times site has had for a while. If I visit any article like in this example , I can select a block of text then almost instantaneously a pop-up question mark would appear. This image happens...
-
Really simple scenario: Validate if the text input conforms to an email address. There is a simple and straightforward way of achieving this via the asp : RegularExpressionValidator. However, I am the type of programmer who sometimes who wants a more granulated level of control and customization in the...
-
The common model for session handling in web forms during a post back is always to check whether a the page sessions is still in-memory, else some practical redirection to a login page would always occur. I usually did it this way via the code behind: protected void Page_Load( object sender, EventArgs...
-
I started JavaScript with the assumption that the string object already has a built-in function to trim preceding and proceeding spaces. Unlike C#/vb.net or T-SQL, the JavaScript string object doesn’t have this function. It’s just one of those subtle things that when religiously applied can...
-
This is the first part (and very first blog post which I had repeatedly procastinated over the years) of my javascript posts. Alright, i admit it, JavaScript is my friend! I enjoy exploiting the hell out of javascript to bring out it's practical usage in web forms' input validation. One of the...
-
The ability to split up a string into separate chunks has been supported in many programming languages and it is available in Javascript as well. If you had a long string like "Bobby Susan Tracy Jack Phil Yannis" and wanted to store each name separately, you could specify the space character...