Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在ASP.net Page的中间添加一个字幕_C#_Asp.net_Html_Marquee - Fatal编程技术网

C# 在ASP.net Page的中间添加一个字幕

C# 在ASP.net Page的中间添加一个字幕,c#,asp.net,html,marquee,C#,Asp.net,Html,Marquee,我有一个ASP.net页面,其中包含控件内部的动态内容,有些是自定义控件,有些是常规ASP.net控件 有没有办法将这些控件放在字幕中?也许是HTML字幕?这些控件主要是在这种意义上构建的: 一些文字 一些文字 一些文字 等等 谢谢 您是否尝试过: <marquee> <asp:YourUserControl ... /> </marquee> 您应该研究使用jQuery。Marquee标记已被弃用,不能在所有浏览器中使用。我最后做了以下操作: <

我有一个ASP.net页面,其中包含控件内部的动态内容,有些是自定义控件,有些是常规ASP.net控件

有没有办法将这些控件放在字幕中?也许是HTML字幕?这些控件主要是在这种意义上构建的:

一些文字


一些文字


一些文字

等等

谢谢

您是否尝试过:

<marquee> <asp:YourUserControl ... /> </marquee>

您应该研究使用jQuery。Marquee标记已被弃用,不能在所有浏览器中使用。

我最后做了以下操作:

<asp:Literal id="Literal1" text="<marquee>"></asp:Literal>
some controls
<asp:Literal id="Literal2" text=</marquee>"></asp:Literal>

一些控件

我试图在我的项目母版页中使用字幕标记。 这是代码。获取明显错误,用谷歌搜索,但无法找到解决方法

<pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"><code>&lt;marquee style=&quot;color:#663300; font-weight:700; font-size:medium; width:877px; height:22px;
            margin-top:0px; position:relative; top:-3px; left:-73px; margin-left:0px;&quot;&gt;  Welcome ... &gt;To Narsingham Page
           &lt;/marquee&gt;

</pre>
marquee style=“颜色:#663300;字体重量:700;字体大小:中等;宽度:877px;高度:22px;
页边距顶部:0px;位置:相对;顶部:-3px;左侧:-73px;页边距左侧:0px;“欢迎。。。到纳辛汉页
/帐篷
有没有办法,我可以在我的vs2010项目中使用xhtml1.0中的相同字幕。我试过卢克的方法,但这样不行。在这个senario中有必要使用jquery吗。我发现这个html控件很容易,因为我对jquery没有太多把握

regs\j

文字字幕=新文字();
Literal marquee = new Literal();
marquee.Text = "<marquee style=color:#663300; font-weight:700; font-size:medium; width:877px; height:22px; margin-top:0px; position:relative; top:-3px; left:-73px; margin-left:0px;> Welcome ... >To Narsingham Page </marquee>";
this.Controls.Add(marquee);
marquee.Text=“欢迎来到Narsingham页面”; this.Controls.Add(选框);

将上面的代码放在项目中的
页面加载
下,然后您就可以得到您想要的。

您也要使用吗!:)这是一个内部网站,所有用户都使用IE6,所以浏览器兼容性不是问题。奇怪,因为你可以做到这一点。