摆脱asp.net中的自动javascript事件 [英] get rid of autogenrated javascript event in asp.net

查看:63
本文介绍了摆脱asp.net中的自动javascript事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在asp.net appliaction我得到自动javascript事件,我真的不想要。我有一个名为登录的按钮,因为这个自动生成的javascript事件,我的客户端无法登录,这是自动生成的,我真的不知道为什么这是happing



用户控制.ascx文件中的Asp.net按钮



in asp.net appliaction i am getting autogenrated javascript event which i realy dont want. i have a button named login because of this autogenrated javascript events my client is not able to login which is genrated automatically and i realy dont know why this is happing

Asp.net Button in custome user Control .ascx file

<asp:Button ID="cmdLogin" runat="server" Text="Login" CssClass="Footer_button" 
 CommandName="login"  CausesValidation="True" />





正如您所看到的,按钮中根本没有任何事件,但是当我在任何浏览器中运行我的应用程序时,它会呈现自动生成的事件


AutoGenrated javascript活动





As you can see there is no event at all in the button but when i run my application in any browser it render the autogenrated event

AutoGenrated javascript event

<input name="ctl00$header1$slidingpanel1$Login1$cmdLogin" value="Login" id="ctl00_header1_slidingpanel1_Login1_cmdLogin" class="Footer_button" type="submit"
onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$header1$slidingpanel1$Login1$cmdLogin", "", true, "", "", false, false))">





i希望摆脱这种自动生成的onclick事件,而且它还会重新发布浏览器中aspnetform中的onsubmit事件





i want to get rid of this auto genrated onclick event and also it is rendring an onsubmit event in aspnetform in browser

<form name="aspnetForm" method="post" action="default.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="aspnetForm">



i想要摆脱这个自动javascript事件请帮助我解决这个问题,因为其他也可以有这个问题提前感谢


i want to get rid of this autogenrated javascript event Kindly help me regarding this issue as other can also have this problem Thank in advance

推荐答案

header1


slidingpanel1
slidingpanel1


Login1


这篇关于摆脱asp.net中的自动javascript事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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