VB Code:
<%
dim btn
bttn= Request.form("ButtonClicked")
if bttn="Add" then
response.write "you pressed add button<br>"
elseif bttn="Edit" then
response.write "you pressed edit button<br>"
end if
%>
<head>
<script>
function SetClick(v)
{
document.form1.buttonclicked.value=v;
document.form1.submit();
}
</script>
</head>
Click one of the Button !
<form name=form1 action="" method=post>
<input type=hidden name=buttonclicked>
<input type=button name=Add value=Add onclick="javascript:SetClick('Add');">
<input type=button name=Edit value=Edit onclick="javascript:SetClick('Edit');">
</form>