·þÎñÆ÷¶Ëjavascriptµ¯³ö¶Ô»°¿òºÍÎļþ¡¢Ä¿Â¼²Ù×÷
//·þÎñÆ÷µ¯³ö¶Ô»°¿ò
if (lcSID == "1" && (txtNsp.Text.Trim() != lcNewspaper || Convert.ToDateTime(txtNspdate.Text.Trim()) != Convert.ToDateTime(lcNspdate)))
{
string lcJs = "var varname = window.confirm(\"Êý¾Ý²»Ò»Ö£¬ÏµÍ³¼Ç¼±¨Ö½ÊÇ " + ViewState["lcNewspaper"].ToString() + ",ʱ¼äÊÇ" + ViewState["lcNspdate"].ToString() +"\\n\\n\\nÊÇ·ñ±¨¸æ´íÎ󣿓ȷÈÏ”Ìá½»±¨¸æ²¢Í¨ÖªÖ÷¹Ü£¬“È¡Ïû”ÖØÐ¼Èë\"); if (varname==true) {window.location='y_pdfcode5.aspx?MID=" + lcMID + "';};";
lcJs = "<script>" + lcJs + "</script>";
ClientScript.RegisterStartupScript(this.GetType(), "clear", lcJs);
return;
}
//·þÎñÆ÷¶Ë¸´ÖÆÎļþ
if (File.Exists(path + "\\" + txtSoawp.Text.Trim() + ".pdf") == true)
{
//File.Copy(Server.MapPath("±»¸´ÖƵÄÎļþÏà¶Ô·¾¶"), Server.MapPath("Ä¿µÄλÖÃÏà¶Ô·¾¶"), true);
File.Copy(@"c:\tmp\1.pdf", path + "\\" + txtSoawp.Text.Trim() + ".pdf", true);
}
else
{
File.Move
Ïà¹ØÎĵµ£º
http://www.cnblogs.com/webgis8/articles/1516639.html
¼¸¸ö¿ªÔ´JavascriptͼÐοâ
ÒòΪGoogle MapÏîÄ¿µÄÐèÒª,×î½üÒ»Ö±ÔÚѰÇóÏà¹ØµÄJavascriptͼÐοâ,ÔÚ³¢ÊÔÓÃGoogle Map
APIÌṩµÄjavascript½Ó¿Ú»æÍ¼Ê±·¢ÏÖÆäЧ¹ûºÍЧÂʶ¼²»Ì«ÀíÏë,ͬʱҲÓùýjsgraphics¿â,Ò²²»ÊǺܺÃ.ÓÖÔÚÍøÉÏÕÒµ½ÁËÏÂÃæ¼¸¸ö.
mxGraph
......
JavaScript ECMAScriptÊÇÕâ¸ö½Å±¾ÓïÑԵıê×¼»¯°æ±¾¡£ ScriptÔªËØ£º ÔÚHTML´úÂëÖÐÌí¼ÓJavaScript´úÂë Ò²¿ÉÒ԰ѽű¾´úÂë·ÅÔ ......
// s_id1: selectµÄid
var objSelect = document.getElementById(”s_id1”);
//»ñµÃË÷Òý
var indexSelect = objSelect .selectedIndex;
//»ñµÃselectÎı¾
var txtSelect = objSelect .options[index].text;
//»ñµÃselectÖµ
var valSelect = objSelect .options[index].value;
//¸Ä±äselect ......
ÔÚprototype¿ò¼ÜÖеÄÀà¼Ì³ÐʵÏÖ»úÖÆ
//ΪObjectÀàÌí¼Ó¾²Ì¬·½·¨£ºextend
Object.extend = function(destination, source) {
for(property in source) {
destination[property] = source[property];
}
return destination;
}
//ͨ¹ýObjectÀàΪÿ¸ö¶ÔÏóÌí¼Ó·½·¨ ......