473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

calling event function

I have define event handler call btnFind_Click
protected void btnFind_Click(object sender, EventArgs e)

{

....

}
What I want to do is calling this function from another function.
what should I do with the parameters coz I can't call this function using

btnFind_Click();

TIA
Gun
Aug 24 '06 #1
2 1020
Instead of trying to call this function directly, have your btnFind_Click
event handler call another function. That way you can reference it from
anywhere in your page's code.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
"Gunawan" <jg**********@gmail.comwrote in message
news:uP**************@TK2MSFTNGP04.phx.gbl...
>I have define event handler call btnFind_Click
protected void btnFind_Click(object sender, EventArgs e)

{

...

}
What I want to do is calling this function from another function.
what should I do with the parameters coz I can't call this function using

btnFind_Click();

TIA
Gun


Aug 24 '06 #2
Thanks Mark,
That is a workaround that never cross my mind.
Regards,
Gun

"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:eu**************@TK2MSFTNGP02.phx.gbl...
Instead of trying to call this function directly, have your btnFind_Click
event handler call another function. That way you can reference it from
anywhere in your page's code.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
"Gunawan" <jg**********@gmail.comwrote in message
news:uP**************@TK2MSFTNGP04.phx.gbl...
>>I have define event handler call btnFind_Click
protected void btnFind_Click(object sender, EventArgs e)

{

...

}
What I want to do is calling this function from another function.
what should I do with the parameters coz I can't call this function using

btnFind_Click();

TIA
Gun



Aug 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Yitzhak | last post by:
I am having "Permission denied" error while calling LogEvent method of WScript.Shell component. Basically, ASP page calls Windows Script Host Shell component to log events to the OS Application...
6
by: Jon Hyland | last post by:
Ok, I'm a little rusty on this, it should be a simple problem but I can't figure it out. How can I handle form events in my main code page?? I'm creating a Windows App in C#. Rather than make...
4
by: Zeebra3 | last post by:
Here goes: I have a web form with several asp:dropdownlists, with which, when selection is changed I want to fire an event defined in some clientside js. The content of the clientside code is...
4
by: Martin Feuersteiner | last post by:
Dear Group I'm using VB to write an aspnet application. I would like to call a javascript function from within a VB Sub or VB Function, is it possible? My code is something like this: VB...
3
by: Jason | last post by:
I have an ASP.NET application in which I would like to call my button click event (imgSubmitSearch_Click) on the page load if certain criteria are met. Is this possible? What is the correct...
3
by: Jayman777 | last post by:
Hello, I am using PHP 4.4.1 and am having problems retrieving an object from an array of objects and then calling a method on it. Here are two simple classes that I am using: class Day...
4
by: Edwin Gomez | last post by:
I'm a C# developer and I'm new to Python. I would like to know if the concept of Asynchronous call-backs exists in Python. Basically what I mean is that I dispatch a thread and when the thread...
5
by: Stinky Pete | last post by:
Hi (again) ;-) I'm still very much at the bottom of a steep learning curve with VB, so any and all help is always appreciated. I've found some code to generate the user names who have logged...
4
by: shivendravikramsingh | last post by:
hi friends,i have facing a problem,when i m calling a function on onLoad event of Body,function is not working.but if i call this function on any other event like onblur etc. it work fine.but my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.