[thelist] ASP.NET: passing text string into a user control
Peter Brunone (EasyListBox.com)
peter at easylistbox.com
Fri Oct 15 14:38:01 CDT 2004
I'm partial to the example I wrote for you last week; put a
public field on the user control and set it from the parent page. Then
add a label inside the control and pass the value to its Text property.
-----Original Message-----
From: thelist-bounces at lists.evolt.org On Behalf Of Casey Crookston
What would be the best way to pass a text string into a user control?
For example, a page header re-used on every page also includes the page
title. Can you set a global variable on the main page and then display
that variable from within the control? Or would it be better to use
something like a form label?
Thanks,
Casey
More information about the thelist
mailing list