Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How is jquery used in net webforms?


Asked by Idris Clayton on Dec 14, 2021 jQuery



NET WebForms: Identifying the Controls Introduction jQuery is a very useful library of JavaScript functions which can be used to modify HTML elements. Because of its numerous features,ease of use and vibrant community, Microsoft chose to replace the ASP.NET Ajax Toolkit with jQuery as its official client-side scripting platform in 2008.
Similarly,
How to add jQuery UI code to ASP.NET Web Forms pages? When you select New > Web Forms in an ASP.NET Web Forms project, you get a page with this code:
In this manner, In Visual Studio 2013, a new Web Forms project uses the same JavaScript and jQuery libraries, Bootstrap, Modernizr, and other technologies that are also included in a new MVC project. The existing server controls in Web Forms can take full advantage of HTML 5 and CSS 3.
Moreover,
For validating a web form using the jQuery validation library we need to include the following scripting file in our master page or webpage. Or you can directly link it to the project bin directory. If you are using the Visual Studio 2013 default template then jquery-1.10.2.min.js is available for your Scripts folder.
Also,
In the above code, I have not used "http" protocol while referencing jQuery from Google CDN. Its not a mistake rather always use protocol less URL for referencing jQuery. After this setup, you can use jQuery in your ASP.NET page. Let's see a demo.