为什么我们使用“runat =”服务器" [英] why we use the "runat ="server"

查看:84
本文介绍了为什么我们使用“runat =”服务器"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我们使用Runat =servsrlese用某些词解释我

why we use the Runat=" servsr" lese explain me it in some words

推荐答案

为什么我们使用Runat =servsr [ ^ ]


引用:

我一直认为有更多的理解是你可以混合ASP.NET标签和HTML标签,HTML标签有是否runat =server的选项。保留标签不会造成任何损害,并且会导致编译器错误将其取出。你对Web语言的暗示越多,新手程序员进入和学习它就越不容易。对于标签属性来说,这是一个很好的理由。



请查看以下链接了解更多信息。





为什么ASP.NET webforms需要Runat =Server属性



I've always believed it was there more for the understanding that you can mix ASP.NET tags and HTML Tags, and HTML Tags have the option of either being runat="server" or not. It doesn't hurt anything to leave the tag in, and it causes a compiler error to take it out. The more things you imply about web language, the less easy it is for a budding programmer to come in and learn it. That's as good a reason as any to be verbose about tag attributes.

Please check below link for more info.


Why does ASP.NET webforms need the Runat="Server" attribute


使用我们必须使用的控件runat ='server'。我们可以使用runat ='client'。
to use the control we have to use runat='server'.otherwise we can use runat='client'.


这篇关于为什么我们使用“runat =”服务器"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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