Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use jQuery UI through standard ASP.NET controls

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

How to use jQuery UI through standard ASP.NET controls? for this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

JQuery UI provides powerful front-end features, including script-based and stylesheet-based calendars, drag-and-drop, and other cool features, but these are all based on javascript programming, and it is difficult for programmers with less attribute languages to master jQuery UI.

Today, I would like to introduce a standard ASP.NET control library JuiceUI.

JuiceUI is an open source set of WebForms controls, and you can simply use jQuery UI components in WebForm projects. Now, you can also easily use the popular JavaScript interface library in ASP.NET projects.

For example, if you want to implement a pop-up calendar selector in the page, the following code can do that.

Just drag a control!

Note: you must first increase the use of ScriptManager.

It even provides the following controls:

Page up/down-Last month / next month

Ctrl+page up/down-last year / next year

Ctrl+home-current month or open when closed

Ctrl+left/right-yesterday / tomorrow

Ctrl+up/down-Last week / next week

Enter-accept the selected date

Ctrl+end-close and erase the date

Escape-close the datepicker without selection

It can be dragged directly from the toolbox.

What? You want more control in the code, no problem! You have a number of properties you can use to set, such as DateFormat, to format the date.

Download it here! Http://nuget.org/packages/JuiceUI

If you have already installed NuGet, use this command directly to add this support to your project.

Install-Package JuiceUI

Note: this library is based on jQuery and jQuery UI, and here is the version it uses:

JQuery 1.7.1

JQuery.UI.Combined1.8.17

After installation, all the required files are already in your project, including jQuery.

Include script

In your project folder, include all the files.

This is the answer to the question on how to use jQuery UI through the standard ASP.NET controls. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report