p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

Go Back   p2p.wrox.com Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
I forgot my password
Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 18th, 2008, 04:58 AM
Registered User
 
Join Date: Mar 2008
Location: PUne, Maharashatra, India.
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...
__________________
Dhiraj
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old April 18th, 2008, 05:03 AM
Authorized User
 
Join Date: Oct 2007
Location: Everett, WA, USA.
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old April 18th, 2008, 08:52 AM
Wrox Author
Points: 13,101, Level: 49
Points: 13,101, Level: 49 Points: 13,101, Level: 49 Points: 13,101, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Akron, Ohio, USA.
Posts: 4,079
Thanks: 1
Thanked 52 Times in 52 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
================================================== =========
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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



All times are GMT -4. The time now is 12:46 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2010 Wiley Publishing, Inc