How To Identify Submit() That Arrived From Javascript Method(not Button) In Asp.net
I have a list of users that in the end of each line in the table I added two links('href'): one for 'update' user and secend for 'delete' user. So for enable that I added a call to
Solution 1:
Why not puting another hidden input value :
<inputtype="hidden" name="txtJavascriptMode"id="txtJavascriptMode" value="">
then in your javascript code :
<script>functionexpertToDelete(expertID) {
document.getElementById('expertID').value = expertID;
document.getElementById('txtJavascriptMode').value = 'true';
document.getElementById('deleteExpert').submit ();
}
</script>
and in your serverside you can checkout
if(Request["txtJavascriptMode"] == "true")
{}
Post a Comment for "How To Identify Submit() That Arrived From Javascript Method(not Button) In Asp.net"