Click here to Skip to main content
15,909,591 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How display like that in gridview? Pin
N a v a n e e t h4-Sep-07 22:48
N a v a n e e t h4-Sep-07 22:48 
GeneralRe: How display like that in gridview? Pin
varshavmane4-Sep-07 20:47
varshavmane4-Sep-07 20:47 
AnswerRe: How display like that in gridview? Pin
Lucky Sheikh4-Sep-07 22:23
Lucky Sheikh4-Sep-07 22:23 
QuestionChange Date to its equivillant in Gregorian Pin
samerh4-Sep-07 19:27
samerh4-Sep-07 19:27 
AnswerRe: Change Date to its equivillant in Gregorian Pin
Sathesh Sakthivel4-Sep-07 19:28
Sathesh Sakthivel4-Sep-07 19:28 
GeneralRe: Change Date to its equivillant in Gregorian Pin
samerh4-Sep-07 19:37
samerh4-Sep-07 19:37 
QuestionHow to play video based on some value? Pin
n_gchaitra4-Sep-07 19:16
n_gchaitra4-Sep-07 19:16 
AnswerRe: How to play video based on some value? Pin
Michael Sync4-Sep-07 20:05
Michael Sync4-Sep-07 20:05 
<a href = "http://www.killersites.com/mvnforum/mvnforum/viewthread?thread=3602#18305" rel="nofollow">http://www.killersites.com/mvnforum/mvnforum/viewthread?thread=3602#18305</a>

<pre>
<script type="text/javascript">
function play(media){
document.getElementById('mediaplayer').innerHTML=
'<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'
+'type="application/x-oleobject" width="320" height="285">'
+'<param name="showControls" value="false">'
+'<param name="fileName" value="'+media+'">'
+'<embed type="application/x-mplayer2" width="320" height="285"'
+'showcontrols="false" src="'+media+'"><\/embed><\/object>'
}
</script>

Add this to the CSS:

#mediaplayer {
width: 320px;
height: 285px;
background: #000;
}

And put this in the html where you want the videos to play and menu:

&lt;div id="mediaplayer"&gt;&lt;/div&gt;
&lt;ul id="menu"&gt;
&lt;li&gt;&lt;a onclick="play("<b>mymovie1.wmv</b>");return false" href=""&gt;Movie 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a onclick="play("<b>mymovie2.wmv</b>");return false" href=""&gt;Movie 2&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>

<b>Note that OBJECT tag won't work on Firefox. </b>

Edit: Text editor is really bad for posting code..

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)
GeneralRe: How to play video based on some value? Pin
n_gchaitra4-Sep-07 21:25
n_gchaitra4-Sep-07 21:25 
QuestionValidation for date with leap year Pin
samerh4-Sep-07 19:12
samerh4-Sep-07 19:12 
AnswerRe: Validation for date with leap year Pin
Sathesh Sakthivel4-Sep-07 19:19
Sathesh Sakthivel4-Sep-07 19:19 
AnswerRe: Validation for date with leap year Pin
Lucky Sheikh4-Sep-07 22:27
Lucky Sheikh4-Sep-07 22:27 
QuestionUrgent Listbox to listbox by using javascript Pin
jayarajmrj4-Sep-07 19:04
jayarajmrj4-Sep-07 19:04 
AnswerRe: Urgent Listbox to listbox by using javascript Pin
varshavmane4-Sep-07 20:12
varshavmane4-Sep-07 20:12 
GeneralRe: Urgent Listbox to listbox by using javascript Pin
jayarajmrj4-Sep-07 21:23
jayarajmrj4-Sep-07 21:23 
GeneralRe: Urgent Listbox to listbox by using javascript Pin
varshavmane4-Sep-07 21:34
varshavmane4-Sep-07 21:34 
AnswerRe: Urgent Listbox to listbox by using javascript Pin
codelinks4-Sep-07 21:54
codelinks4-Sep-07 21:54 
QuestionChange the GridView Row Control on Mouse over Pin
varshavmane4-Sep-07 18:21
varshavmane4-Sep-07 18:21 
QuestionGrid View Pin
seemamltn4-Sep-07 14:09
seemamltn4-Sep-07 14:09 
AnswerRe: Grid View Pin
Christian Graus4-Sep-07 14:57
protectorChristian Graus4-Sep-07 14:57 
AnswerRe: Grid View Pin
N a v a n e e t h4-Sep-07 18:04
N a v a n e e t h4-Sep-07 18:04 
AnswerRe: Grid View Pin
Herman<T>.Instance5-Sep-07 2:15
Herman<T>.Instance5-Sep-07 2:15 
Questionadding a HyperLinkField programmatically question Pin
orsini4-Sep-07 8:55
orsini4-Sep-07 8:55 
QuestionDebug ASP.NET on Vista ? Pin
Christian Graus4-Sep-07 8:53
protectorChristian Graus4-Sep-07 8:53 
AnswerRe: Debug ASP.NET on Vista ? Pin
Christian Graus4-Sep-07 9:33
protectorChristian Graus4-Sep-07 9:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.