C
Chris
I need to pass a form say 'webform1' in a class file myClass (.vb)
and access its web controls say 'txtdisp', .....
My code snippet is :
Imports System.Web.UI
public class myClass
public sub disableitems(ByRef frm as WebForm1)
'Here my intention is to set enabled property of txtdisp to false
'And this control is in WebForm1.
'The below code is not working for me.
frm.txtdisp.enabled = false
end sub
end class
and access its web controls say 'txtdisp', .....
My code snippet is :
Imports System.Web.UI
public class myClass
public sub disableitems(ByRef frm as WebForm1)
'Here my intention is to set enabled property of txtdisp to false
'And this control is in WebForm1.
'The below code is not working for me.
frm.txtdisp.enabled = false
end sub
end class