473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

add Flash content in custom control C#.net

Hi ,
I'm creating a custom control for a web project. I wanted to add flash
content as part of that control. How do i do that in C# file. Pls help.

Thanks in advance,
Priya
Aug 17 '06 #1
1 3166
Hi,

Priya wrote:
Hi ,
I'm creating a custom control for a web project. I wanted to add flash
content as part of that control. How do i do that in C# file. Pls help.

Thanks in advance,
Priya
You cannot add the Flash content in the HTML code directly, however you
can add an OBJECT tag pointing to the location of that Flash content.
This is very much like pictures where you use a IMG tag.

The biggest difficulty when you use this in a control is to specify the
content's location, because the location must be relative to the Page
(ASPX), not to the control. I usually solve the problem by using a
property of the custom control to specify where the external content
(JavaScript, CSS, images, etc...) are placed relatively to the Page's
location.

Another approach is to embed the content in the DLL, and to use
webresource.axd to access it (ASP.NET 2.0 only). More info about that
approach:
http://www.nikhilk.net/WebResourceAttribute.aspx
http://weblogs.asp.net/jeff/archive/...18/419842.aspx

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Aug 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

42
by: Manu | last post by:
How can i do with a flash object for obtain the w3c label ? the "embed" is not accepted ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>test</title>...
0
by: newsgroups.jd | last post by:
Thanks for any help in advance... Little background first. I have a report application that creates a flash file for each day of the year. I want to place that file in a content page without...
0
by: rwakelan | last post by:
I am having a strange problem with the shockwave flash object (look at rwakelan.googlepages.com/flash.html to find out how to get it in a project). The easiest way to recreate the error is to: ...
2
by: iwdu15 | last post by:
hi, this will seem like an odd question but il explain. im making an AIM Custom Client with the SDK they released. I want to add tabbed IMs using a tab control. I made a custom control inheriting...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
4
by: Tor Inge Rislaa | last post by:
I would like to load a flash file dynamicaly into my web page by using VB code. Is it possible to write a VB code to achieve the same as the HTML code below. <object...
11
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I know I sound like a one-note Johnny on this but I'm still looking for a solution. I need to display characters coming in from a serial port or a socket. I also need to be able to type...
5
by: Ravenshield | last post by:
Hi there all. (first of all, sorry about my bad english) I need some help over here. I'm developing an asp.net application that works as an administrator site for other application built in flash....
1
by: Michael Nemtsev [MVP] | last post by:
Hello gerry, Everything ok with your code - it works fine and I see controls in designer - i just rebuld project and everything okey-dokey As I understand u are using VS 2008. Try to install the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.