| | |
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 3.5 ajax alltypeofvideos appliances asp asp.net bc30451 beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions control countryselector dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iis javascript list listbox login microsoft mouse mssql nameisnotdeclared news novell numerical opera panelmasterpagebuttoncontrols problem radio redirect registration relationaldatabases reportemail save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio vs2008 web webapplications webdevelopemnt webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





