Flash player to play video online c#

Last Reply 8 days ago By dharmendr

Posted one month ago


using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class videoplay : System.Web.UI.Page
{sqlwebmethod sql= new sqlwebmethod();
    protected void Page_Load(object sender, EventArgs e)
        if (!IsPostBack)

    private void BindGrid()

       grdvideoplay.DataSource = sql.getds("select * from videotable");

    protected void btnupload_Click(object sender, EventArgs e)
        string name = FileUpload1.PostedFile.FileName;
        string ext = System.IO.Path.GetExtension(this.FileUpload1.PostedFile.FileName);
        if (FileUpload1.PostedFile.ContentLength == 0)
            Label1.Text = "Cannot upload zero length file";

        if (ext == ".wmv" || ext == ".flv" || ext == ".avi" || ext == ".mp4" || ext == ".MPEG-4" || ext == ".wma ")

            string location = Server.MapPath(" ") + "\\videos\\" + name;
            //Session["location1"] = loc;
            sql.executesql("insert into videotable(name,videosong_loc)values('"+name+"','"+location+"')");
            Label2.Text = "Video Song uploaded Successfully";
            Label2.Text = "please choose .wmv file";
    video path stored in database. Video uploaded successfully.I want to play video on web but i don't have any flash player now.I want to play video from selection from gridview or dropdownlist. If anybody can help me, i will be thankfull
You are viewing reply posted by: mukesh1 11 days ago.
Posted 11 days ago


Not working these players


I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html