Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 26542

capturing click event of the button

$
0
0

Hi All,

   I am trying to capture the click event of the button. Basically, I want an HTML table to be displayed if the button is clicked otheriwse I don't want anything to be displayed on the page.

Below is my code

 

<input type="submit" name="submit1" value="Apply Filter" onclick="return checkFilter()" />
if Request.Form("submit1")= "Apply Filter" then
' do something

else
' don't do anything
end if

Response.Write(Request.Form("submit1"))

when I am trying to do Response.Write then I am not getting any value for Request.Form("submit1")

My javascript code is simply this

<script language="javascript" type="text/javascript">
function checkFilter()
{

  return true


}
</script>

I am not sure how do I capture the value of the button when the button is clicked. I want to accomplish something if the button is clicked.

I am very new to asp. Any help will be highly appreciated.


Viewing all articles
Browse latest Browse all 26542

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>