有没有办法找到ASP.NET MVC或ASP.NET Web表单开发的站点? 我想找到是否由ASP.NET MVC或ASP.NET Web表单开发的this站点. 通常,webform应用程序几乎没有 input type =“hidden”name =“__ EVENTTARGET”id =“
我想找到是否由ASP.NET MVC或ASP.NET Web表单开发的this站点.
通常,webform应用程序几乎没有>< input type =“hidden”name =“__ EVENTTARGET”id =“__ EVENTTARGET”value =“”/>
>< input type =“hidden”name =“__ EVENTARGUMENT”id =“_ _ EVENTARGUMENT”value =“”/>
>< input type =“hidden”name =“__ VIEWSTATE”id =“__ VIEWSTATE”value =“viewStateData”/>
还要考虑页面中的大多数元素
>名称看起来像ctl00 $childControl $childControl $anyName
> ID看起来像ctl00_childControl_childControl_anyName
肯定会有这样的阻止
<script type="text/javascript"> //<![CDATA[ var theForm = document.forms['aspnetForm']; function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } } //]]> </script>
对于ASP.NET MVC,How do I identify an ASP.NET MVC website?