G
Guest
Dear all,
I have build a simple Web user control which contains 2 labels named Lab1
and Lab2.
I defined property for that control to change the .Text property of both of
them.
Then I drag my user control on an empty form whcih contains only my created
user control.
Then I set the text property of those control through my Web form code as :
dim myControl as new USerContrl
myControl.SetText ="Test value"
This code is place in my webForm Page_PreRender, but when it runs my user
control labels text property has not change, it contain default value.
What I am doing wrong ?
Is it the properway to do or should I use a Control Libary ?
Thanks for your help
regards
serge
I have build a simple Web user control which contains 2 labels named Lab1
and Lab2.
I defined property for that control to change the .Text property of both of
them.
Then I drag my user control on an empty form whcih contains only my created
user control.
Then I set the text property of those control through my Web form code as :
dim myControl as new USerContrl
myControl.SetText ="Test value"
This code is place in my webForm Page_PreRender, but when it runs my user
control labels text property has not change, it contain default value.
What I am doing wrong ?
Is it the properway to do or should I use a Control Libary ?
Thanks for your help
regards
serge