Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 18th, 2008, 03:58 AM
Registered User
 
Join Date: Mar 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling a btn_click method

hi ,
I have executed the exe file of window form from command prompt and passing some parameter to that exe file.
Now i want to call the btn_submit_click(object sender,eventargs e) method without clicking the submit button..

How can we do that..
any guess...
 
Old April 18th, 2008, 04:03 AM
Authorized User
 
Join Date: Oct 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Any one of these forums would be a more appropriate location for your post...

http://p2p.wrox.com/visual-basic-13

You should try posting on one of those you find most appropriate to your question.

You won't find much help with windows applications on an ASP.Net form (web applications and web services are written with ASP.Net, not windows applications)

Good luck.

 
Old April 18th, 2008, 07:52 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You will have to let the program decide if/when this method should be called. You can not directly raise the buttons click event handler, AFAIK, from a console window. If you question is asking how do you call a buttons click event handler within code without the event being raised you could do something like this:

btn_sumbit_click(this, null);

hth.
-Doug

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Java Method via javascript basildudin J2EE 5 October 16th, 2008 12:00 AM
Calling a btn_click method without clicking it dhirajDac VB.NET 1 April 18th, 2008 08:24 AM
Calling a function on every method call Takashi321 General .NET 1 September 21st, 2007 09:33 AM
Calling a method from Linkbutton in DataList swifty_programmer ASP.NET 2.0 Basics 1 July 28th, 2007 05:32 AM
calling private method from another class jack_3 C# 3 December 16th, 2005 07:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.