pbpgyw1909
New Member
I have defined a function that is called by a click on an asp:button control. This works fine.<BR>Now I want to call this function from code, without clicking on the button, or by simulating a click, from code. I get errors...<BR>Can someone show me code sample on how to do that ?<BR>Thanks very much.<BR>Why don't you simply have your event handler call the function? Then you can call the function directly from anywhere else in your program.<BR><BR>In addition, if you need to call the function from other programs, create it in it's own class so it's reusable anywhere