473,486 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

tag object

Hi,

it's possible to use a html tag object as a tag iframe. When a declare in a
acsx file the tag object, i can't access to them with the codebehind C#.
Visual Studio says that there is no definition for the ID of the tag object.

Can you help me?
Regards
Michele
Apr 3 '08 #1
4 1200
Do you mean you have an <iframe id="myFrame" .. /tag in the markup and you
want to access it from c#? If that's what you need, just add runat="server":

<iframe id="myFrame" runat="server" ... />

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"miki79" <mi****@discussions.microsoft.comwrote in message
news:C5**********************************@microsof t.com...
Hi,

it's possible to use a html tag object as a tag iframe. When a declare in
a
acsx file the tag object, i can't access to them with the codebehind C#.
Visual Studio says that there is no definition for the ID of the tag
object.

Can you help me?
Regards
Michele

Apr 3 '08 #2
Excuse me for the bad question.

i have the <object id="myObject" .. runat="server" /tag in the markup and
i want access it from C#

example:

this.myObject.Attributes.Add("data", "http://www.microsoft.com");

but Visual Studio says that there is no definition for myObject. I must use
<object instead of <iframe for problem of accessibility

Regards
Michele


"Eliyahu Goldin" wrote:
Do you mean you have an <iframe id="myFrame" .. /tag in the markup and you
want to access it from c#? If that's what you need, just add runat="server":

<iframe id="myFrame" runat="server" ... />

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"miki79" <mi****@discussions.microsoft.comwrote in message
news:C5**********************************@microsof t.com...
Hi,

it's possible to use a html tag object as a tag iframe. When a declare in
a
acsx file the tag object, i can't access to them with the codebehind C#.
Visual Studio says that there is no definition for the ID of the tag
object.

Can you help me?
Regards
Michele


Apr 3 '08 #3
just like script, an <object runat=server id=myObjectdefines a server
side object (not a client side) that is accessible from c#. its
properties match the object type of course.

to define a client side object from the codebehind you need to use a
different control.

-- bruce (sqlwork.com)

miki79 wrote:
Excuse me for the bad question.

i have the <object id="myObject" .. runat="server" /tag in the markup and
i want access it from C#

example:

this.myObject.Attributes.Add("data", "http://www.microsoft.com");

but Visual Studio says that there is no definition for myObject. I must use
<object instead of <iframe for problem of accessibility

Regards
Michele


"Eliyahu Goldin" wrote:
>Do you mean you have an <iframe id="myFrame" .. /tag in the markup and you
want to access it from c#? If that's what you need, just add runat="server":

<iframe id="myFrame" runat="server" ... />

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"miki79" <mi****@discussions.microsoft.comwrote in message
news:C5**********************************@microso ft.com...
>>Hi,

it's possible to use a html tag object as a tag iframe. When a declare in
a
acsx file the tag object, i can't access to them with the codebehind C#.
Visual Studio says that there is no definition for the ID of the tag
object.

Can you help me?
Regards
Michele

Apr 3 '08 #4
Hi, but i don't be able to access at the myObject from C#. I don't understand
why if i declare an IFRAME, i can access to it, but it's not possibile if i
declare a tag object.

Regard
Michele

"bruce barker" wrote:
just like script, an <object runat=server id=myObjectdefines a server
side object (not a client side) that is accessible from c#. its
properties match the object type of course.

to define a client side object from the codebehind you need to use a
different control.

-- bruce (sqlwork.com)

miki79 wrote:
Excuse me for the bad question.

i have the <object id="myObject" .. runat="server" /tag in the markup and
i want access it from C#

example:

this.myObject.Attributes.Add("data", "http://www.microsoft.com");

but Visual Studio says that there is no definition for myObject. I must use
<object instead of <iframe for problem of accessibility

Regards
Michele


"Eliyahu Goldin" wrote:
Do you mean you have an <iframe id="myFrame" .. /tag in the markup and you
want to access it from c#? If that's what you need, just add runat="server":

<iframe id="myFrame" runat="server" ... />

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"miki79" <mi****@discussions.microsoft.comwrote in message
news:C5**********************************@microsof t.com...
Hi,

it's possible to use a html tag object as a tag iframe. When a declare in
a
acsx file the tag object, i can't access to them with the codebehind C#.
Visual Studio says that there is no definition for the ID of the tag
object.

Can you help me?
Regards
Michele

Apr 3 '08 #5

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

Similar topics

1
3196
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object.cs in rotor. What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What I don't...
28
20266
by: Daniel | last post by:
Hello =) I have an object which contains a method that should execute every x ms. I can use setInterval inside the object construct like this - self.setInterval('ObjectName.methodName()',...
9
8555
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
11
9202
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
44
2393
by: Steven T. Hatton | last post by:
This may seem like such a simple question, I should be embarrassed to ask it. The FAQ says an object is "A region of storage with associated semantics." OK, what exactly is meant by "associated...
16
25390
by: sneill | last post by:
How is it possible to take the value of a variable (in this case, MODE_CREATE, MODE_UPDATE, etc) and use that as an object property name? In the following example I want 'oIcon' object to have...
0
4614
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object class (Object.cs in rotor). What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What...
26
5631
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
3
2751
by: User1014 | last post by:
A global variable is really just a property of the "Global Object", so what does that make a function defined in the global context? A method of the Global Object? ...
2
2619
by: Ralph | last post by:
Hi I don't understand why it's not working: function schedule(imTop){ this.tdImagesTop = imTop; } schedule.prototype.selectEl = function() { alert(this.tdImagesTop);
0
7123
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,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5430
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.