J
James Page
Hi all (again!)
Declaring publically available variables is something I use on a daily basis
but here's somthing I just can't figure out:
I have an aspx page with a details view and within that say a button (btn1)
if I wanted to change the visible value to false from within the btn1_click
event I would use:
dim btn as button = me.detailsview1.findcontrol("btn1")
btn1.visible = false
Simple.
What I never been able to work out is how I reference the button 'publically'
so I could set the various properties from within other events - such as the
page load, btn2_click event etc.
Also is possible to reference the btn1 control from within a public class?
Thanks
Declaring publically available variables is something I use on a daily basis
but here's somthing I just can't figure out:
I have an aspx page with a details view and within that say a button (btn1)
if I wanted to change the visible value to false from within the btn1_click
event I would use:
dim btn as button = me.detailsview1.findcontrol("btn1")
btn1.visible = false
Simple.
What I never been able to work out is how I reference the button 'publically'
so I could set the various properties from within other events - such as the
page load, btn2_click event etc.
Also is possible to reference the btn1 control from within a public class?
Thanks