Groups | Blog | Home
all groups > dotnet faqs > november 2006 >

dotnet faqs : datalist and items.


Per W.
11/23/2006 12:08:01 PM
Hi, in the ItemDataBound i can use this to change things on a item.

Dim memoliteral2 As Literal
Dim memolabel2 As Label
Dim fileReader2 As String

e.Item.FindControl("TD_Memo").Visible = False
memolabel2 = CType(e.Item.FindControl("TD_Memo"), Label)
memoliteral2 = CType(e.Item.FindControl("TD_Literal"), Literal)
If memolabel2.Text = " " Then
e.Item.FindControl("TD_Literal").Visible = False


But how can i get to the items under SelectedItemTemplate ? Do i need to use
the SelectIndex and still process this under the ItemDataBound?

/Per W.


simida
11/26/2006 6:01:19 PM
Maybe you can process e.Item.ItemType =3D SelectedItem in the
ItemDataBound event, and find selected item.



"Per W. =D0=B4=B5=C0=A3=BA
"
[quoted text, click to view]
AddThis Social Bookmark Button