Category Archives: Javascript

Automatic page element focus in MVC

It’s really annoying when a web page doesn’t have focus set to an element on the page by default. Especially for things you visit regularly like login pages. It shows no effort went into the design or UX.  So here’s … Continue reading

Posted in ASP.NET MVC, Javascript, jQuery

How to prevent a textbox causing a postback

This is a rather annoying situation with a simple solution. Your page contains a textbox and if you press the enter key while the textbox has focus, it will trigger a POST request to the server. Unfortunately for the user, … Continue reading

Posted in Javascript | Leave a comment

Partial page updates with jQuery AJAX

UPDATE: I have left this article here for historical reasons but you should now consider ASP.NET Web Forms as obsolete due to it not supporting unit-testing and the amount of data that is passed between client and server. I recommend … Continue reading

Posted in AJAX, ASP.NET Web Forms, CSS, Javascript, jQuery | Leave a comment

Page Method via jQuery AJAX

UPDATE: I have left this article here for historical reasons but you should now consider ASP.NET Web Forms as obsolete due to it not supporting unit-testing and the amount of data that is passed between client and server. I recommend … Continue reading

Posted in AJAX, ASP.NET Web Forms, Javascript, jQuery | Leave a comment

ASP.NET ViewState

UPDATE: I have left this article here for historical reasons but you should now consider ASP.NET Web Forms as obsolete due to it not supporting unit-testing and the amount of data that is passed between client and server. I recommend … Continue reading

Posted in ASP.NET Web Forms, Javascript | Leave a comment

Handling ASP.NET AJAX client-side events

UPDATE: I have left this article here for historical reasons but you should now consider ASP.NET Web Forms as obsolete due to it not supporting unit-testing and the amount of data that is passed between client and server. I recommend … Continue reading

Posted in AJAX, ASP.NET Web Forms, Javascript, jQuery | Leave a comment

Dynamically generating client-side script in an ASP.NET page

UPDATE: I have left this article here for historical reasons but you should now consider ASP.NET Web Forms as obsolete due to it not supporting unit-testing and the amount of data that is passed between client and server. I recommend … Continue reading

Posted in ASP.NET Web Forms, C#, Javascript | Leave a comment