DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 9 Aug 2007 19:50:39 +0800,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    MING@HongKong
          2    Sergey Poberezovskiy


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

--
Date:Thu, 9 Aug 2007 19:50:39 +0800   Author:  

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@HongKong" 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.TextBox1.Text = "Hello"
> 
> -- 
> 
> 
Date:Thu, 9 Aug 2007 16:20:00 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us