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

Capture and play voice with Asterisk ARI -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -

magic numbers - Java's checkstyle, MagicNumberCheck -