asp.net½áºÏhtml£¬javascriptʵÏÖÎÞˢпçÓòÊý¾ÝÌá½»
ÐèÇó£º
AÓòÓÐÒ³Ãæa.html£¬ÆäÖÐÓÐiframe°üº¬BÓòµÄÒ³Ãæb.html£¬ÏÖÔÚҪͨ¹ýa.htmlÉϵÄÒ»¸ö°´Å¥£¬À´°Ña.htmlÒ³ÃæÉÏÒ»¸öÎı¾¿òµÄÖµ´«µÝµ½b.htmlÒ³ÃæµÄÎı¾¿ò¡£
×¢£ºÕâÀïb.htmlÊÇhtmlÍøÒ³£¬²»ÄܽÓÊÕÆäËûÍøÕ¾post¹ýÀ´µÄÖµ£¬ËùÒÔ²»ÄÜÓÃÖ±½ÓpostµÄ·½·¨À´´«Öµ£¬µ«ÊÇ£¬Èç¹û½ÓÊÕÒ³ÃæÊÇb.aspx»òÕßb.asp ÄØ£¬ÄDz»ÊÇ¿ÉÒÔÖ±½ÓpostÁËô£¿´ð°¸Êǿ϶¨µÄ£¬È·Êµ¿ÉÒÔ£¬µ«ÊÇb.asp»òb.aspx±ØÐëҪˢУ¬²Å¿ÉÒÔ£¬ÈçºÎÄܲ»Ë¢ÐµĶ¯Ì¬¸Ä±ä½ÓÊÕÒ³µÄÔªËØ»òÕßÖµÄØ£¿£¨IEµÄ±¾µØÏîÄ¿ÊÇ¿ÉÒÔʵÏÖ¿çÓò·ÃÎʵģ¬µ«ÊÇÍâÍøµÄ¿çÓò·ÃÎÊĬÈÏÊDZ»¾Ü¾øµÄ¡£FireFox±¾µØÏîÄ¿ÒÔ¼°ÍâÍøµÄ¿çÓò·ÃÎʶ¼ÊDZ»¾Ü¾øµÄ¡££©
ÔÀí£º
ä¯ÀÀÆ÷½ûÖ¹¿çÓòÊý¾Ý·ÃÎÊ£¬µ«ÊÇä¯ÀÀÆ÷²¢Ã»ÓнûÖ¹¿çÓò¿ç¿ò¼ÜµÄpost´«Öµ¡£ÎÒÃÇ¿ÉÒÔÔÚAÓò£¬postµ½BÓòµÄij¸öÒ³ÃæµÄ¿ò¼ÜÖУ¬È»ºóͨ¹ýBÓòµÄ¿ò¼ÜÒ³À´ÊµÏÖ±¾ÓòÄÚµÄÊý¾Ý·ÃÎÊ¡£ÕâÆäʵÊÇhtmlÓ¦ÓÃÖеÄÒ»¸öС¼¼ÇÉ£¬²¢Ã»ÓÐÓõ½ÆäËû¸ßÉîµÄ֪ʶ¾ÍʵÏÖÁË¿çÓòµÄÊý¾ÝÌá½»¡£
·½·¨£º
ÔÚBÓòÖÐÌí¼ÓÁ½¸öÒ³Ã棬À´ÊµÏÖ¿çÓòµÄÊý¾Ý·ÃÎÊ£¬post.aspxºÍmain.aspx¡£
Ò³Ãæ¹ØϵÈçÏ£¬AÓòµÄa.html°üº¬Ò»¸ö¿ò¼Ü£¬¿ò¼ÜÒ³µØÖ·ÊÇBÓòµÄmain.aspx£¬main.aspxÊÇÒ»¸ö¿ò¼Ü¼¯°üº¬Á½¸ö¿ò¼Ü£¬(frmMain)b.html ºÍ(frmPost)post.aspx.
AÓòµÄa.html£º
<form action="http://www.b**.com/post.aspx" method="post" target="frmPost">
<input id="cmd" type="text" size="20">
<input type="submit">
</form>
<iframe src="http://www.b**.com/main.aspx"></iframe>
BÓòµÄmain.aspx£º
<frameset rows="*,0" frameborder="no" border="0" framespacing="0">
<frame src="b.html" name="frmMain">
<frame src="post.aspx" name="frmPost">
</frameset>
ÎÒÃÇÏÈ°ÑÒª´«µÝµ½BÓòµÄÊý¾Ý±£´æµ½a.htmlµÄformÖУ¬È»ºópostµ½BÓòµÄpost.aspx.
Õâʱpost.aspx½ÓÊÕµ½Öµ£¬È»ºóÖ´Ðб¾ÓòÄڵĸ¸¿ò¼Ü·ÃÎÊb.html¡£
string cmd = Request.Form["cmd"];
if (null != cmd && string.Empty != cmd)
{
Response.Write("<script language=\"JavaScript\" for=\"window\" event=\"onload\"> if (parent && parent.frames[\"frmMain\"]) { ÕâÀïÌí¼Ó¿ØÖÆb.htmlµÄÖ´ÐдúÂë} </script> ");
}
²»ÄÑ·¢ÏÖ£¬ÕâÀïÀûÓÃÌøÔ¾¿çframe£¨¼´ÖмäÔ¾¹ýÁËÒ»²ãframe£©µÄ·½·¨£¬À´ÊµÏÖ¿çÓòµÄÊý¾Ý·ÃÎÊ¡£¼´postµ½frameµÄ×ÓframeÀ
Ïà¹ØÎĵµ£º
±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔÀ´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷ÔÒò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......
/**
* ±í¸ñÅÅÐò(µ¥¸ö±í¸ñ£¬½µÐò)
* @example
* <code>
* <table is_sort="1">
* <tr>
* <th><a href="javascript:void(0)" mce_href="javascript:void(0)" onclick="table_sort(0, 0)">field1</a></th>
* <th><a href="javascript:void(0)" mce_href ......
<a href="javascript:;"
onClick="javascript:window.open('admin_fk.asp?id=')"> ÎÄ×Ö²¿·Ö</a>
<a href="#"onclick="del(id)">ɾ³ý</a>»á³öÏÖ²»Õý³£Ìøת£¬½«
#¸Ä³Éjavascript:void(0)¾Í¿ÉÒÔÁË
££°üº¬ÁËÒ»¸öλÖÃÐÅÏ¢
ĬÈϵÄêµãÊÇ££top Ò²¾ÍÊÇÍø ......
<script language="javascript">
var o = document.body;
//´´½¨±í¸ñ
function createTable(w,h,r,c)
{
var table = document.createElement("table");
var tbody = document.createElement("tbody");
table.width = w;
table.height = h;
table.border = 1;
for(var i=1;i<=r; ......
SQL½Å±¾£º
CREATE TABLE tblBooksUpload
(
¡¡DocID int NOT NULL IDENTITY Primary Key ,
¡¡DocTitle varchar (200) ,
¡¡Doc image,
¡¡DocType varchar (50) ,
¡¡Entrydate datetime Default GetDate()
)
Ê×ÏÈÎÒÃÇҪʵÏÖÓû§ÔÚä¯ÀÀÆ÷¶Ë×ÔÓÉÑ¡ÔñÎļþ£¬È»ºóÉÏ´«£¬ÕâÀïÓû§Ñ¡ÔñÎļþ£¬µ±È»ÊÇÒªÇó±ê×¼µÄWindows·½Ê½£ ......