|
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
|
|
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
|
|
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
|
|
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
|
|
Rank: Advanced Member Groups: Member
Joined: 7/25/2007 Posts: 34
|
Thanks... it worked
|
|