Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/274.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# .net生成onclick_C#_Asp.net_Html_Sharepoint_Web Parts - Fatal编程技术网

C# .net生成onclick

C# .net生成onclick,c#,asp.net,html,sharepoint,web-parts,C#,Asp.net,Html,Sharepoint,Web Parts,我正在做一个类似于 <form action="http://ServerName/fse5/main/FormPost.aspx" id="frmLogin" method="post" target="_blank"> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <%= CompleteRequest %> <input type="submit" n

我正在做一个类似于

<form action="http://ServerName/fse5/main/FormPost.aspx" id="frmLogin" method="post" target="_blank">
<table cellspacing="0" cellpadding="0" width="100%" border="0">
    <%= CompleteRequest %>
    <input type="submit" name="__exclude__Submit" value="Run Illustration Software Online" runat="server" />
</table>    
</form>
<input onclick="if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(''); " name="ctl00$PlaceHolderMain$IllustrationSoftwareComponent$ctl00" type="submit" value="Run Illustration Software Online" />

然而,当我呈现这个HTML时,输入标记看起来像

<form action="http://ServerName/fse5/main/FormPost.aspx" id="frmLogin" method="post" target="_blank">
<table cellspacing="0" cellpadding="0" width="100%" border="0">
    <%= CompleteRequest %>
    <input type="submit" name="__exclude__Submit" value="Run Illustration Software Online" runat="server" />
</table>    
</form>
<input onclick="if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(''); " name="ctl00$PlaceHolderMain$IllustrationSoftwareComponent$ctl00" type="submit" value="Run Illustration Software Online" />


ASP.net为什么要添加onClick和name属性?如何停止此操作?

要停止此操作,请不要通过添加runat=“server”将其设置为用户控件;看来你不想要/不需要它