E
Eric
Hello, I've created a custom control and want to set
properties in the aspx page.
<%@ Page language="c#" Codebehind="test_control2.aspx.cs"
AutoEventWireup="false"
Inherits="oldtownclovis_dotnet.test_control2" %>
<%@ Register TagPrefix="aspCustomerGrid"
TagName="CustomerGrid" Src="test_user_control.ascx"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN" >
<html>
<head>
<title>test_control2</title>
<LINK rel="stylesheet" type="text/css"
href="http://localhost/oldtownclovis_dotnet/include/otc_nor
mal.css">
</head>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<aspCustomerGrid:CustomerGrid
id="CustomerGrid" runat="server">
<!-- can i set the properties
here? -->
</aspCustomerGrid:CustomerGrid>
</form>
</body>
</html>
How do I set the public properties of the control from
within the customer control's tag?
Thanks,
Eric
properties in the aspx page.
<%@ Page language="c#" Codebehind="test_control2.aspx.cs"
AutoEventWireup="false"
Inherits="oldtownclovis_dotnet.test_control2" %>
<%@ Register TagPrefix="aspCustomerGrid"
TagName="CustomerGrid" Src="test_user_control.ascx"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN" >
<html>
<head>
<title>test_control2</title>
<LINK rel="stylesheet" type="text/css"
href="http://localhost/oldtownclovis_dotnet/include/otc_nor
mal.css">
</head>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<aspCustomerGrid:CustomerGrid
id="CustomerGrid" runat="server">
<!-- can i set the properties
here? -->
</aspCustomerGrid:CustomerGrid>
</form>
</body>
</html>
How do I set the public properties of the control from
within the customer control's tag?
Thanks,
Eric