Access control Property by App_Data module?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MING@HongKong

    Access control Property by App_Data module?

    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.TextBox 1.Text = "Hello"

    --


  • =?Utf-8?B?U2VyZ2V5IFBvYmVyZXpvdnNraXk=?=

    #2
    RE: Access control Property by App_Data module?

    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


    "MING@HongK ong" wrote:
    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.TextBox 1.Text = "Hello"
    >
    --
    >
    >

    Comment

    Working...