This does not look valid to me, trying to assign the url from the query string.
You redirect to "Videos.aspx" using this line:
Response.Redirect("Videos.aspx?VideoURL=" + ((ImageButton)sender).ImageUrl);
In the
Page_Load
(or the suitable page method as per your need) of "Videos.aspx", you can check the query string and assign it to the custom control?
protected void Page_Load(object sender, EventArgs e)
{
var url = Request.QueryString["VideoURL"];
if (!string.IsNullOrEmpty(url))
{
VideoPlayer1.Mp4Url = url;
}
}
The <%# .. %> format should be used for "data-binding" and this is not a suitable case for data binding. For example, you could use this in a grid view to bind the value of a property to a grid view column.