用户控件引用后,部分值无法显示

ahjdtjh 2013-03-11 11:19:35
我在引用用户控件后,居然有部分内容无法显示,而在另外的页面中则可以很好的显示,这个是怎么回事呢!
这个图片是其他页面应用该用户控件显示出来的效果:
这个图片是打印页面所引用该用户控件显示出来的效果:

页面代码
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DescriptionBrief.ascx.cs"
Inherits="price_guide_uc_DescriptionBrief" %>
<h2 class="title">
<asp:UpdatePanel ID="up" runat="server" UpdateMode="Conditional">
<contenttemplate>
<div>
<asp:PlaceHolder ID="phView" runat="server">
<table style="width: 100%">
<tr>
<td style="font-size: 20px; width: 70%;">
<asp:Literal ID="lDescriptionBrief" runat="server" />
</td>
</tr>
</table>
</asp:PlaceHolder>
</contenttemplate>
</asp:UpdatePanel>
</h2>


using System;

public partial class price_guide_uc_DescriptionBrief : System.Web.UI.UserControl
{
public event OnUpdatedEventDelegate Updated;

protected void Page_Load(object sender, EventArgs e) {
Session["itemDescription"] = lDescriptionBrief.Text;
}
public string DescriptionBrief
{
set { lDescriptionBrief.Text = value; }
get { return lDescriptionBrief.Text; }
}
}


...全文
33 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ForestDB 2013-03-11
  • 打赏
  • 举报
回复
兄弟问错了地方,而且感觉是“只会拖控件”的。

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧