- 浏览: 139332 次
- 性别:
- 来自: 上海
-
最新评论
文章列表
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Response.ContentType = "text/xml";//设置返回类型
Response.Charset = "UTF-8";//设置编码
Response.Write("<?xml version=\"1.0\" encodi ...
protected void init()
{
HttpCookie ck = Request.Cookies["yao"];
if (ck == null)
{
ck = new HttpCookie("yao");
ck.Value = DateTime.Now.ToString();
ck.Expires = DateTime.Now.AddSeconds(30);//设置有效期是30秒
...
首先下载FCKEditor插件
下载网址:http://www.fckeditor.com/
这路需要下载2种文件
1.下载FCKeditor_2.6.6,fckeditor应用程序相关文件。
2.下载FCKeditor.Net_2.6.3,asp.net程序需要的dll文件。
然后创建一个web项目,将下载压缩文件解压。将fckeditor ...
首先a页面
<html>
<head>
<title>无标题文档</title>
<script type="text/javascript">
function aa ()
{
//window.window.showModelDialog('bb.html',window,'width=400,height=100,menubar=no,toolbar=no, location=no,
//directories=no,status=no,scrollbars=yes,resizabl ...
AspNetPager分页样式
AspNetPager分页样式的使用
CSS代码:
.anpager .cpb {background:#1F3A87 none repeat scroll 0 0;border:1px solid #CCCCCC;color:#FFFFFF;font-weight:bold;margin:5px 4px 0 0;padding:4px 5px 0;}
.anpager a {background:#FFFFFF none repeat scroll 0 0;border:1px solid #CCCCCC;color:#1F3A87; ...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC ...
<!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; c ...
使用.net属性进行静态方法的同步本文介绍使用.net得Synchronized属性实现线程的同步.Synchronized毋庸置疑,可以方便的实现instance level的方法同步,但是是否同样适用于static方法呢?本文写了下面的代码进行验证。结果令人满意,确实可以实现静态方法的同步。
[MethodImpl(MethodImplOptions.Synchronized)]
public static bool AppJobDelete(int id)
{
bool flag = true;
try
{
...
<script type="text/javascript"><!--window.open ('test.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')//必须写成一行--></script>
参数解释:window.open 弹出新窗口的命令;test.html 弹出窗口的文件名;newwindow 弹出窗口 ...
<!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; char ...
如果在一台机器上运行者同一种数据库的不同版本,比如说在”SMSI-SHIRLLY”这台主机上同时运行着SQL 2000、SQL 2005和SQL Express三种版本,并且它们所使用的Windows服务名分别为”SQL2000”、”SQL2005”和”SQLExpress”,那么我们要连接到SQL 2000这个数据库上所使用的服务器名就应该填写”SMSI-SHIRLLY\SQL2000”这种“主机名\实例名”的方式或者“主机IP\实例名”,
From:http://shirlly.iteye.com/blog/426817
我曾为这个问题苦恼了很久啊,半天时间没有做别的,唉!!!
今天在用远程连接Mysql服务器的数据库,不管怎么弄都是连接不到,错误代码是1130,ERROR 1130: Host 192.168.2.159 is not allowed to connect to this MySQL server 猜想是无法给远程连接的用户权限问题。结果这样子操作mysql库,即可解决。在本机登入mysql后,更改 “mysql” 数据库里的 “user” 表里的 “host” 项,从”localhost”改称'%'。。mysql -u root -pmysql>use mysql;mysql>select 'host' from user where u ...
判断是否是ie:
var isIE = 0/*@cc_on+1@*/;
<script type="text/javascript">
<!--
if(document.addEventListener){//如果是Firefox
document.addEventListener("keypress",fireFoxHandler, true);
}else{
document.attachEvent("onkeypress",ieHand ...
$(window).keyup(function(event){ if(event.keyCode == 13) { $("#1009100").click(); } });
1.
$("#input_id").keydown(function(event){ event.keyCode==13 && $("input[@type='submit']")[0].click(); })
2.
在input框的keydo ...
<body onkeydown="if (event.keyCode==13) {document.all.button2.click()}">
下面的五种方法都可以帮你解决这种问题1.<script language=javascript>function document.onkeydown(){ if (event.keyCode == 13) { if (event.srcElement == document.getElementById('<%=txtEmpCode.ClientI ...