Access control Property by App_Data module?

  • Thread starter Thread starter MING@HongKong
  • Start date Start date
M

MING@HongKong

If i create a module inside App_Data, how can i access the web control Property on webform?
Just like VB6 , i create a *.vb , the can direct access the control property like

FrmMain.TextBox1.Text = "Hello"

--
 
You can define a base class inside App_Code (could be a MustInherit class),
define your properties in it, and have your class outside of App_Code inherit
that class. Alternatively, you can define an interface inside your App_Code
and have your outsider implement that interface.

Then after casting your outsider as appropriate type you can set/get it's
properties or call its methods
 
Back
Top