摘要:
JavaScript代码:[代码] 阅读全文
摘要:
效果图:关系代码:Command Handler="if(command=='butSelectReocrd'){str=record.data.SessionId; #{AjaxMethods}.SelectRecord(str);}" /全部html代码:代码C#代码:代码 阅读全文
摘要:
效果图:关键代码Command Handler="if(command=='butPhone'){location.href='CallIn.aspx?NetUserName='+record.data.NetUserName;} else {location.href='Customer.aspx?NetUserName='+record.data.NetUserName;}" /Html全部代码代码 阅读全文
摘要:
调用说明:public object Compute(string strExpression,string strFilter)参数:strExpression:要计算的表达式字符串,基本上类似于Sql Server中的统计表达式strFilter:统计的过滤字符串,只有满足这个过滤条件的记录才会被统计示例:假设一个产品销售表table,描述某商场中各促销员销售的实际记录,包含字段为:姓名(Name)、性别(Sex,0为女,1为男)、生日(Birthday)、销售产品的代码(ProID)、销售的数量(Quantity)、销售价格(Price)。1。统计所有性别为女的销售员的数量:table. 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.SqlClient;using Microsoft.Office.Interop.Excel;using Microsoft.Office.Interop.Word;using System.Collections;using System.IO;namespace Common{ public class DataSetOperation { string exceptionMessage;// 阅读全文
摘要:
实现效果:技术实现:前台代码:%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ASPNet探秘._Default" %%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPre 阅读全文
摘要:
效果图:技术实现:前台:%@ Page Language="C#" AutoEventWireup="true" CodeFile="RuKD.aspx.cs" Inherits="HuoDGL_DaY_RuKD" %!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"html xmlns="http://www.w3.org/1999/xhtml" head runat="server" t 阅读全文
摘要:
有3种方法可以实现html的页面跳转,1,refresh 2,onload事件中加入代码 3,js实现1.htmlbodymeta http-equiv="refresh" content="0;url=http://88223100.cnblogs.com"/body/html2.htmlheadmeta http-equiv="Content-Type" content="text/html; charset=gb2312" /title欢迎访问/title/headbody onLoad="parent.location='http://88 阅读全文
摘要:
方法一:防止页面滚动#region"防止页面滚动"publicvoidRetainScrollPosition(System.Web.UI.PagemyPage,stringstrBodyName){StringBuildersaveScrollPosition=newStringBuilder();StringBuildersetScrollPosition=newStringBuilder();myPage.RegisterHiddenField("__SCROLLPOS","0");saveScrollPosition.Append("scriptlanguage='javascrip 阅读全文
摘要:
示例1:以类实现 class Program { static void Main(string[] args) { Test test = new Test("线程调用带参数的方法", "轻松搞定"); Thread thread = new Thread(new ThreadStart(test.Write)); thread.Start(); } } public class Test { private string p1; private string p2; public Test(string par1,string par2) { p1 = par1; p2 = par2; 阅读全文