or
private void RegisterJSOpenLightBox(string urlFile)
{
Type cstype = this.GetType();
string csname = "OpenLightBox";
ClientScriptManager cs = Page.ClientScript;
if (!cs.IsClientScriptBlockRegistered(cstype, csname))
{
StringBuilder cstext2 = new StringBuilder();
cstext2.Append("<
script
type=\"text/javascript\">");
cstext2.Append("window.onload=function(e){");
//cstext2.Append("window.load=function(e){");
cstext2.Append("openLightboxPlayer('" + urlFile + "');");
cstext2.Append("}</
script
>");
cs.RegisterClientScriptBlock(cstype, "OpenLightBox", cstext2.ToString());
}
}
function openLightboxPlayer(url) {
var player = document.getElementById("AudioPlayer");
player.src = url ;
player.preload = "auto";
// var lightBoxPlayer = $find('<= LightBoxPlayer.ClientID %>');
// lightBoxPlayer.show();
var lightBoxPlayer2 = $find('LightBoxPlayer').show();
lightBoxPlayer2.show();
return false;
}
<
telerik:RadLightBox
ClientIDMode
=
"Static"
ID
=
"LightBoxPlayer"
Width
=
"500"
Font-Size
=
"Medium"
runat
=
"server"
Modal
=
"true"
PreserveCurrentItemTemplates
=
"true"
>
<
ClientSettings
>
<
ClientEvents
OnClosed
=
"closeLightBox"
/>
<
AnimationSettings
HideAnimation
=
"Resize"
NextAnimation
=
"Fade"
PrevAnimation
=
"Fade"
ShowAnimation
=
"Resize"
/>
</
ClientSettings
>
<
Items
>
<
telerik:RadLightBoxItem
>
<
ItemTemplate
>
<
div
style
=
"margin:0px 10px"
>
<
asp:Label
ID
=
"lblClientNamePlayer"
Font-Bold
=
"true"
runat
=
"server"
></
asp:Label
><
br
/>
<
asp:Label
ID
=
"lblAppDatePlayer"
Font-Bold
=
"true"
runat
=
"server"
></
asp:Label
>
<
audio
id
=
"AudioPlayer"
runat
=
"server"
style
=
"width:100%; margin-top:12px "
controls
preload
=
"auto"
>
</
audio
>
<
div
style
=
"text-align:center"
>
<
asp:Label
ID
=
"Label1"
Font-Bold
=
"true"
runat
=
"server"
>Click <
asp:LinkButton
ID
=
"lnkDownloadAudio"
runat
=
"server"
OnClick
=
"DownloadAudio"
Text
=
"here"
></
asp:LinkButton
> to download the recording </
asp:Label
>
</
div
>
</
div
>
</
ItemTemplate
>
</
telerik:RadLightBoxItem
>
</
Items
>
</
telerik:RadLightBox
>
'SyntaxError: An invalid or illegal string was specified', 'http://localhost:63188/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2013.2.717.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3ahe-IL%3a0507d587-20ad-4e22-b866-76bd3eaee2df%3a16e4e7cd%3aed16cbdc%3af7645509%3a24ee1bba%3af46195d3%3a1e771326%3a4cacbc31%3a2003d0b8%3ae524c98b%3ae330518b%3ac8618e41%3ae4f8f289%3a11a04f7e%3a6b3f73b3%3a92fe8ea0%3afa31b949%3a874f8ea2%3a19620875%3a490a9d4e%3abd8f85e4%3a8e6f0d33%3a6a6d718d%3aa7e79140%3aaa288e2d%3ac172ae1e%3a9cdfc6e7', '1415'
<
telerik:GridDateTimeColumn
DataField
=
"TradeDate"
DataFormatString
=
"{0:MM/dd/yyyy}"
DataType
=
"System.DateTime"
FilterControlAltText
=
"Filter TradeDate column"
HeaderText
=
"Trade Date"
ReadOnly
=
"True"
SortExpression
=
"TradeDate"
UniqueName
=
"TradeDate"
HeaderStyle-HorizontalAlign
=
"Right"
ItemStyle-HorizontalAlign
=
"Right"
FilterControlWidth
=
"110px"
EnableRangeFiltering
=
"true"
AutoPostBackOnFilter
=
"true"
ShowFilterIcon
=
"false"
>
</
telerik:GridDateTimeColumn
>