枫叶一帆
分享你我的学习心得....
摘要: <!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><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文
posted @ 2012-04-20 22:06 枫叶一帆 阅读(360) 评论(0) 推荐(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 枫叶一帆 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 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 枫叶一帆 阅读(347) 评论(0) 推荐(0) 编辑
摘要: set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgo-- =============================================-- Author:Garry-- Create date: 2012-01-16-- Description:查詢人員離歸崗報表-- =============================================-- EXEC [spPersonOnAndOffPost] '2012-1-15 10:00:00','2012-1-17 23:00:00'CREATE P 阅读全文
posted @ 2012-04-20 21:18 枫叶一帆 阅读(2259) 评论(0) 推荐(0) 编辑
摘要: 一、查看有哪些表被锁住select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where b.object_id = a.object_id; select b.username,b.sid,b.serial#,logon_time from v$locked_object a,v$session b where a.session_id = b.sid order by b.logon_time;杀进程中的会话alter system kill session & 阅读全文
posted @ 2012-04-20 21:16 枫叶一帆 阅读(347) 评论(1) 推荐(0) 编辑
摘要: 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 枫叶一帆 阅读(246) 评论(0) 推荐(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 枫叶一帆 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 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 枫叶一帆 阅读(708) 评论(0) 推荐(0) 编辑