¸ß·ÖÇó¸ßÊÖ¸ø½âÊÍÒ»¶Îasp´úÂë - Web ¿ª·¢ / ASP
Çó¸ßÊÖ¸ø½âÊÍÒ»¶Îasp´úÂ룬ÈçÏ£º
ÀïÃæÄÇЩnameµÄÖµ¶¼²»ÖªµÀ´ú±íµÄʲôÒâ˼£¬strurlÊÇÖ¸µÄÊý¾Ý¿âÀïµÄ×Ö¶ÎÂð£¿
ÄÇôCall SelPlay("video/3D_1.wmv",280,220)ÒѾÓз¾¶ÁË£¬ÎªºÎ»¹ÒªÔÚÇ°ÃæÉèÖ÷ţ¿Á½ÕßÓкβ»Í¬£¿
×îºÃÊÇÏêϸһµã£¬±¾ÈËÐÂÊÖ£¬Ð»Ð»£¡£¡~~
ÁíÍâÈç¹ûÎÒÏë°Ñ²¥·ÅÆ÷ÖеÄǰ½øºóÍ˰´Å¥ºÍ²¥·Å½ø¶ÈÌõÈ¥µô£¬Ó¦¸ÃÔõô¸Ä£¿
<%
Sub SelPlay(strUrl,strWidth,StrHeight) 'strurlÊÓÆµÎļþµÄ·¾¶£¬strwidth ¿í¶È£¬strheight ¸ß¶È
Dim Exts,isExt
If strUrl <> "" Then
isExt = LCase(Mid(strUrl,InStrRev(strUrl, ".")+1))
Else
isExt = ""
End If
Exts = "avi,wmv,asf,mov,rm,ra,ram"
If Instr(Exts,isExt)=0 Then
Response.write "·Ç·¨ÊÓÆµÎļþ"
Else
Select Case isExt
Case "avi","wmv","asf","mov"
Response.write " <EMBED id=MediaPlayer src="&strUrl&" width="&strWidth&" height="&strHeight&" loop=""false"" autostart=""true""> </EMBED>"
Case "mov","rm","ra","ram"
Response.Write " <OBJECT height="&strHeight&" width="&strWidth&" classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFB
Ïà¹ØÎÊ´ð£º
ÍòÍøµÄ·þÎñÆ÷Ö§³Öα¾²Ì¬µÄ,Ö±½ÓÓÃrewriteÔÚweb.configÎļþд¹æÔò,Ò²²»Óð²×°×é¼þ¾Í¿ÉÒÔʵÏÖα¾²Ì¬,µ«ÊÇÔÚʱ´ú»¥Áª·þÎñÆ÷¾ÍÓò»ÁËÁË,×ÉѯËüµÄ¿Í·þ,Ëû˵ËûÃÇ·þÎñÆ÷(»ù±¾ÐÍC)²»Ö§³Öα¾²Ì¬µÄ.ÇëÎÊһϸ÷λÎÒ¸ÃÓÃʲô·½·¨ ......
ÔõÑù½«ASP³ÌÐòת»»Îª.NET³ÌÐò ?
ÕÒ¸öÈ«²Å·Òë¡£
ÊÖ¶¯È¥Ð´
¸Ð¾õд¹ýaspµÄ£¬À´Ð´asp.net£¬ÉÏÊÖÓ¦¸Ã¿ìµã¡£
¸üÄÜÀí½âasp.netµÄһЩÄÚ²¿¼¼Êõ
asp.net¶¼±»·â×°ÁË
ÎÒÊÇ×ö.NetµÄ£¬¶ÔASPһֱû½Ó´¥µ½£¬ºÜİÉú¡£
¹« ......
C# code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Runtime.InteropServices;
nam ......
¹ØÓÚÍøÕ¾°²È«µÄÎÊÌ⣡
ÎÒÁ˽⵽µÄÍøÕ¾°²È«ÎÊÌâ°üÀ¨£º
sql×¢Èë©¶´ºÍ±©¿â©¶´»¹ÓÐÉÏ´«Â©¶´
³ýÁËÕâЩ»¹ÓÐÆäËûµÄ©¶´Ã´£¿
×¢Èë©¶´¿ÉÒÔͨ¹ý¹ýÂËÀ´·ÀÖ¹
±©¿â©¶´Ôõô·ÀÖ¹
»¹ÓÐÈËÉÏ´«µÄľÂíÊÇ.gif
ÕâÖÖ©¶´Ôõôȥ± ......
O O O O O O
|.......| |........| |.......|
| | |
O O ......