无法将标准工具控件拖放到Web表单 [英] can't drag and drop standard tool control to web form

查看:64
本文介绍了无法将标准工具控件拖放到Web表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Web表单.试图将标签从工具箱拖动到设计"选项卡,但不允许我使用.

当我尝试将标准工具拖到同一Web表单中的源视图时.它允许我以语法为例

I created a web form. Tried to drag a label from toolbox to design tab, but it won''t allow me.

When I tried to drag a standard tool to source view in the same web form. It allow me to drad with a syntax for example

<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>



当我切换回设计"选项卡时,出现错误消息错误创建控件:Label1.

您是否遗漏了任何东西或如何解决此问题.

谢谢,



When i switch back to design tab, there was a error message "Error Creating Control: Label1.

Did you missing anything or how to fix this.

thanks,

推荐答案

如果它是旧版ASP页面(如问题上的标记所指示),则不能使用工具箱中的控件.您必须使用标准的HTML组件.
If it''s a legacy ASP page (as indicated by the tag on your question), you can''t use controls from the toolbox. You have to use standard HTML components.


这篇关于无法将标准工具控件拖放到Web表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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