积极答复者
是不是现在最新的技术都已经不用ajax.net了

问题
-
- 已移动 ThankfulHeart 2013年4月4日 4:17 AJAX问题
答案
-
关于星星控件:
http://blog.sina.com.cn/s/blog_568e66230100jcde.html
加入样式表,同时这样参考:
不过请注意——我测试过貌似有些浏览器不支持这个控件。所以我建议你还是使用jQuery的Rating插件:
http://www.cnblogs.com/xiaoyao2011/archive/2011/10/15/2213129.html
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <%@ Register TagPrefix="cc1" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=3.5.7.123, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %> <!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"> <link href="css/StyleSheet.css" rel="stylesheet" type="text/css" /> <title>你好</title> <style type="text/css"> .RatingStar { font-size: 0pt; width: 14px; height: 14px; margin: 0px; padding: 0px; cursor: pointer; display: block; background-repeat: no-repeat; } .filledRatingStar { background-image:url(images/filledStar.png) } .emptyRatingStar { background-image: url(images/emptyStar.png); } .waitingRatingStar { background-image: url(images/waitingStar.png); } </style> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <%--进行投票:--%> <asp:UpdatePanel ID="upPanel" runat="server"> <ContentTemplate> <asp:Rating ID="Rating1" runat="server" EmptyStarCssClass="emptyRatingStar" FilledStarCssClass="filledRatingStar" StarCssClass="RatingStar" WaitingStarCssClass="waitingRatingStar" CurrentRating="1" RatingAlign="Horizontal"> </asp:Rating> <br /> <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" /> <br /> <asp:Label ID="Label1" runat="server"></asp:Label> </ContentTemplate> </asp:UpdatePanel> </div> </form> </body> </html>
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats- 已编辑 ThankfulHeart 2013年4月6日 8:30
- 已标记为答案 Song TianModerator 2013年4月26日 8:38
全部回复
-
你安装了VS2008吗?还是更高版本的?AJAX安装包不再这里。你提供你VS版本号,我提供你下载地址,谢谢!
一般你刚才那个是VS2008的,直接安装你上面的,这个页面:http://ajaxcontroltoolkit.codeplex.com/releases/view/100852
选择3.5的那个版本!
如果你是VS2010的,那么请到NuGet中去安装。
如果没有NuGet插件,请立即下载:http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c
安装完毕后,请随便打开一个Web项目,右键选择“管理NuGet……”那个选项:
然后在弹出的框中选择AJAX安装包,点击安装下载即可:
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
- 已编辑 ThankfulHeart 2013年4月4日 11:44
-
其实你那个template无所谓使用,你下载AJAX之后,直接拖拽一个ScriptManager到网页上,然后加上一个UpdatePanel就是模板的内容。(3.5以上一般是toolKitScriptManager)。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats -
- 已建议为答案 ThankfulHeart 2013年4月4日 6:12
-
不过你可能需要安装AJAX TOOLKIT工具包,额外提供你大量的Ajax工具控件。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats -
有下载地址吗
就是我上面提供的。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats -
关于星星控件:
http://blog.sina.com.cn/s/blog_568e66230100jcde.html
加入样式表,同时这样参考:
不过请注意——我测试过貌似有些浏览器不支持这个控件。所以我建议你还是使用jQuery的Rating插件:
http://www.cnblogs.com/xiaoyao2011/archive/2011/10/15/2213129.html
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <%@ Register TagPrefix="cc1" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=3.5.7.123, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %> <!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"> <link href="css/StyleSheet.css" rel="stylesheet" type="text/css" /> <title>你好</title> <style type="text/css"> .RatingStar { font-size: 0pt; width: 14px; height: 14px; margin: 0px; padding: 0px; cursor: pointer; display: block; background-repeat: no-repeat; } .filledRatingStar { background-image:url(images/filledStar.png) } .emptyRatingStar { background-image: url(images/emptyStar.png); } .waitingRatingStar { background-image: url(images/waitingStar.png); } </style> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <%--进行投票:--%> <asp:UpdatePanel ID="upPanel" runat="server"> <ContentTemplate> <asp:Rating ID="Rating1" runat="server" EmptyStarCssClass="emptyRatingStar" FilledStarCssClass="filledRatingStar" StarCssClass="RatingStar" WaitingStarCssClass="waitingRatingStar" CurrentRating="1" RatingAlign="Horizontal"> </asp:Rating> <br /> <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" /> <br /> <asp:Label ID="Label1" runat="server"></asp:Label> </ContentTemplate> </asp:UpdatePanel> </div> </form> </body> </html>
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats- 已编辑 ThankfulHeart 2013年4月6日 8:30
- 已标记为答案 Song TianModerator 2013年4月26日 8:38
-
AJAX只是一种上层表现形式。
与ASP.NET核心技术没有什么关联。而且AJAX主要是通过js来实现。
再说,AJAX已经快落伍了。没事可以研究一下html5 的新特性,比如pushstate+ajax之类的
-
早用,晚用.都得用
-
c#基础+html/css+jQuery就行了