jimib 0 Newbie Poster

Here's the code I use to show an swf file that's located inside my project (in the directory SWF. It works fine. However, SWF files are huge and I would like to keep them in an external directory. I put some in my development server (C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\SWF) to test. Can anyone help me with the syntax to replace SWF\0001.swf with in order to embed these swf files?

Dim filepath = "<embed src=""" & SWF\0001.swf"" width=700 height=400 /></embed>"

Dim vid As Literal = New Literal
vid.Text = FilePath

Dim divVid As System.Web.UI.HtmlControls.HtmlGenericControl = New System.Web.UI.HtmlControls.HtmlGenericControl("DIV")
divVid.Style.Add("position", "absolute")
divVid.Style.Add("left", "20px")
divVid.Style.Add("top", "20px")
divVid.Style.Add("border-style", "none")
divVid.Style.Add("z-index", "-1")
divVid.Controls.Add(vid)
form1.Controls.Add(divVid)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.