I have an application with a navigation bar on the left hand side. The navigation bar is part of every page of the application, and I include it using:
Initially, the abc.aspx file was nothing more than straight html, with no code behind:
I would like the abc.aspx page to contain controls that read data from the database. I tried adding the page directive to associate it with a abc.aspx.vb file, but couldn't.
I get the error indicating that there can only be one @ page directive per page!
Any ideas on how I can associate codebehind with the abc.aspx file without the page directive?
Thanks
Code:
<!--#include virtual="/abc/abc.aspx"-->
Initially, the abc.aspx file was nothing more than straight html, with no code behind:
Code:
<html>
<head><title>ABC</title</head>
<body>....</body>
</html>
I would like the abc.aspx page to contain controls that read data from the database. I tried adding the page directive to associate it with a abc.aspx.vb file, but couldn't.
Code:
<%@ Page CodeBehind="abc.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="ABC.abc" %>
I get the error indicating that there can only be one @ page directive per page!
Any ideas on how I can associate codebehind with the abc.aspx file without the page directive?
Thanks