In my classic asp I have the following:
<!--#include file="../Include/firstLineInclude.inc"-->
<%
sTitle = "FUTURES"
sFuncCode = "TKT12"
%>
<!--#include file="..\Include\SecurityCheckInclude.inc"-->
I have DIM'd sTitle and sFuncCode in the first include file and the value
set in the render block is used by the second include to do security check.
If I change the include files to user controls in .net asp and define
sTitle and sFuncCode as public in the first user control I get a 'not
defined' error in the render block. What do I do?
Sundar
You are just missing the name of the first user control.
So if this is your control
<whirly:header id=3D"Header" runat=3D"server" />
<%
Header.sTitle =3D "FUTURES"
Header.sFuncCode =3D "TKT12"
%>
Though you could just put that code in the Page_Load.
Andrew
http://whirly.info
.NET forums for developers
-----Original Message-----
From: sundar srinivasan [mailto:ssrinivasan3@n...]
Sent: Thursday, September 05, 2002 9:21 AM
To: ASP+
Subject: [aspx] user control
In my classic asp I have the following:
<!--#include file=3D"../Include/firstLineInclude.inc"-->
<%
sTitle =3D "FUTURES"
sFuncCode =3D "TKT12"
%>
<!--#include file=3D"..\Include\SecurityCheckInclude.inc"-->
I have DIM'd sTitle and sFuncCode in the first include file and the
value
set in the render block is used by the second include to do security
check.
If I change the include files to user controls in .net asp and define
sTitle and sFuncCode as public in the first user control I get a 'not
defined' error in the render block. What do I do?
Sundar
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=3D1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=3D1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---