博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年7月9日

摘要: 在已经发布的 ASP.NET2.0 中,无刷新页面开发相关部分同 beta2 有不少改动。而且在越来越多的 Ajax 开发包被开发出来的情况下, ASP.NET2.0 自带的无刷新页面技术没有被很多人了解,甚至不少人认为该功能有些“鸡肋”。但如果我们仅仅是在程序中加入很少部分的 Ajax 特性, Atlas 、 Ajax.Net 等就显得有些“杀鸡用牛刀R... 阅读全文

posted @ 2009-07-09 14:37 hyd309 阅读(676) 评论(0) 推荐(0) 编辑

2009年7月6日

摘要: <script type="text/javascript" src="../project/blogcms2/js/jquery.js" ></script><script>$(function () { // 全选 $('#hobby_all').click(function () { $('input[name="hobby[]"]').attr("che... 阅读全文

posted @ 2009-07-06 17:46 hyd309 阅读(820) 评论(0) 推荐(0) 编辑

摘要: alert($("#hid1").attr("value")); 获取隐藏控件的值alert($("#lbl1").attr("innerText"));获取lable控件的值alert($("#txt1").attr("value"));获取textbox控件的值 方法1alert($("#txt1").val());获取textbox控件的值 方法2/*获取单选按钮的值*/ var valr... 阅读全文

posted @ 2009-07-06 17:44 hyd309 阅读(1374) 评论(0) 推荐(1) 编辑

摘要: <script type="text/javascript" language="javascript"> $(function() { $("#checkedAll").click(function() { if ($(this).attr("checked") == true) { // 全选 $("input[@type='checkbox']").each(function... 阅读全文

posted @ 2009-07-06 10:51 hyd309 阅读(179) 评论(0) 推荐(0) 编辑

2009年7月3日

摘要: <head><script language="javascript" type="text/javascript">document.oncontextmenu=function(){return false;}//屏蔽右键菜单document.onpaste=function(){return false;}//屏蔽粘贴document.oncopy=function(... 阅读全文

posted @ 2009-07-03 12:04 hyd309 阅读(1063) 评论(1) 推荐(0) 编辑

2009年5月31日

摘要: <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:GridView ID="GridView1" CssClass="tablestyle" AutoGenerateColumns="false" ShowFooter="... 阅读全文

posted @ 2009-05-31 14:30 hyd309 阅读(316) 评论(0) 推荐(0) 编辑

摘要: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="gb2312" lang="gb2312"> <head> <title> 上传的时候<input type="file">中用图片代替浏览按钮 </title> <script language="javascript" ... 阅读全文

posted @ 2009-05-31 13:57 hyd309 阅读(445) 评论(0) 推荐(0) 编辑

摘要: <a href="#" onclick="window.external.addFavorite('http://www.google.cn','google中国');"><font color="white" style=" color:Black; font-size: 9pt; font-family: 宋体; text-decoration :none;">收藏本站... 阅读全文

posted @ 2009-05-31 13:39 hyd309 阅读(172) 评论(0) 推荐(0) 编辑

2009年5月20日

摘要: <asp:RadioButtonList ID="RdButFreightMode" runat="server" DataSourceID="SqlFreightMode" DataTextField="mode_name" DataValueField="mode_id" RepeatDirection="Horizontal" Width="280px"> </asp:Ra... 阅读全文

posted @ 2009-05-20 17:27 hyd309 阅读(386) 评论(0) 推荐(0) 编辑

2009年5月18日

摘要: <asp:DataList ID="DataList1" runat="server" onitemdatabound="DataList1_ItemDataBound"> <ItemTemplate> <div id="div<%#Container.ItemIndex+1 %>"></div> <script> var ... 阅读全文

posted @ 2009-05-18 14:46 hyd309 阅读(760) 评论(0) 推荐(0) 编辑

2009年5月15日

摘要: .lbt a:link { text-decoration: none ; color:Blue ; }文件颜色.lbt a:visited { text-decoration: none ; color:yellow ;} 点击过文件颜色.lbt a:hover { text-decoration: underline; color:Green ; }鼠标放上面的颜色.lbt a:active ... 阅读全文

posted @ 2009-05-15 17:32 hyd309 阅读(1181) 评论(0) 推荐(0) 编辑

2009年5月13日

摘要: target='blank' or 'top'可以防止浏览器不同打不开this.Page.RegisterStartupScript("key", "<script>window.open('Error.aspx',target='blank')</script>");this.Page.RegisterStartupScript("key", "<script>... 阅读全文

posted @ 2009-05-13 10:11 hyd309 阅读(6016) 评论(0) 推荐(2) 编辑

2009年5月12日

摘要: ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "NoInformation", "alert('" + str + "');", true);Response.Write("<script>alert('"+ str +"')</script>"); 阅读全文

posted @ 2009-05-12 15:42 hyd309 阅读(1223) 评论(0) 推荐(0) 编辑

2009年5月11日

摘要: //首先要在PageLoad()事件中注册属性 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Button1.Attributes.Add("onclick", "return checkSame()");//为Button1添加onclick()事件 ,Button为服务器控件 }//注意:ch... 阅读全文

posted @ 2009-05-11 09:22 hyd309 阅读(269) 评论(1) 推荐(0) 编辑

2009年5月7日

摘要: $() 函数返回一个含有所有与 CSS 选择器匹配的元素的 jQuery 对象。jQuery 对象 类似于数组,但是它附带有大量特殊的 jQuery 函数。比方说,您可以通过调用 click 函数把 click 处理函数指定给 jQuery 对象中的所有元素。还可以向 $() 函数传递一个元素或者一个元素数组,该函数将把这些元素封装在一个 jQuery 对象中。您可能会想要使用这个功能将 jQue... 阅读全文

posted @ 2009-05-07 13:24 hyd309 阅读(251) 评论(0) 推荐(0) 编辑