Please help me to solve this problem: I have a form in which i have written onSubmit calling a javascript function. please tell me in that javascript function how can i check that who was the event generater ( i mean on which button click this even raised).. Note: onsubmit function call is in form tag.. i am using javascript and asp.net My code is like this:
<form id="form1" runat="server" onsubmit="return CheckForm()">
<script type="text/javascript" language="javascript">
function CheckForm()
{
some code here
}
</script>
i dont want to change any functionality.. i have got a dropdownlist which is causing postback.. i want that when this dropdownlist raise post back either i should know that its raised by dropdownlist or that function should not be called by dropdownlist's postback