随笔分类 -  ASP.net

摘要:<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http 阅读全文
posted @ 2011-03-24 17:10 咸鱼公子 阅读(338) 评论(0) 推荐(0)
摘要:房租涨涨了电话小了感觉越来越苦假期少了收入差了工作越来越苦商品精了价格涨了心情越来越苦天更白了水更污了环境越来越差哎......越来越 来...... 越来越苦来......活得有奔头人会步步高想做到你要努力去做到越来越好 来......越来越好 来......越来越好 来......幸福的笑容天天挂眉梢越来越好婆媳和了家庭暖了生活越来越好孩子高了懂事多了学习越来越好朋友多了心相通了大家越来越好道路宽了心气顺了日子越来越好哎.......越来越好来......越来越好来......活的有精神人就不显老该得到你就争取要得到越来越好 来......越来越好 来......越来越好 来......幸 阅读全文
posted @ 2011-03-24 16:19 咸鱼公子 阅读(359) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2011-03-11 10:16 咸鱼公子 阅读(9) 评论(0) 推荐(0)
摘要://转FLVpublic static string VideoConvertFlv(string FromName, string WidthAndHeight, string ExportName) { string ffmpeg = HttpContext.Current.Server.MapPath("~/FLV/ffmpeg.exe"); string Command =" -i " + FromName + " -y -ab 56 -ar 22050 -b 500 -r 15 -s " + WidthAndHeight + " "+ ExportName; //Flv格式 //s 阅读全文
posted @ 2011-01-20 17:26 咸鱼公子 阅读(893) 评论(0) 推荐(0)
摘要:在做Asp.net开发中,为了保证数据的正确性,经常要限制用户输入的内容,本文提供的验证技巧是保证TextBox控件只输入数字,具体情况又细分了五项内容,供大家参考!具体如下:首先在TextBox控件中加一个属性事件:asp:textbox class="Text" onkeypress="if (event.keyCode 48 || event.keyCode 57) event.returnValue = false;"id="txtY_Revenue" style="TEXT-ALIGN: right" runat="server" Width="90%" MaxLength 阅读全文
posted @ 2011-01-06 12:19 咸鱼公子 阅读(2574) 评论(0) 推荐(1)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"htmlxmlns="http://www.w3.org/1999/xhtml"headrunat="server"titleAJAX控件之Rating/titlestyletype="text/cs 阅读全文
posted @ 2010-12-16 15:19 咸鱼公子 阅读(216) 评论(0) 推荐(0)
摘要:如果DataFormatString无效,请添加属性HtmlEncode = "false"---------------------------------------设定BoundField的DataFormatString,通常有以下几种 DataFormatString= "{0:C}" 货币,货币的格式取决于当前Thread中Culture的设置 DataFormatString= "{0:E}" 科学计数法 DataFormatString= "{0: P}" 百分比 DataFormatString= "{0:F?}" 小数点后几位 DataFormatString= "{0:d 阅读全文
posted @ 2010-12-16 11:48 咸鱼公子 阅读(372) 评论(0) 推荐(0)
摘要:做了一个文章列表,要实现增删改查功能,以前常用用ajax方法中的(ajaxpro),jquery也行,那就用jquery吧,小试一下牛刀以前做数据删除的时候都有去aspx页请求的,后来知道用ashx会更快些,以下是方法jquery方法代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHi... 阅读全文
posted @ 2010-09-21 17:31 咸鱼公子 阅读(1523) 评论(1) 推荐(0)
摘要:常用的就是:重点1: window.showModalDialog("ArtAdd.aspx","","dialogWidth=700px;dialogHeight=550px");///--要打开模态窗口,后面再加上窗口大小 location.reload(); ///操作完模态窗口后关闭会刷新一下父窗体,重点2:下面两句放在子窗里,可以在操作.net控件时不会弹出新窗口,也不会有缓存.(如果有... 阅读全文
posted @ 2010-09-21 17:25 咸鱼公子 阅读(248) 评论(0) 推荐(0)
摘要:公司叫我和另一个网站写一个用户接口,如下:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Data... 阅读全文
posted @ 2010-09-09 17:30 咸鱼公子 阅读(536) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--正则表达式2010-05-0417:33整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$只能输入数字:"^[0-9]*$"。只能输入n位的数字:"^\d{n}$"。只能输入至少n位的数... 阅读全文
posted @ 2010-09-06 16:21 咸鱼公子 阅读(276) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//写入protectedvoidButton2_Click(objectsender,EventArgse){HttpCookiecookie=newHttpCookie("MyCook");//初... 阅读全文
posted @ 2010-09-06 16:10 咸鱼公子 阅读(381) 评论(0) 推荐(0)
摘要:登陆页:namespace Booksir.Domain.Web{ public partial class Login : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnLogin_Click(object sender, AjaxEventArgs ... 阅读全文
posted @ 2010-09-06 16:02 咸鱼公子 阅读(1164) 评论(1) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--数据库优化l64位MSSQL2008:少用触发器/游标/外键。多用存贮过程和视图。适量使用索引查询速度会提高很多,每个表的索引尽量不要超过3个。定时查看死锁的进程和等待进程,并清除,还要及时修正死锁的... 阅读全文
posted @ 2010-09-06 15:14 咸鱼公子 阅读(176) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--天气预报Web服务,数据来源于中国气象局公用事业http://www.webxml.com.cn/WebServices/WeatherWebService.asmx中国股票行情分时走势预览缩略图ht... 阅读全文
posted @ 2010-09-06 14:33 咸鱼公子 阅读(255) 评论(0) 推荐(0)
摘要:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->在服务器端page_loadAjaxPro.Utility.RegisterTypeForAjax(typeof(test));this.Button_Write.Attributes.Add("onclick","WriteSession();");//写sessionthis.Button_Read.Attributes.Add("on 阅读全文
posted @ 2010-08-04 08:52 咸鱼公子 阅读(224) 评论(0) 推荐(0)
摘要:代码 阅读全文
posted @ 2010-05-25 13:34 咸鱼公子 阅读(292) 评论(1) 推荐(0)