易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.NET实现在线播放FLV视频件的代码

ASP.NET实现在线播放FLV视频件的代码
 
前台调用代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1"
runat="server">
   
<title>视频播放</title>
</head>
<body>
    <form
id="form1" runat="server">
    <div>
    <table>
      <tr>
        <td><div id="video_content"
runat="server" style=""></div>     </td>
     
</tr>
    </table>
    </div>
   
</form>
</body>
</html>
后台调用代码
protected void Page_Load(object sender, EventArgs e)
{
        this.video_content.InnerHtml =
PlayMedia.Play("http://hot.tudou.com/flv/005/680/205/5680205.flv",
472,385);
}
视频播放类:
using System;
using System.Collections.Generic;
using
System.Text;
namespace Common
{
    public class PlayMedia
   
{
        public PlayMedia()
        {
            //   
            //   TOD   在此处添加构造函数逻辑   
            //   
       
}
        public static string Play(string url, int width, int
height)
   &


相关文档:

asp.net一夜速成:总结&深入

命名空间:
Socut.Data
//##################### CData 类 #####################
实现功能:读取(DataSet方式),插入,更新,删除,统计
调用方法:
public CData myData=new CData();
实际操作:
1,读取
public DataSet ds=new DataSet(); //此DataSet类已经由微软封装提供
ds=myData.GetDataSet("SELECT * from ......

asp.net定时执行代码

string LogPath;
Thread thread;
void WriteLog()
{
while (true)
{
StreamWriter sw = new StreamWriter(LogPath, true, Encoding.UTF8);
sw.WriteLine(thread.Name + ":" + DateTime.Now.ToString());
sw.Close();
Thr ......

asp.net跳转页面的三种方法比较

1、 response.redirect 这个跳转页面的方法跳转的速度不快,因为它要走2个来回(2次postback),但他可以跳 转到任何页面,没有站点页面限制(即可以由雅虎跳到新浪),同时不能跳过登录保护。但速度慢是其最大缺陷!redirect跳转机制:首先是发送一个http请求到客户端,通知需要跳转到新页面,然后客户端在发送跳转请求到服务器 ......

Asp.Net 301重定向的实现(SEO友好,有利于PR值)

网站的重定向,通常用的有 301 和 302,301是永久重定向,是对SEO友好的,有利于保持原域名和新域名之间的PR转移及流量数据等。
Asp.Net 中实现301重定向的代码,也是比较简单的,举个例子:
原来的域名是 www.abc.com, 现在要将对这个域名的访问,全部重定向到 www.zu14.cn;
只需在 需要转向的页面里,
protected void ......

asp.net连接mysql数据库

Mysql的connector/net5.0下载地址:
http://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-5.0.6.zip/from/pick
安装好以后,
点属性,然后点查找目标,点向上一层目录,找到Binaries\.NET 2.0,然后将这个文件复制到你的工程目录下,一般这样的DLL文件会保存到bin目录下.
在代码页里输入using Mysql.Da ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号