hi,
im trying to include an ASP file (Header) which is written in VB code with ADO, in ASPX C#.
The page is not included at top of the ASPX insetead its showing error.
Is it possible to inlclude ASP_vb in ASPX_C# file?
Printable View
hi,
im trying to include an ASP file (Header) which is written in VB code with ADO, in ASPX C#.
The page is not included at top of the ASPX insetead its showing error.
Is it possible to inlclude ASP_vb in ASPX_C# file?
You should create a user control based on your old include file.
Include files for ASP, user controls for ASP.Net.
A web user control (ASCX) can contain ASPX code (and is just like another ASP.NET page!). It acts as a control which you drag and drop and place anywhere you like on the ASPX page. Just like you did with .INCs.