![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
asp.net
编程有钱人了
小人物不值一提
展开
-
asp.net2.0使用mysql数据库乱码问题解决方案
由于工作需要,现在一直使用mysql数据库,刚开始的时候出现乱码真事烦人!!上网上找了一些解决办法,但都不够全面!其实方法很多,现在我就讲讲我的实践吧 使用mysql 5.0以上版本. 首先安装mysql数据库完之后 它都需要你配置数据库的一些选项,其中有一项就事选择字符集这时最好选择UTF-8最好这个 ,避免以后升级的麻烦 还有最重要的事在建数据库的时候制定原创 2008-07-31 16:01:00 · 740 阅读 · 1 评论 -
asp.net 图片智能缩放!
<br /> /// <summary> /// 图片按比列缩放 /// </summary> /// <param name="M_OldPath">源图片路径</param> /// <param name="M_NewPath">新图片路径</param> /// <param name="M_Width">新图片的宽度</param> /// <param name="M_Height">新图片的高度</param> pub原创 2011-04-26 09:46:00 · 788 阅读 · 0 评论 -
处理在多参数情况下分页参数的完整性
private string geturl() { string ResultUrl = Request.Url.AbsoluteUri; ResultUrl = Regex.Replace(ResultUrl, @"page=(/d+)/&?", string.Empty, RegexOptions.IgnoreCa原创 2009-11-27 11:40:00 · 547 阅读 · 0 评论 -
[转]asp.net区分中英文字符串截取
/// /// 字符串切割 /// /// /// /// public static string GetSubString(string p_SrcString, int p_Length) { string myResult = p_SrcString; if (p_Len转载 2009-10-29 10:51:00 · 1156 阅读 · 0 评论 -
仿百度分页生成页码不涉及数据源(可自行使用)
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Text;public partial class _Default : Sys原创 2009-10-28 11:07:00 · 778 阅读 · 0 评论 -
获取任意网站的页面HTML的资源
System.Net.WebClient ws=new System.Net.WebClient(); string con= ws.DownloadString("http://www.hao123.com"); Response.Write(con); Response.End();原创 2009-06-11 13:13:00 · 952 阅读 · 0 评论 -
在ASP.NET 2.0中直接得到本页面生成的HTML代码
protected override void Render(HtmlTextWriter writer) { System.IO.StringWriter html = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter tw = new System.Web.UI.HtmlT转载 2009-06-04 16:56:00 · 565 阅读 · 0 评论 -
16进制转换成字符串
public string HexNumberToString(string InputString) { int len = InputString.Length >> 1; byte[] str = new byte[len]; for (int i = 0; i < len; i++) {原创 2009-07-29 17:33:00 · 1537 阅读 · 2 评论 -
html编辑及JS脚本过滤
public static string NoHTML(string Htmlstring) //去除HTML标记 { //删除脚本 Htmlstring = Regex.Replace(Htmlstring, @"(?is)]*>(?(?!/1/b).)*", string.Empty, RegexOpti原创 2008-11-19 14:43:00 · 2643 阅读 · 0 评论 -
json.net的使用
json.net的使用起来很简单的可以到它的官方网站去下载它的组件(注意版本问题哦)http://www.codeplex.com/Json/Release/ProjectReleases.aspx?ReleaseId=18825 安装后 引用using System;using System.Data;using System.Configuration;原创 2008-11-19 14:30:00 · 4796 阅读 · 2 评论 -
UrlRewritingNet地址重写组件的使用
UrlRewritingNet.UrlRewriter.dll这个组件和好用的,不用写CS代码 ,直接在配置文件里写就可以!可到它的官方网站去下载http://www.urlrewriting.net/155/de/downloads.html 下面是文档的实例代码(很简单的,一看就懂) xml version="1.0"?>configuration> co原创 2008-11-20 15:27:00 · 1958 阅读 · 0 评论 -
ASP.NET2.0探针
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %>%@ Import Namespace="System.Diagnostics" %>%@ Import Namespace="Microsoft.Win32" %>%@ Import Na原创 2008-11-10 17:28:00 · 1450 阅读 · 3 评论 -
asp.net2.0基于flex3.0的ajax登录验证(MXML和XML)
刚接触的flex3.0 好不容易自己做了个 登陆模拟,和大家分享本来想用微软的svilerlight的来,但是我不会,就用ADOBE的FLEX3.0吧!演示地址:http://www.100w100d.cn/testflexlogin/bin-debug/testflexlogin.html演示的账号和密码都是:admin先建一个flex3.0工程名叫testflexlogin先看我的f原创 2008-10-14 09:50:00 · 771 阅读 · 0 评论 -
web2.0颜色表
原创 2008-10-22 09:34:00 · 2870 阅读 · 0 评论 -
asp.net基于jquery的ajax二级联动
刚刚修改的 以前是很早之前写的了 有很多不足之处 现在写最新的吧(现在的代码高亮怎么没有html的了?) 那html 直接贴代码了 哎 index.aspx $(document).ready(function() {//预先加载第一个select,加载品牌,看好加载的的页面BrandHandler.ashx原创 2008-09-26 14:54:00 · 5126 阅读 · 6 评论 -
asp.net2.0 的读和写二进制文件
自己做了读和写二进制文件的DEMOusing System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using Syst原创 2008-10-17 11:09:00 · 859 阅读 · 0 评论 -
c# 万年历生成算法
虽然asp.net有内置的日期控件但我这里就是给你大家看下日历生成的算法 protected void Page_Load(object sender, EventArgs e) { createCalendar(2008,12);//输入参数进行测试 } private void createCalendar(int year原创 2008-11-10 16:53:00 · 3177 阅读 · 3 评论