asp.net - How to simulate a button click in C# with timer -


i want know how simulate click of button timer. want button pressed every 12 hours.

add below code timer tick event call button click event logic

btnsubmit_click(null, null) 

hoping wouldn't use args or sender inside logic. better way write common method can called button click , timer tick.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -