- 博客(16)
- 资源 (1)
- 收藏
- 关注
原创 C# 文件Http断点续传下载公共类
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Net; namespace XcDownLoadFile { public class DownLoa
2010-02-04 22:27:00
765
原创 C# WinForm 音乐播放器源码
目前网络上很多C#做的音乐播放器,但是功能不尽人意。本人通过网上的播放器源码结合自身的知识做出一个比较好的播放器,供大家交流。如图: 以下是播放器界面代码,新建一个项目CmTTPlayer,窗体文件名为Frm; namespace CmTTPlayer { partial class Frm { /// ///
2010-01-31 13:59:00
6841
1
原创 html文件修改后缀为aspx之后在ie6中格式显示不正确问题的解决办法
因为客户的特殊要求,网站显示的时候必须以aspx后缀的形式来显示,所以把所有文件的后缀全部改成aspx了。但是部署上去之后,aspx文件在ie7及ie8中都能正常显示(ie8中能正常显示需要加一行代码: ),但是在ie6中却格式全部错位,显示混乱。但是html文件却没问题。 网上查了一下发现原来是编码的问题,改为aspx后,.net环境在编译后让html的编码格式改为了utf-8。而你的css文件
2010-01-20 12:55:00
941
原创 公共通用的功能模块
using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.SqlClient;using System.Xml;using System.Xml.Schema;using System.Xml.Serialization;
2009-12-12 22:48:00
892
原创 多文件无刷新上传系统
首先是页面布局: @ Page Language="C#" AutoEventWireup="true" CodeFile="MultipleFileUpload.aspx.cs" Inherits="FileUpload_MultipleFileUpload" %>DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional/
2009-12-12 22:12:00
664
原创 单个文件(图片)上传功能
此功能是.net里典型的单个文件(图片)上传功能 源文件: html xmlns="http://www.w3.org/1999/xhtml">head runat="server"> title>单文件上传title>head>body> form id="form1" runat="server"> div> 单文
2009-12-12 21:48:00
500
原创 DataList嵌套循环分类
一个DataList中遍历的是一个栏目的分类,但是还想在栏目分类下嵌套遍历分类的内容怎么办呢?这就涉及到DataList的嵌套循环了。 首先,在视图代码中的两个DataList代码是这样的: >
2009-12-10 20:46:00
2104
原创 DBHepler通用类
using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.SqlClient;using System.Xml;using System.Xml.Schema;using System.Xml.Serialization;
2009-12-09 22:33:00
1290
1
原创 可折叠区域代码的实现
-//W3C//DTD HTML 4.0 Transitional//EN"> Toggle script type="text/JavaScript"> function toggle(sDivId) { var oDiv = document.getElementById(sDivId); oDiv.style.display = (oDiv.sty
2009-12-09 21:32:00
528
原创 .net中Split分割函数的用法
分割截取字符串 看几个例子就能理解了 mystr="1,2,3,4,5" mystr=split(mystr,",") for i=0 to ubound(mystr) response.write mystr(i) next 返回值为123456 mystr="http://xlei.net/http/student/x/index.a
2009-12-09 21:12:00
3064
原创 JQuery Ajax在.net里面的使用(判断用户名是否存在)
function toggle(sDivId) { var oDiv = document.getElementById(sDivId); oDiv.style.display = (oDiv.style.display == "none") ? "block":"none"; }1、请求页面AJax.aspx txtName" type="text"
2009-12-09 21:08:00
1410
2
原创 解决在Ajax更新面板下弹不出对话框的现象
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControl
2009-12-09 20:15:00
1143
1
原创 通过Js自动按比例缩放图片
//图片按比例缩放入口,sender为图片框Id function onPreviewLoad(sender){ autoSizePreview( sender, sender.offsetWidth, sender.offsetHeight ); }
2009-12-09 20:07:00
699
原创 C#中PictureBox控件获取网络图片并显示出来
[code=C#]//在WinForm桌面应用程序中的PictureBox图片框中放入一张图片, //而这张图片的路径不是本地的路径,而是网络上的, //例如:http://www.baidu.com/img/baidu_logo.gif这张网络图片我要放到PictureBox中去。 //获取网络图片 Im
2009-12-04 21:30:00
4555
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅