.NET Daily

.NET Daily

Recommended Resources

Popular Content



How to keep a button disabled until the page is loaded

Posted on May 3rd, 2016.

There are cases when you need to keep a button disabled until the page is rendered. The main reason you may need this is to prevent the user from clicking on a button that is not functional at that point. The easiest way of achieving this is to follow these 2 steps: Disable the button from HTML: <button id="add-to-cart" type="submit"...



Little things that make a big difference in Javascript

Posted on January 24th, 2016.

Since I started working as a front-end developer, I encountered many situations when JavaScript code was buggy or had various issues even though the logic seemed correct. As a beginner it is difficult to follow all the best practices and sometimes can even be confusing, as this topic can be a bit subjective. Of course, there are a few...



Access public methods from code-behind with jQuery

Posted on October 5th, 2011.

Have you ever wanted to check the availability for an email in real-time on client-side? Or check the strength of a password and display the status next to the textbox? You can achieve the above scenarios very easy with a public method and some jQuery. I will describe the scenario when you will have to check the strength of a password:...



How to search a control with jQuery knowing only a part of the control name

Posted on September 13th, 2011.

ASP.NET Web Forms require unique IDs for server controls in the page so if you want to search a control by a predictable name from Javascript, its pretty hard, well not hard but unflexible. Either give the full name you find in View Source and you pay attention if the ID will change during builds or you put server tags “<%=...

Privacy Preference Center