A
Andy B.
I have the following code inside a DataList.Item_Created event:
If (e.Item.ItemType = ListItemType.Header) Then
Dim TitleTextBox As TextBox =
directCast(e.Item.FindControl("TitleTextBox"), TextBox)
Dim DescriptionTextBox As TextBox =
DirectCast(e.Item.FindControl("DescriptionTextBox"), TextBox)
Dim BodyTextBox As TextBox =
DirectCast(e.Item.FindControl("BodyTextBox"), TextBox)
End If
Then later want to send the values from the event above to another page
with a custom class:
protected sub PreviewButton_Click(...)
dim SessionValues as new
SessionParameterPasser("~/Admin/Previews/News.aspx")
SessionValues("Title") = '*** The question is how to get the TextBox
values from the Item_Created event above here.
end sub
Any ideas how to do this?
If (e.Item.ItemType = ListItemType.Header) Then
Dim TitleTextBox As TextBox =
directCast(e.Item.FindControl("TitleTextBox"), TextBox)
Dim DescriptionTextBox As TextBox =
DirectCast(e.Item.FindControl("DescriptionTextBox"), TextBox)
Dim BodyTextBox As TextBox =
DirectCast(e.Item.FindControl("BodyTextBox"), TextBox)
End If
Then later want to send the values from the event above to another page
with a custom class:
protected sub PreviewButton_Click(...)
dim SessionValues as new
SessionParameterPasser("~/Admin/Previews/News.aspx")
SessionValues("Title") = '*** The question is how to get the TextBox
values from the Item_Created event above here.
end sub
Any ideas how to do this?