Gridview自动生成文本框列且赋值
摘要:/*************************************************************************** Page/Class Name : BlackCleanPeopleQty.cs* Title : 黑料-洗净包装作业人数维护* @author : Garry* Create Date : 2012/04/16* Last Modifier : * Last Modify Date : * TABLE : ********************************************************************
阅读全文
posted @
2012-04-21 10:57
枫叶一帆
阅读(597)
推荐(0)
加载中提示
摘要:----前台<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm38.aspx.cs" Inherits="WebApplication2.WebForm38" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona
阅读全文
posted @
2012-04-20 21:22
枫叶一帆
阅读(204)
推荐(0)
log 方法
摘要:void Application_Error(object sender, EventArgs e) { // 在出现未处理的错误时运行的代码 string Message = string.Empty; Message = "Url" + Request.Path + Server.GetLastError().ToString(); //不存在 就建立資料夾 預設 C:\\Trioptics string sPath = @"C:\\MGSLog"; if (!Directory.Exists(sPath)) { Directory.CreateDi
阅读全文
posted @
2012-04-20 21:20
枫叶一帆
阅读(356)
推荐(0)
DataTable To Json
摘要:using System.Collections.Generic;using System.Data;using System.Text;using System.IO;using Newtonsoft.Json;namespace MatchGroupSystem.Common{ public class JsonMethods { public static string datatableToJSON(DataTable dt) { StringBuilder jsonStringBuilder = new StringBuilder(); StringWriter jsonString
阅读全文
posted @
2012-04-20 21:13
枫叶一帆
阅读(255)
推荐(0)
刷新时滚动条保留位置
摘要:前台<script type="text/javascript"> //刷新时滚动条保留位置 function ScrollToSelectNode() { document.getElementById("left").scrollTop = "<%=ScrollValue%>"; } function bindData() { document.getElementById("divScrollValue").value = document.getElementById("l
阅读全文
posted @
2012-04-20 21:07
枫叶一帆
阅读(615)
推荐(0)
VS常用的几种技巧
摘要:1. 打开新的窗口并传送参数: 传送参数: response.write("<script>window.open(’*.ASPx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 复制代码接收参数: string a = Request.QueryString("id"); string b = Request.QueryString("id1"); 复制代码2.为按钮添加对话框 Button1.Attribu
阅读全文
posted @
2012-04-20 21:04
枫叶一帆
阅读(722)
推荐(0)