Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Cannot call method in UserControl

Thread Tools

Cannot call method in UserControl

Peter Aitken
Posts: n/a
I have created a user control with a method in the code behind file. I want
to call this method from the user control, from the onclick event of a
button. However when I run the app and click the button I get a "type
mismatch" error at the point the method is called. What's wrong?

Peter Aitken

Remove the crap from my email address before using.

Reply With Quote

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call a Method in a UserControl from another UserControl ASP .Net Web Controls 1 08-11-2006 09:53 AM
UserControl event & method call sequence James Identity ASP .Net Building Controls 3 10-25-2005 05:10 PM
Access a control inside an usercontrol from another control inside another usercontrol nail ASP .Net 0 09-15-2004 03:55 PM
Can we use a usercontrol inside a usercontrol Rajesh Tiwari ASP .Net 0 08-12-2003 03:56 PM
Use LoadControl to load a usercontrol but the webcontrol in the usercontrol can not AutoPostBack huobazi ASP .Net 1 07-03-2003 03:14 AM