Welcome Guest Search | Active Topics | Sign In | Register

EO Dialog Options
Boranet
Posted: Wednesday, October 10, 2007 2:04:23 AM
Rank: Advanced Member
Groups: Member

Joined: 7/25/2007
Posts: 34
Good Morning

I'm just started to work with the EO Dialog. I have put a Label control inside, and on the "LOAD PAGE FUNCTION", i've tried to change its value, but when i run the page it gives me the following error: "Label not declared"

I've tried to move the label outside the EO Dialog control, and it worked.

What am i doing wrong?

Thanks
eo_support
Posted: Wednesday, October 10, 2007 6:41:59 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

The Label control belongs to the dialog, not the page. You will need to do:

Dialog1.ContentContainer.FindControl("Label1")

To get a reference of the label.

Thanks
Boranet
Posted: Wednesday, October 10, 2007 10:08:48 AM
Rank: Advanced Member
Groups: Member

Joined: 7/25/2007
Posts: 34
Thanks..... And how do i update its value?

I saw that it hasn't got a "Text" or "value" property

TThanks
eo_support
Posted: Wednesday, October 10, 2007 10:21:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
You will need to cast it to a Label before accessing it.

Label label = (Label)Dialog1.ContentContainer.FindControl("Label1");

or:

Dim label as Label = CType(Dialog1.ContentContainer.FindControl("Label1"), Label)

Thanks
Boranet
Posted: Wednesday, October 10, 2007 12:31:26 PM
Rank: Advanced Member
Groups: Member

Joined: 7/25/2007
Posts: 34
Thanks... it worked


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.