如何在ASP中使用jQuery [英] How to use jQuery in ASP

查看:98
本文介绍了如何在ASP中使用jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我阅读了有关jQuery的文章,并希望在我的应用程序中使用.

但是我有点困惑如何在我的Apps中实现jQuery.
我是否需要在我的应用程序中包含任何dll,例如AjaxControlToolkit.
或在应用程序中是否有其他软件包可以使用jQuery.

我正在使用Visual Web Developer2010.

如果是,我需要包含一个dll,以便下载和使用哪个DLL.


感谢和问候.

Hello Friends,

I read about the jQuery and want to use in my apps.

But I''m bit confuse how can I implement jQuery in my Apps.
Do I need to include any dll in my app like AjaxControlToolkit.
or is there any other package to use jQuery in Applications.

I''m using Visual Web Developer 2010.

If yes I need to include a dll so which one should I download and use.


Thanks and regards.

推荐答案

我认为这将帮助您开始使用jQuery.
http://www.asp.net/ajaxLibrary/jquery_introduction.ashx [
I think this will help you to start using jQuery.
http://www.asp.net/ajaxLibrary/jquery_introduction.ashx[^]


您必须包含相关的JS文件.大多数情况下,jQuery插件都不是单个文件.它带有一些CSS文件,图像等.没有这样的DLL.

通常,jQuery插件附带一个简单的文档,该文档说明了如何在应用程序中使用它们.就像下面的一样.

http://www.queness.com/post/77/simple-jquery-modal- window-tutorial [^ ]
You have to include the relevant JS file. Most of the cases jQuery plugins are not a single file. It comes with some CSS files, images and so on. There is no DLL as such.

Normally jQuery plugin comes with a simple documentation that how you can use them in your applications. Just like the following.

http://www.queness.com/post/77/simple-jquery-modal-window-tutorial[^]


朋友们,我实际上得到了所需的解决方案.
现在,只需几个步骤,新手就可以从jQuery开始了.

1.您需要从给定的链接下载以下CDN(内容交付网络),并将其包含在您的项目中.

Hi friends, I got the solution actually what I required.
what a beginner need to start with jQuery that''s all here now in few steps.

1. You need to download the following CDN(Content Delivery Network) from the given link and include in your project.

1. http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.2.js
2. http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.2.min.js
3. http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.2-vsdoc.js



jquery-1.6.2-vsdoc.js提供了IntelliSense.

2.将这些文件包含在解决方案资源管理器中的文件夹中后,将它们拖到要应用的页面上.

3.



the jquery-1.6.2-vsdoc.js provide the IntelliSense.

2. After including these files in your solution explorer in a folder, drag them on the page you want to apply.

3.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="jQuery.aspx.cs" Inherits="jQuery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="App_Themes/customCss.css" rel="stylesheet" type="text/css" />
    <script src="Script/jquery-1.6.2.js" type="text/javascript"></script>




4.在页面中包含一个脚本标记,然后开始使用jQuery.

有关更多详细信息,请参考 http://www.dotnetcurry.com/ShowArticle.aspx?ID=231 [< ^ ]




4. Include a script tag in your page and start using jQuery.

For more details please refer to http://www.dotnetcurry.com/ShowArticle.aspx?ID=231[^]


这篇关于如何在ASP中使用jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆