上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 手动恢复出现如下错误:the backup set holds a backup of a database other than the existing database. Restore database is terminating abnormally那就用强制回复。从文件swlicense.bak中,将数据及表结构恢复到一个新的数据库SWLicManitenance中。RESTORE FILELISTONLY FROM DISK='D:\PanShengbo\swLicense.bak'RESTORE DATABASE SWLicMaintenance FROM D 阅读全文
posted @ 2012-12-18 11:32 Black Bean 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 一。压缩文件,生成文件流using System;using System.Collections.Generic;using System.Text;using System.IO;using ICSharpCode.SharpZipLib.Zip;using ICSharpCode.SharpZipLib.Core;namespace TimeInterval{ public class ZipFileBuilder : IDisposable { private bool disposed = false; ZipOutputStream zipS... 阅读全文
posted @ 2012-11-08 11:27 Black Bean 阅读(505) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="DynamicGridView.aspx.cs" Inherits="DynamicGridView" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"& 阅读全文
posted @ 2012-10-24 11:48 Black Bean 阅读(1109) 评论(0) 推荐(0) 编辑
摘要: 错误信息:Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callb 阅读全文
posted @ 2012-10-22 17:28 Black Bean 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 在GridView中增加几个按钮:<asp:ButtonField Text="SingleClick" CommandName="SingleClick" Visible="False" /> LinkButton _singleClickButton = (LinkButton)e.Row.Cells[0].Controls[0]; // 返回一个字符串,表示对包含目标控件的 ID 和事件参数的回发函数的 JavaScript 调用 string _jsSingle = ClientScript.GetPostBack 阅读全文
posted @ 2012-10-17 09:58 Black Bean 阅读(155) 评论(0) 推荐(0) 编辑
摘要: $.post("../URL.ashx", { Parameter1:Parameter1 Value,Parameter2:Parameter2 Value}, function(data){ $("#<%=txtFieldValue.ClientID %>").val(data);//处理返回信息});http handler URL.ashx文件中:context.Response.ContentType = "text/plain"获取传递的参数context.Request("Parameter1&qu 阅读全文
posted @ 2012-10-16 10:12 Black Bean 阅读(184) 评论(0) 推荐(0) 编辑
摘要: if(!document.all){ document.all = function(id) { var all = document.getElementsByTagName("*"); var results = new Array(); for(var i = 0; i < all.length; i++) { if(all[i].id == id) { results.push(all[i]); } } return results; }} var b = document.all("a");alert(b.length);firefox下 阅读全文
posted @ 2012-09-18 09:29 Black Bean 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 如今web2.0炒的很厉害,先不去管它web2.0究竟是什么东西,反正div+css好像是火的不行了.各大知名站点都赶时髦似的把原来的表格布局翻 新成了div+css,并美其名曰"本站符合w3c标准",以便让别人觉得他们的网站用的是最先进的技术.div布局真有那么先进么?这个问题仍在争论之 中.在这里咱们不参与这种无聊的争论,学会它自己感觉一下不就清楚了么? 实际上div布局并不是什么高深的东西,如果你知道一点css就变得更简单了.首先我要说明几点: 1.这里的div并不是我们所说的层,虽然他们的标签都是<div>,在这里你可以把div理解成一个容器,它可以放文 阅读全文
posted @ 2012-09-14 14:33 Black Bean 阅读(240) 评论(0) 推荐(0) 编辑
摘要: query取得iframe中元素的几种方法在iframe子页面获取父页面元素代码如下:$('#objId', parent.document);// 搞定...在父页面 获取iframe子页面的元素代码如下:$("#objid",document.frames('iframename').document)显示iframe中body元素的内容。$(document.getElementById('iframeId').contentWindow.document.body).html()$("#testId" 阅读全文
posted @ 2012-09-11 17:59 Black Bean 阅读(1419) 评论(0) 推荐(1) 编辑
摘要: "window.location.href"、"location.href"是本页面跳转"parent.location.href"是上一层页面跳转"top.location.href"是最外层的页面跳转举例说明:如果A,B,C,D都是jsp,D是C的iframe,C是B的iframe,B是A的iframe,如果D中js这样写 "window.location.href"、"location.href":D页面跳转"parent.location.href" 阅读全文
posted @ 2012-09-11 11:41 Black Bean 阅读(299) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页