ASP.NET²¥·ÅÊÓÆµÎļþ
///C#ÖеÄýÌå²¥·ÅÀà
using System;
namespace ConfigTools
{
/// <summary>
/// PlayClass µÄժҪ˵Ã÷¡£
///Ô×÷CSDN,¾±¾ÈËÉÔ¼ÓÐÞ¸Ä
/// </summary>
public class PlayClass
{
public PlayClass()
{
//
// TOD ÔÚ´Ë´¦Ìí¼Ó¹¹Ô캯ÊýÂß¼
//
}
public string Play(string url,int width,int height)
{
string strTmp = url.ToLower();
if(strTmp.EndsWith(".wmv")||strTmp.EndsWith(".mp3")||strTmp.EndsWith(".wma")||strTmp.EndsWith(".avi")||strTmp.EndsWith(".asf")||strTmp.EndsWith(".mpg"))
{
return wmv(url,width, height);
}
else if(strTmp.EndsWith(".mp3"))
{
return mp3(url,width,height);
}
else if(strTmp.EndsWith(".swf"))
{
return swf(url,width, height);
}
else if(strTmp.EndsWith(".jpg")||strTmp.EndsWith(".gif"))
{
return img(url,width, height);
}
else if(strTmp.EndsWith(".rm"))
{
return rm(url,width, height);
}
else
{
return "Êý¾Ý´íÎó";
}
}
/// <summary>
/// wmv¸ñʽÎļþ²¥·Å
/// </summary>
/// <param name="url"></param>
/// <returns></returns>
private string wmv(string url, int width, int height)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("<object id=\"WMPlay\" style="\" mce_style="\""WIDTH: "+width+"px;height:"+height+"px\" \n");
sb.Append("classid=\"CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6\" type=application/x-oleobject standby=\"Loading Windows Media Player c
Ïà¹ØÎĵµ£º
×î½üÑо¿ÁËÒ»ÏÂtreeview£¬·¢ÏÖÓÐÁ½ÖÖʵÏÖÎÞÏÞ¼¶Ê÷µÄ·½·¨£¬ÎÄ×Ö²»Ïë¶àд£¬Ö±ÈëÖ÷Ìâ¡£
ÏÈ¿´¿´Ð§¹ûͼ£º
ÏÈ¿´¿´Êý¾Ý¿â±íµÄÉè¼Æ£¬Êý¾Ý±íÖ÷Òª°üÀ¨ID£¬Name£¬ParentIDÕâÈýÏÆäÖÐIDÊÇÖ÷¼ü£¬ParentID¶ÔÓ¦½ÚµãµÄ¸¸½Úµã£º
·½·¨Ò»£ºÓõݹé±éÀúÊý¾Ý£¬²¢½«½ÚµãÖð¸öÌí¼Óµ½treeviewÖÐÈ¥¡£
1.ÏȽøÐÐÊý¾Ý¿âÁ¬½ÓºÍÊý¾ÝµÄ¶ÁÈ¡£¬²¢½«¸ù½Ú ......
ÔÚÉÏһƪ²©ÎÄ¡¶asp.netÖеÄÉí·ÝÑéÖ¤£¨×î¼òµ¥Æª£©¡·ÖеÄÉí·ÝÑéÖ¤ËäÈ»ºÜ¼òµ¥£¬µ«ÊÇÓÐÒ»¸öȱµã£¬¾ÍÊÇ·ÃÎÊÕû¸öÍøÕ¾¶¼±ØÐëÒª¾¹ýÉí·ÝÑéÖ¤£¬¶øÊÂʵÉÏ£¬ºÜ¶àÍøÕ¾¶¼²»»áÕâôҪÇóµÄ¡£
±ÈÈçÒ»¸öÐÂÎÅϵͳ£¬Í¨³£Ö»ÓÐÔÚ·¢²¼ÐÂÎŵÄÍøÒ³²ÅÐèÒªÉí·ÝÑéÖ¤£¬¶øÓû§ä¯ÀÀÐÂÎÅÊDz»ÐèÒªÉí·ÝÑéÖ¤µÄ¡£¶ÔÓÚÕâÖÖÇé¿ö£¬¾ÍÒªÕë¶Ô²»Í¬µÄÍøÒ³À´½øÐÐÉí·ÝÑé ......
Asp.netÖеÄÈÕÆÚ´¦Àíº¯Êý
//2009Äê4ÔÂ24ÈÕ
this.TextBox6.Text = System.DateTime.Now.ToString("D");
//2009-4-24
this.TextBox7.Text = System.DateTime.Now.ToString("d");
//2009Äê4ÔÂ24ÈÕ 16:30:15
this.TextBox8.Text = System.DateTime.Now.ToString("F");
//2009Äê4ÔÂ24ÈÕ 16:30
this.TextBox9.Text ......
×î½üÐèÒªÒ»¸öasp.netϵÄÍøÒ³±à¼Æ÷£¬¾¹ý¼¸ÌìµÄ²éÕÒÓëÕûÀí£¬ÖÕÓÚ½«Ö÷ÒªµÄ¼¸¸ö±à¼Æ÷ÕÒÆë£¬×Ô¼ºÓùýºó£¬×ÜÖÕһϡ£
1¡¢ Cuteeditordemo£º¹¦ÄÜ×îÇ¿´óµÄÓ¦¸ÃÊÇÕâ¸ö±à¼Æ÷ÁË£¬µ«ÊÇÕâ¸ö±à¼Æ÷±È½ÏµÄ´ó£¬ÓÐ5MB¶à£¬Í¬Ê±ÔËÐÐÆðÀ´ËÙ¶È·½ÃæÒ²±È½ÏµÄÂý¡£ÔÚʵ¼ÊµÄʹÓÃÖУ¬¹úÄÚʹÓõÄÈ˲¢²»¶à£¬¶øÇÒÊÇÓ¢ÎİæµÄ¡£Ç¿ÄÜÊÇ×îÇ¿´ó£¬µ ......
ÏÈ¿´¿´ASP.NETÒ³ÃæË¢ÐµÄʵÏÖ·½·¨£º
µÚÒ»£º
C# code
private void Button1_Click( object sender, System.EventArgs e )
{
Response.Redirect( Request.Url.ToString( ) );
}
µÚ¶þ£º
C# code
private void Button2_Click( object sender, System.EventArgs e )
{
Response.Write( " < script lang ......