为什么服务器控件不显示? [英] Why the server controls do not show?

查看:47
本文介绍了为什么服务器控件不显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我尝试在ASP应用程序上使用WEB控件但是当我尝试在WEB上显示

时他们不会show。

它只是仅显示的HTML控件。

谢谢,

Doru

Hi,

I try to use WEB Controls on the ASP application but when I try to display
them on the WEB they don''t show.
It''s only the HTML controls that show only.
Thanks,
Doru

推荐答案

>我尝试在ASP应用程序上使用WEB控件,但当我尝试在WEB上显示
> I try to use WEB Controls on the ASP application but when I try to display
时,他们不会显示它们。
它只是仅显示的HTML控件。
them on the WEB they don''t show.
It''s only the HTML controls that show only.




您能否发布一些代码无法正确显示

控件的示例?


检查你是否有runat =" server"关于缺失的控件。


" Doru Roman" <做******* @ rogers.com>在消息中写道

news:uy ************** @ TK2MSFTNGP14.phx.gbl ...
Check that you have runat="server" on the missing controls.

"Doru Roman" <do*******@rogers.com> wrote in message
news:uy**************@TK2MSFTNGP14.phx.gbl...

我尝试在ASP应用程序上使用WEB控件,但当我尝试在WEB上显示它们时,它们不会显示。
它只是显示的HTML控件只有。
谢谢,
Doru
Hi,

I try to use WEB Controls on the ASP application but when I try to display
them on the WEB they don''t show.
It''s only the HTML controls that show only.
Thanks,
Doru



感谢Sosh和Paul的回复。

我用的runat =" server"

这是一个例子:


<%@ Page Language =" VB" %>

< script runat =" server"

sub Page_Load(obj as object,e as eventargs)

lblMessage.text =欢迎使用ASP.NET

end sub

< / script>


< htmlk>< body>


< asp:Label id =" lblMessage" RUNAT = QUOT;断绝" />

< / body>< / html>


这是在文本编辑器中创建的,但是当我使用Studio时也是如此br />
..Net(2002)创建一个ASP项目。
Thanks Sosh and Paul for the reply.
I use the runat="server"
Here is an example:

<%@ Page Language="VB" %>
<script runat="server"
sub Page_Load(obj as object, e as eventargs)
lblMessage.text = "Welcome to ASP.NET"
end sub
</script>

<htmlk><body>

<asp:Label id="lblMessage" runat="sever" />
</body></html>

This was created in a text editor, but it same happens when I use Studio
..Net (2002) to create an ASP project.


这篇关于为什么服务器控件不显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆