ASP.NET 技术点
文章平均质量分 57
hailang123_love
本人是一名刚出道不就的asp.net程序员,对asp.net很少感兴趣,工作后感觉到了太多的不足,希望各位高手能多多指教
展开
-
ASP.NET 地址栏参数加密
//加密要传递的参数string Id=Convert.ToBase64String(System.Text.Encoding.Default.GetBytes("aa12")).Replace("+","%2B");Response.Write("加密字符为:" +Id+"");Response.Redirect("Default.aspx?id="+Id);//解密stri原创 2010-03-08 16:42:00 · 3081 阅读 · 0 评论 -
asp.net 给图片添加水印
<br />using System;<br />using System.Collections;<br />using System.Configuration;<br />using System.Data;<br />using System.Linq;<br />using System.Web;<br />using System.Web.Security;<br />using System.Web.UI;<br />using System.Web.UI.HtmlControls;<br /原创 2010-11-15 15:36:00 · 401 阅读 · 0 评论 -
asp.net 给图片添加水印
<br />using System;<br />using System.Collections;<br />using System.Configuration;<br />using System.Data;<br />using System.Linq;<br />using System.Web;<br />using System.Web.Security;<br />using System.Web.UI;<br />using System.Web.UI.HtmlControls;<br /原创 2010-11-15 15:36:00 · 358 阅读 · 0 评论 -
更具URL生成静态页面
<br /> private void NewMethod()<br /> {<br /> string lcHtml = "";<br /> HttpWebRequest loHttp;<br /> //string ss = "http://" + HttpContext.Current.Request.Url.Host + ":" + HttpContext.Current.Request.Url.Port + this.ResolveUrl("~")原创 2010-10-30 11:19:00 · 374 阅读 · 0 评论 -
ASP.NET中获取本机的IP
private void btnChenk_Click(object sender, System.EventArgs e)<br />{<br />System.Net.IPAddress[] addressList = Dns.GetHostByName(Dns.GetHostName()).AddressList;<br />if ( addressList.Length>1)<br />{<br />nativeIP.Text = addressList[0].ToString();<br />原创 2010-08-05 15:14:00 · 3233 阅读 · 0 评论 -
Excle导出
<br />1、由dataset生成以下为引用的内容:<br />public void CreateExcel(DataSet ds,string typeid,string FileName) <br /> {<br /> HttpResponse resp;<br /> resp = Page.Response;<br /> resp.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");<br /> resp.A原创 2010-08-03 13:48:00 · 487 阅读 · 0 评论 -
sqlserver2005 查询当月,本天,本周的记录(DateDiff函数的使用)
<br />--查询当天: <br />select * from info where DateDiff(dd,datetime,getdate())=0 <br /> <br />--查询24小时内的: <br />select * from info where DateDiff(hh,datetime,getDate())<=24 <br /> <br />--info为表名,datetime为数据库中的字段值 <br />--查询当天:<br />select * from转载 2010-07-17 14:10:00 · 6344 阅读 · 0 评论 -
ASP.NET 创建XML
using System;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebContr原创 2010-05-20 13:24:00 · 318 阅读 · 0 评论 -
excls导入数据库
界面效果Excls 设计数据库设计该程序运行在vs2008上面数据库 SqlServer2005 本实例中 数据库为 SDZY_raffle、表名为 JiFen代码直接考上就可以运行提示:要在后台代码中添加一个Configuration的引用前台布局代码http://www.w3.org/TR/xhtml1/DTD/x原创 2010-05-20 13:22:00 · 451 阅读 · 0 评论 -
后台遍历Javascript获取前台数据
前台设计:http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> 无标题页 var h=1; var message=""; var str2=""; function AddSelect()原创 2010-05-20 13:33:00 · 1817 阅读 · 0 评论 -
Excls 导入完整版
界面效果Excls 设计数据库设计该程序运行在vs2008上面数据库 SqlServer2005 本实例中 数据库为 SDZY_raffle、表名为 JiFen代码直接考上就可以运行提示:要在后台代码中添加一个Configuration的引用前台布局代码http://www.w3.org/TR/xhtml1/DTD/x原创 2010-05-06 16:12:00 · 962 阅读 · 1 评论 -
多文件上传
在点击增加图片的时候会自动增加上传图片的数量默认是上传一张,其上传数量的多少由开发者自己定义下面是全部代码:前台布局代码:http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> 无标题页 var i=1 f原创 2010-04-30 16:25:00 · 562 阅读 · 0 评论 -
ASP.NET 模式窗口中调用后台代码
1、用JavaScript打开一个模式窗口//打开登录窗口的模式窗口 function ShowLoginDialog() { window.showModalDialog("Default.aspx","newwin","dialogHeight:300px;dialogWidth: 250px; dialogTop: 458px原创 2010-03-17 17:05:00 · 950 阅读 · 0 评论 -
ASP.NET 生成静态页面
1、首先在你的asp.net 网站的根目录下创建一个文件夹用来存放生成的静态页面2、制作一个htm的静态网页模板test.htm实例代码如下: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> 首页原创 2010-03-10 13:41:00 · 450 阅读 · 0 评论 -
ASP.NET中MD5数据库加密解密
using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;usi原创 2010-03-08 17:36:00 · 1825 阅读 · 1 评论 -
ASP.NET中MD5加密
using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;usi原创 2010-03-08 16:57:00 · 8374 阅读 · 0 评论 -
XMLHttpRequest对象介绍
在 进行Ajax开发以前,我们必须先对一些基本的知识进行了解。虽然Ajax.NET已经将Ajax实现细节封装起来,并大大简化了我们的操作,但是了解基 本的Ajax实现方式对于帮助我们在开发中能更好理解和实施,以及更有效地优化和排错是至关重要的。此外,虽然我们不必编写具体的Ajax调用代理,但是 在调用代理前获取数据,以及返回数据后怎样使数据能够正确显示,这两部分工作都需要我们具有基本的JavaSc转载 2011-10-26 23:04:01 · 477 阅读 · 0 评论