It's becoming more and more popular for sites to tell you where you are. And, aside from being a neat thing to do, it is very useful in honing in onto what your users will find relevant even before the page is loaded. One method of retrieving the browser's location is through using GeoMapLookUp.Net, however, there are many services out there. Drop down for … Continue reading the story "Get Client’s Physical Location from IP Address via GeoMapLookUp.Net"
Get Browser’s IP Address Using ServerVariables
Knowing the client's IP Address is a major benefit for web applications especially when the application has users whom post information and content into the site. Tracking user activity or honing in on the source of harmful activity is the start to improving our services and solving issues. Further, we might also want to map a client's IP address to a specific member account, honing … Continue reading the story "Get Browser’s IP Address Using ServerVariables"
Counting Characters Realtime in ASP TextBox Using JavaScript
Many times we'll have a limit on the number of characters we want a user to input into our text fields. Instead of keeping them guessing or making them count how many characters they've already entered, we might want to show them the character count in realtime as they type in their content. We'll need a JavaScript function, an ASP TextBox and a span or … Continue reading the story "Counting Characters Realtime in ASP TextBox Using JavaScript"
Gray Out UpdatePanel Content During Async Postback
Using UpdatePanel in ASP, which simulates AJAX functionality on the front-end when the code is compiled, could prove to be slow. And so, you might want to use a loading cover screen over the UpdatePanel so that the user does not get frustrated with guessing whether their clicks did anything to the page. All you need is some html, simple javascript and the UpdatePanel. Here's … Continue reading the story "Gray Out UpdatePanel Content During Async Postback"
Object Reference not set to an Instance of an Object
It's poetic to start a blog off with a bug like "object not set to an instance of an object". It's such a common bug. It occurs any time your code tries to access a variable that has no value in it by not having been set, having been expired or it's value cleared somewhere in your code previous to the line that's giving you … Continue reading the story "Object Reference not set to an Instance of an Object"