////////服务页面Server.aspx/////////////////////
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient ;
using MAXWEB.func ;
namespace MAXWEB.temp.NewFolder1
{
public partial class Server : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["searchText"] != null)
{
if (Request.QueryString["searchText"].ToString().Trim().Length > 0)
{
SQLAction sqlac = new SQLAction();
string sqltxt="";
sqltxt = "Select distinct top 10 PRTNUM From ZC_PRTMST Where PRTNUM like '" + Request.QueryString["searchText"].ToString() + "%'";
DataTable dt = sqlac.GetDS(sqltxt).Tables[0];
string returnText = "";
if (dt != null && dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
returnText += dt.Rows[i][0].ToString() + "\n";
}
}
var div_index;
div_index = -1; //全局变量
var str_target_id;
var str_DropUp_id;
var str_value_id;
var div_sel_value; //选择的值
div_sel_value = "";
var div_mouseover;
div_mouseover = false;
// js 得到网页中控件绝对位置2010-07-12 12:01
function getAbsoluteLeft(ob) {
if (!ob) { return null; }
var mendingOb = ob;
var mendingLeft = mendingOb.offsetLeft;
mendingOb = mendingOb.offsetParent;
while (mendingOb != null) {
// mendingLeft += mendingOb .offsetParent.offsetLeft;
mendingLeft += mendingOb.offsetLeft;
mendingOb = mendingOb.offsetParent;
}
return mendingLeft;
}
// get absolute TOP position
function getAbsoluteTop(ob) {
if (!ob) { return null; }
var mendingOb = ob;
var mendingTop = mendingOb.offsetTop;
//while( mendingOb != null && mendingOb .offsetParent != null && mendingOb .offsetParent.tagName != "BODY" ){
mendingOb = mendingOb.offsetParent;
while (mendingOb != null) {
mendingTop += mendingOb.offsetTop;
mendingOb = mendingOb.offsetParent;
}
return mendingTop;
}
//检查控件是否可见
function checkobjvisual(e) {
var objvis = false;
if (e) {
if (e.offsetHeight > 0) {
objvis = true;
}
if (e.offsetTop > 0) {
objvis = true;
}
if (e.readOnly == true) {
objvis = false;
}
}
return objvis;
}
function focunext(next_id) {
var code;
if (!e) {
var e = window.event;
}
if (e.keyCode) {
code = e.keyCode;
}
else if (e.which) {
code = e.which;
}
if (code == 13) {
if (next_id)
{document.getElementById(next_id).focus(); }
else {
var inputList = document.getElementsByTagName("input");
// 循坏这个集合,包括了所有的input。
var nextindex;
nextindex = -1;
for (i = 0; i < inputList.length; i++) {
if (inputList[i] == document.activeElement) {
var acobj = document.activeElement;
nextindex = i + 1;
while ((!checkobjvisual(inputList[nextindex])) && (nextindex <= inputList.length)) {
nextindex = nextindex + 1;
}
if (inputList[nextindex]) inputList[nextindex].focus();
break;
}
}
}
}
}
document.onkeydown = function(e) {
var code;
if (!e) {
var e = window.event;
}
if (e.keyCode) {
code = e.keyCode;
}
else if (e.which) {
code = e.which;
}
if (code == 8) {
if (document.activeElement.readOnly == true || document.activeElement.disabled == true)
{ return false; }
}
1.java.util.Timer.schedule(TimerTask task, long delay):多长时间(毫秒)后执行任务
2.java.util.Timer.schedule(TimerTask task, Date time):设定某个时间执行任务
3.java.util.Timer.schedule(TimerTask task, long delay,longperiod
java.lang.UnsupportedClassVersionError: cn/support/cache/CacheType : Unsupported major.minor version 51.0 (unable to load class cn.support.cache.CacheType)
at org.apache.catalina.loader.WebappClassL
昨天发了一个提问,启动5个线程将一个List中的内容,然后将5个线程的内容拼接起来,由于时间比较急迫,自己就写了一个Demo,希望对菜鸟有参考意义。。
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;
public c
select list.listname, list.createtime,listcount from dream_list as list , (select listid,count(listid) as listcount from dream_list_user group by listid order by count(
此文转自IBM.
Apache 服务简介
Web 服务器也称为 WWW 服务器或 HTTP 服务器 (HTTP Server),它是 Internet 上最常见也是使用最频繁的服务器之一,Web 服务器能够为用户提供网页浏览、论坛访问等等服务。
由于用户在通过 Web 浏览器访问信息资源的过程中,无须再关心一些技术性的细节,而且界面非常友好,因而 Web 在 Internet 上一推出就得到
1) I love you not because of who you are, but because of who I am when I am with you. 我爱你,不是因为你是一个怎样的人,而是因为我喜欢与你在一起时的感觉。 2) No man or woman is worth your tears, and the one who is, won‘t