Hello Friends,
.net guys and girls who wants to add flash file in .aspx pages don`t worry at all here i serve you some guild line and code for those who wants to add flash file flash menu or any flash movie in aspx pags.
Please Copy and Paste below code in your aspx page replace “yourfilename” to your Flash file name and enjoy after that effect.
<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0″ width=”766″ height=”81″> <param name=”movie” value=”yourfilename” /> <param name=”quality” value=”high” /> <embed src=”yourfilename” quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”766″ height=”81″></embed> </object>
Some .net Guys and girls need that at run time we can give flash file name no problem at all you can create one public variable and replace that public variable to current file name it works No Problem at all.
If you Want to Display Flash File in Gridview or Datalist than also No Problem Follow Below Code it Works.Add One Grieview And Create this type of item temple.
Aftre that Create this Code in .aspx.vb File.
Protected Sub grdBanner_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs)
Dim BannerPath As TextBox = CType(e.Row.FindControl(”txtBannerPath”), TextBox)
Dim flash As TableCell = CType(e.Row.FindControl(”colObject”), TableCell)
If Not IsNothing(BannerPath) Then
Dim ext As String = Path.GetExtension(BannerPath.Text)
If ext.ToLower = “.swf” Then
Dim FileName As String = BannerPath.Text
flash.Text = “Place Above Code “
End If
End If
End Sub
Use this Code and you will not disappoint. If you really find that this stuff works for you than make commnet for this atricle also tell your friend that visit this site. Enjoy
Tags: Embed Flash File in aspx, Flash in .net, Flash in aspx page
Hello ! I am Arjun Jadeja a Software Engineer by Profession. You can contribute and I will distribute your ideas through this site. Thanks and Enjoy
3 comments so far
Leave a reply