Js reads a simple instance of of the number of clicks read from the database

  • 2020-03-30 02:19:28
  • OfStack

I'm going to get the total number of clicks per click

1. You can drag a hidden hidden button control on the server side, and then write the Click event of the button, which will fetch the total number of clicks from the database.

Assign the number of clicks to the Text property of a hidden TextBox control.

3. Triggers the click event of the server-side button control in your js validata() function
Fuction validata () "{document. GetElementById (" for"). Click ();
Var num = num (document. GetElementById (" TextBox1 "). The value) + 1; Return num. }

Num is the number of pictures clicked. I wrote it in notepad


Related articles: