wsyeager
Centurion
I have a public property inside my usercontrol which I set inside the Repeater.ItemDataBound event as follows:
<code>
If blnFirstTime Then
Dim lblstrDate As Label = DirectCast(e.Item.FindControl("lblPressReleaseDate"), Label)
blnFirstTime = False
strDate = lblstrDate.Text
End If
</code>
After the user control finishes databinding, I want to take the value of this property and display it on the aspx page that is hosting the usercontrol.
I have the following set up:
<code>
Protected PressRoomArticles As New Platform_CampusInfo_PressRoom_UserControls_PressRoomArticles
</code>
I have the following code set up to retrieve the value, but I don't know what event of the page to place it in.
<code>
lblPressDate.Text = PressRoomArticles.sPressReleaseDate 'this is my public property inside the user control
</code>
What event can I use to display the value of this variable?
fyi, this value is coming up as a label text value inside the user control when displayed. Since it's a repeater, I set the visibility to disabled, since I only want it displayed once on the aspx page that hosts this user control.
<code>
If blnFirstTime Then
Dim lblstrDate As Label = DirectCast(e.Item.FindControl("lblPressReleaseDate"), Label)
blnFirstTime = False
strDate = lblstrDate.Text
End If
</code>
After the user control finishes databinding, I want to take the value of this property and display it on the aspx page that is hosting the usercontrol.
I have the following set up:
<code>
Protected PressRoomArticles As New Platform_CampusInfo_PressRoom_UserControls_PressRoomArticles
</code>
I have the following code set up to retrieve the value, but I don't know what event of the page to place it in.
<code>
lblPressDate.Text = PressRoomArticles.sPressReleaseDate 'this is my public property inside the user control
</code>
What event can I use to display the value of this variable?
fyi, this value is coming up as a label text value inside the user control when displayed. Since it's a repeater, I set the visibility to disabled, since I only want it displayed once on the aspx page that hosts this user control.