Live Chat Icon For mobile
Live Chat Icon

How to include multiple vb/cs files in the source

Platform: ASP.NET| Category: Basic

You can do this using assembly directives.

<%@ assembly src='test1.vb' %> 
<%@ assembly src='test2.vb' %> 


<%@ assembly src='test1.cs' %> 
<%@ assembly src='test2.cs' %> 

However, note that each source file will be compiled individually into its own assembly, so they cannot have dependencies on each other.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.