| | |
How it is possible tu use a class that is in a new vb file??
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
Here is an example using a class called MyClass in Page1.aspx
In you class file:
In your code behind page:
So, you are replacing "Inherits System.Web.UI.Page" in your codebehind pages with the name of your class.
-sypher
In you class file:
ASP.NET Syntax (Toggle Plain Text)
Public Class MyClass Inherits System.Web.UI.Page
In your code behind page:
ASP.NET Syntax (Toggle Plain Text)
Public Class Page1 Inherits MyClass
So, you are replacing "Inherits System.Web.UI.Page" in your codebehind pages with the name of your class.
-sypher
![]() |
Similar Threads
- Custom Class - File I/O (C++)
- finding a class inside a jar file (Java)
- Reading an input file as a class memeber function (C++)
- Two-way class communication (C++)
- Initializing an array as a class mamber (C++)
- Help with Class, stuck. (C++)
- unresolved external symbol when using a hashtable class (C++)
- problem reading text file to struct (C++)
- Class Passing and Returning Arrays (Java)
Other Threads in the ASP.NET Forum
- Previous Thread: hide checkbox in grid appropriately
- Next Thread: Web Server controls to a file
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions compatible content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv gridview gudi iis javascript list listbox login menu microsoft mouse mssql nameisnotdeclared news novell numerical opera order panelmasterpagebuttoncontrols problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl tracking treeview validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





