31
Jul

Embed Flash IN .Aspx Pages

   Posted by: admin   in .Net Emperor

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: , ,

This entry was posted on Thursday, July 31st, 2008 at 7:50 am and is filed under .Net Emperor. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 comments so far

 1 

Aa C# mate Code 6e Ke Pache VB mate ?

August 14th, 2008 at 7:28 am
 2 

That’s great, I never thought about Embed Flash IN .Aspx Pages like that before.

September 5th, 2009 at 2:21 am
 3 

Wow, I never knew that Embed Flash IN .Aspx Pages. That’s pretty interesting…

September 9th, 2009 at 12:28 am

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment