how to use the open file and color daialog box in asp.net vb script. and how can we inseart a inbuild media player in asp page
how to use the open file and color daialog box in asp.net vb script. and how can we inseart a inbuild media player in asp page
You can do it by adding a form and then some buttons to the same.
Private Sub Bg_Click(ByVal sender As System.Object, ByVal c As System.EventArgs) Handles Bg.Click
ColorDialog1.ShowDialog()
TxtBox1.BackColor = ColorDialog1.Color
End Sub
This would show and open the color dialog control for you.
Also for inserting a media player may be an example for the same would help you out. A code for the player is given as follows:
function Ok()
{
if (fileBrowser.SelectedItem.Type == "M")
{
alert(localization["NoMediaSelectedToInsert"]);
return;
}
if ((trim(document.getElementById("mpWidth").value) == "") ||
(trim(document.getElementById("mpHeight").value) == ""))
{
alert(localization.AlertWidthHeight);
}
else
{
var mediaObject = previewer.v.Html();
var oD = document.createElement("D");
oD.innerHTML = mediaObject;
var src=oD.firstChild.getAttribute("src");
var ObjectTag = "<object id='Player' height='120' width='120' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'><param name='URL' value='" + src + "'><param name='autoStart' value='true'></object>";
CloseDlg(ObjectTag);
}
Last edited by Zecho; 10-12-2009 at 04:56 PM.
Bookmarks