asp.net flashͼƬÂÖ»» ½¹µãͼ ¶¯Ì¬´ÓÊý¾Ý¿â»ñÈ¡
ǰ̨´úÂë
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width='<%=focus_width %>' height='<%=swf_height %>'>
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="../flash/pixviewer.swf" />
<param name="wmode" value="transparent" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="wmode" value="opaque" />
<param name="FlashVars" value="pics=<%=pics %>&links=<%=links %>&texts=<%=texts %>&borderwidth=<%=focus_width %>&borderheight=<%=focus_height %>&textheight=<%=text_height %>" />
<embed src="../falsh/pixviewer.swf" wmode="opaque" FlashVars="pics=<%=pics %>&links=<%=links %>&texts=<%=texts %>&borderwidth=<%=focus_width %>&borderheight=<%=focus_height %>&textheight=<%=text_height %>" menu="false" bgcolor="#DADADA" quality="high" width="<%=focus_width %>" height="<%=swf_height %>" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
ºǫ́´úÂë
public int focus_width = 340;//flashºÍͼƬµÄ¿í
public int focus_height = 310;//
Ïà¹ØÎĵµ£º
c#£¨»òvb.net£©³ÌÐò¸Ä½ø
1¡¢Ê¹ÓÃÖµÀàÐ͵ÄToString·½·¨
¡¡¡¡ÔÚÁ¬½Ó×Ö·û´®Ê±£¬¾³£Ê¹ÓÃ"+"ºÅÖ±½Ó½«Êý×ÖÌí¼Óµ½×Ö·û´®ÖС£ÕâÖÖ·½·¨ËäÈ»¼òµ¥£¬Ò²¿ÉÒԵõ½ÕýÈ·½á¹û£¬µ«ÊÇÓÉÓÚÉæ¼°µ½²»Í¬µÄÊý¾ÝÀàÐÍ£¬Êý×ÖÐèҪͨ¹ý×°Ïä²Ù×÷ת»¯ÎªÒýÓÃÀàÐͲſÉÒÔÌí¼Óµ½×Ö·û´®ÖС£µ«ÊÇ×°Ïä²Ù×÷¶ÔÐÔÄÜÓ°Ïì½Ï´ó£¬ÒòΪÔÚ½øÐÐÕâÀà´¦Àíʱ£¬½«ÔÚÍйܶÑÖÐ ......
Asp.NetÏÂÔØ·½·¨¡¡²Î¿¼
(1) Ê×ÏÈ×ö³ÉÏÂÔØÎļþ¡£
¡£¡£¡£ ¡£¡£¡£
(2) ×ö³ÉÏÂÔØÎļþµÄ·¾¶ÒÔ¼°ÎļþÃûÓÃsession´«µÝ¸ø´ò¿ªÒ³Ãæ
Session["FILE_PATH"] = ·¾¶ + "DownLoadFile.txt";
Session["FILE_NAME"] = "DownLoadFile.txt";
(3) ´ò¿ªÐ ......
Ò³Ã滺´æʹÓÃOutputCacheÖ¸Áî¡£ÆäÖÐDurationºÍVaryByParamÌØÐÔÊDZØÐëµÄ¡£
Location¿ØÖÆÒ³Ã滺´æµÄλÖÃLocationº¬ÒåAnyĬÈÏÖµ¡£Òâζ×ÅÒ³ÃæµÄÊä³ö¿ÉÒÔ»º´æÔÚ¿Í»§¶Ëä¯ÀÀÆ÷£¬»º´æÔÚÈκÎ"ÏÂÓÎ"µÄ¿Í»§¶Ë£¨Èç´úÀí·þÎñÆ÷£©£¬»ò»º´æÔÚWeb·þÎñÆ÷±¾ÉíClientÖ¸Ã÷Êä³ö»º´æÖ»ÄÜ´æ´¢ÔÚ·¢³öÇëÇóµÄ¿Í»§¶Ë£¨¼´ä¯ÀÀÆ÷£©µÄ±¾µØ»º´æÖÐDownstreamÖ ......
0.ÓÃsessionÅжÏÊÇ·ñµÇ½
if(Session["login"] == null)
{
Response.Redirect("error.aspx");
}
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
´«ËͲÎÊý£º
response.write("<script>window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')</s ......
ʹÓÃcscÃüÁ.csÎļþ±àÒë³É.dllµÄ¹ý³Ì
ºÜ¶àʱºò,ÎÒÃÇÐèÒª½«.csÎļþµ¥¶À±àÒë³É.dllÎļþ, ²Ù×÷ÈçÏÂ:
´ò¿ªÃüÁî´°¿Ú->ÊäÈëcmdµ½¿ØÖÆ̨->cd C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
תµ½vs.net°²×°µÄ¸ÃĿ¼ÏÂ->Ö´ÐÐcscÃüÁîcsc /target:library File.cs->ÔÚ¸ÃĿ¼Ï²úÉúÒ»¸ö¶ÔÓ¦Ãû×ÖµÄ.dllÎļþ(Ç°Ìá:°Ñ. ......