please solve this problem.
Code Behind
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
///
/// Created by Himasagar Kutikuppala
///
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
///
/// Play button click event
///
///
///
protected void btnPlayVideo_Click(object sender, EventArgs e)
{
try
{
string himaSagarURL = this.txtURL.Text;
bool isFullSize = false;
this.Literal1.Text = this.Play_Video(himaSagarURL, isFullSize);
}
catch (Exception ex)
{
this.Response.Write(ex.ToString());
}
}
///
/// Play Video method
///
///
///
///
private string Play_Video(string sagarURL, bool isFullSize)
{
string himaSagarObject = "";
sagarURL = sagarURL + "";
sagarURL = sagarURL.Trim();
if (sagarURL.Length > 0)
{ //Continue.
}
else
{
throw new System.ArgumentNullException("sagarURL"); }
string himaSagarWidthAndHeight = "";
if (isFullSize)
{
himaSagarWidthAndHeight = "";
}
else
{
himaSagarWidthAndHeight = "width='640' height='480'";
}
himaSagarObject = himaSagarObject + "";
return himaSagarObject;
}
}
Suthish NairPosted Dec 3, 2010, 1:20 PM
Chiranjeevi,
Are you using two different logins, because i already replied you.
CrishPosted Dec 3, 2010, 4:59 AM
I have same problem.Thanks for giving me this code to solve the issue of display the video file in asp.net using embed tag.Now i will use it in our system.