W
wikkiwikkiwaa
hello,
i am trying to access controls inside my formview1 nested inside
loginview1. you cannot access the formview1 unless you are properly
logged in.
for loginview1, that seems to be fairly simple. a label control would
be:
Label label1 = (Label)loginview1.FindControl("nameoflabel");
then i get to the data that was bound to that control.
i cannot figure out how to get to the formview1 controls. the formview1
defaults to the itemtemplate, but also has a edititem and iteminsert
templates. the labels i am trying to get to inside formview1 are
ZIPLabel, ADDR1Label, and CITYLabel. i cannot seem to get the syntax to
get to them correct.
i'm also not sure at what point they have been created and that i
really have access to them. for example.
i tried to get to them through one of the events formview1_DataBound,
but they don't seem to exist yet.
i'm missing something fundamental here and i'm starting to get
frustrated. any help would be appreciated.
thank you for your time
i am trying to access controls inside my formview1 nested inside
loginview1. you cannot access the formview1 unless you are properly
logged in.
for loginview1, that seems to be fairly simple. a label control would
be:
Label label1 = (Label)loginview1.FindControl("nameoflabel");
then i get to the data that was bound to that control.
i cannot figure out how to get to the formview1 controls. the formview1
defaults to the itemtemplate, but also has a edititem and iteminsert
templates. the labels i am trying to get to inside formview1 are
ZIPLabel, ADDR1Label, and CITYLabel. i cannot seem to get the syntax to
get to them correct.
i'm also not sure at what point they have been created and that i
really have access to them. for example.
i tried to get to them through one of the events formview1_DataBound,
but they don't seem to exist yet.
i'm missing something fundamental here and i'm starting to get
frustrated. any help would be appreciated.
thank you for your time