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++ - Can not find the "fiostream.h" file -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -