And To Show uploaded Video-
Now Drag and Drop on Gridview on page-
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" xmlns:asp="#unknown">
CellPadding="20" ForeColor="#333333" GridLines="None">
<rowstyle backcolor="#F7F6F3" forecolor="#333333" />
<columns>
<asp:boundfield datafield="video_name" headertext="Video Name" />
<asp:templatefield headertext="Play Video">
<itemtemplate>
<a href="playvideo.aspx?id=<%# Eval(" videosong_loc=") %>">Play Video</a>
</itemtemplate>
</asp:templatefield>
</columns>
<footerstyle backcolor="#5D7B9D" font-bold="True" forecolor="White" />
<pagerstyle backcolor="#284775" forecolor="White" horizontalalign="Center">
Width="500px" />
<selectedrowstyle backcolor="#E2DED6" font-bold="True" forecolor="#333333" />
<headerstyle backcolor="#5D7B9D" font-bold="True" forecolor="White" />
<editrowstyle backcolor="#999999" />
<alternatingrowstyle backcolor="White" forecolor="#284775" />
</pagerstyle></asp:gridview>
and on Page_load(CS Code)
SqlConnection sqlconn = new SqlConnection("server=.\\sqlexpress;database=db;Integrated Security=True");
SqlCommand sqlcomm = new SqlCommand("Show_video", sqlconn);
sqlcomm.CommandType = CommandType.StoredProcedure;
sqlconn.Open();
SqlDataReader dr = sqlcomm.ExecuteReader();
if (dr.HasRows)
{
GridView1.DataSource = dr;
GridView1.DataBind();
sqlconn.Close();
dr.Close();
}
and in gridview u'll See a Play Button when u'll Click on Play then it will Redirect u on play.aspx(Create one page play.aspx and place one label control on it).
<asp:label id="Label1" runat="server" text="Label"></asp:label>
and on CS(on Page_load)-
string play = Request.QueryString["id"];
string strSQL = "select * from videos where videosong_loc='" + play + "'";
SqlConnection sconn = new SqlConnection(@"Data Source=.\sqlexpress;Initial Catalog=db;Integrated Security=True");
SqlCommand scomm = new SqlCommand(strSQL, sconn);
sconn.Open();
SqlDataReader sreader = scomm.ExecuteReader();
if (sreader.Read())
{
string Str = "videos\\" + sreader[1].ToString();
string text = "<embed src="" + Str + "" height="300" width="500"><noembed>Sorry, your browser doesn't support the embedding of multimedia.</noembed></embed>";
Label1.Text = text;
sreader.Close();
sconn.Close();
Follow these codes and use your Mind Shalini Ji :D
Happy Coding :)