S
Steven K
Hello,
I am using a User Control (ctlHeader.ascx). My problem is that I can't
change the text of my literal control "ltlPricingHeader" in the file
MyPage.aspx. I can bring in the user control as long as it's static.
Any help with this would be appreciated.
--
Thanks in advance,
Steven
ctlHeader.ascx
--------------
<div align="left"><table cellspacing="0" cellpadding="2" width="730"
border="0">
<tr><td ><div align="right"><asp:Literal id="ltlPricingHeader" text="no
title" runat="server"/></div></td></tr>
</table></div>
MyPage.aspx
-----------
<%@ Page Inherits="nsInterlock.DataConnection" src="../../bin/cnnPricing.vb"
Explicit="True" Debug="True"%>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OLEDB" %>
<%@ Import Namespace="System.Web.Mail" %>
<%@ Register TagPrefix="Pricing" TagName="PricingHeader"
Src="../../Controls/ctlHeader.ascx" %>
Sub Page_Load(Sender As Object, E As EventArgs)
If Not IsPostBack
'Web Page Title
ltlPricingHeader.Text = "go steven"
......
<!-- Start Logo and information -->
<PricingricingHeader id="ctlHeader" runat="server"/>
<!-- End Logo and information -->
I am using a User Control (ctlHeader.ascx). My problem is that I can't
change the text of my literal control "ltlPricingHeader" in the file
MyPage.aspx. I can bring in the user control as long as it's static.
Any help with this would be appreciated.
--
Thanks in advance,
Steven
ctlHeader.ascx
--------------
<div align="left"><table cellspacing="0" cellpadding="2" width="730"
border="0">
<tr><td ><div align="right"><asp:Literal id="ltlPricingHeader" text="no
title" runat="server"/></div></td></tr>
</table></div>
MyPage.aspx
-----------
<%@ Page Inherits="nsInterlock.DataConnection" src="../../bin/cnnPricing.vb"
Explicit="True" Debug="True"%>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OLEDB" %>
<%@ Import Namespace="System.Web.Mail" %>
<%@ Register TagPrefix="Pricing" TagName="PricingHeader"
Src="../../Controls/ctlHeader.ascx" %>
Sub Page_Load(Sender As Object, E As EventArgs)
If Not IsPostBack
'Web Page Title
ltlPricingHeader.Text = "go steven"
......
<!-- Start Logo and information -->
<PricingricingHeader id="ctlHeader" runat="server"/>
<!-- End Logo and information -->