本文介绍了跨越多行的属性值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自定义Web控件,可用于各种链接列表页面.其用法如下:

I have a custom web control for use on various linklist pages. Its usage looks like this:

<mine:DispatchLink ID="admin_rep_1" runat="server"
    NavigateUrl="#"
    Text="View Your Renewal Fee Invoice"
    ExtendedText="Extended description." />



有些ExtendedText值很长(它们是由管理人员设置的,而不是我自己设置的.)为了使维护更容易一些,我想做这样的事情:



Some of the ExtendedText values are rather long (they are set by management, not me.) To make maintenance a bit easier, I would like to do something like this:

<mine:DispatchLink ID="admin_rep_1" runat="server"
    NavigateUrl="#"
    Text="View Your Renewal Fee Invoice"
    ExtendedText="Extended " +
        "description." />



这会在页面上生成编译错误,并抱怨服务器标签格式不正确".有没有办法将Web控件的标记的值分成多行,还是我将整个字符串都放在一行上?



This generates a compile error on the page, complaining that "the server tag is not well formed." Is there a way to split the value of a web control''s tag across multiple lines, or am I stuck putting the entire string on a single line?

推荐答案

ExtendedText="Extended
        description." />


这篇关于跨越多行的属性值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 17:16
查看更多