Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newby question

Status
Not open for further replies.

PureDevelopers

IS-IT--Management
Aug 25, 2006
18
US
Converting vbscript to C#

I have a drop down list that displays some videos to a user. The drop down is set to auto post the form.
The videos are are embedded into the html, and surrounded by a placeholder. All placeholders are initially not visible.
I am having two problems:

1) Visual web developer is giving me compile errors for the video embed attributes it doesn't acknowledge. I am embedding videos I have uploaded to iFilm.

2) each new video is being stacked on the video before it. In other words the form post does not reload the page from scratch, it just keeps stacking the videos on the page.

I am trying to figure out the best .Net way to make this work.

How do I get the page to re initialize or reload on each post so that only one placeholder is visible at a time.

Is using a placeholder for each video the best way to go?

Any help??

<asp:placeHolder ID="ph2765711" runat="server" Visible="false">
<tr valign="top">
<td class="Content" colspan="2" align="center">
<span class="title">CBVA Mens AA Ocean Beach 8/29/2006<br />
Brad Johnson And Tom Wright<br />
vs.<br />
Aaron Steele And Dave Counts Part 2</span><br />
<embed allowScriptAccess="never" width="448" height="365"
src=" quality="high" bgcolor="000000" name="efp"
align="middle" type="application/x-shockwave-flash"
pluginspage="flashvars="flvbaseclip=2765711" />
</td>
</tr>
</asp:placeHolder>
 
You could use one placeholder and load the video into that by adding a LiteralControl to it with you code to embed the video.

Make sure to clear out the placeholder before you add the liter control and you should be fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top