Asp.net
文章平均质量分 71
yjinzaghi
Asp.net开发
展开
-
发送邮件
using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.SqlClient;using Microsoft.ApplicationBlocks.Data;using CDO;using Huolx.Pubclass;namespace MailSend原创 2008-01-22 16:24:00 · 455 阅读 · 0 评论 -
自动锁定提交按钮
.aspx function ButonClicks(Button) { var mybutton=document.getElementById(Button); mybutton.disabled=true; mybutton.value ="提原创 2009-05-26 15:03:00 · 502 阅读 · 0 评论 -
AJAX 在本页面呼叫后台数据
ASPXhttp://www.w3.org/1999/xhtml" > Untitled Page function callToServer() { var param = document.getElementById("txtMessage").value; va原创 2008-04-22 09:47:00 · 497 阅读 · 0 评论 -
生成报表的图片
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // 在此处放置用户代码以初始化页面 Bitmap objBitMap = new Bitmap(400, 200); int intI = 10;转载 2008-04-22 09:27:00 · 346 阅读 · 0 评论 -
AJAX 的天气查询
Untitled Page function makeRequest() { http_request = false; // alert(url); if (window.XMLHttpRequest) { http_request = new XMLHttpReque原创 2008-04-22 09:21:00 · 586 阅读 · 0 评论 -
实现层移动(div )
未命名頁面 a{ color:#000; font-size:12px;text-decoration:none} a:hover{ color:#900; text-decoration:underline} body{background:;filter:progid:DXImageTransform.Microsoft.Gradient(gradientTyp原创 2008-04-22 09:17:00 · 678 阅读 · 0 评论 -
生成Excel
Response.Clear(); Response.Buffer = true; Response.AppendHeader("Content-Disposition", "attachment;filename=" + DateTime.Now.ToString("SALESPLANyyyyMMddHHmmss")+ ".xls"); Respons原创 2008-04-22 09:51:00 · 393 阅读 · 0 评论 -
无刷新查询联动
http://www.w3.org/1999/xhtml" > Untitled Page HTTPRequest = function () { var xmlhttp=null; try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");原创 2008-04-22 09:24:00 · 403 阅读 · 0 评论 -
随意拖动图片
http://images.163.com/homepage/logo.gif" alt="" /> js //为Number增加一个属性,判断当前数据类型是否是数字 Number.prototype.NaN0=function(){return isNaN(this)?0:this;} //全局变量 var iMouseDown=false; var原创 2008-04-22 09:06:00 · 599 阅读 · 0 评论 -
菜单的隐藏和显示
未命名頁面 #D1 { BACKGROUND-COLOR: lightgreen; BORDER-BOTTOM: white 2px outset; BORDER-LEFT: white 2px outset; BORDER-RIGHT: white 2px outset; BORDER-TOP: white 2px outset; LEFT: 0px; PO原创 2008-04-22 09:30:00 · 580 阅读 · 0 评论 -
无刷新分页加存储过程
function InitAjaxSalesList() { var ajax = null; try { ajax = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { try { ajax = new ActiveXObject("Msxml4.XMLHTTP"); }原创 2008-04-22 08:44:00 · 857 阅读 · 1 评论 -
XML文件操作
XmlDocument doc = new XmlDocument(); string strtxt = ""; doc.Load(Server.MapPath("XMLFile1.xml")); XmlNode root = doc.DocumentElement; foreach (XmlNode pers原创 2010-03-15 15:23:00 · 363 阅读 · 0 评论