Subject: HELPPP CustomEvents
Posted By: nichola_x_rose Post Date: 4/20/2008 11:07:37 AM
Can somebody please tell how I go about adding Custom events to my project. I'm rather new to asp.net and I'm building a site with similar functionality. I have got as far as making the project customs events and I have added the code to the vb class file. I know is seem silly but i could really us a step by step guide for completing the whole process for adding custome event project to my site.

Reply By: sbramall Reply Date: 4/20/2008 5:45:16 PM
Hi

Have you seen this video tutorial which explains all about custom classes and delegates in C#. Is it what you're looking for?

http://blogs.interfacett.com/dan-wahlins-blog/2007/1/18/video-creating-custom-events-and-delegates-with-c.html

Reply By: nichola_x_rose Reply Date: 4/20/2008 6:09:33 PM
I'm trying to add custom events using using vb.net. I created the customer events project with customevents vb file, but i wanted to know how i referenced to it in my main website. The book doesn't make this very clear.

Reply By: Lee Dumond Reply Date: 4/22/2008 11:44:14 AM
quote:
Originally posted by nichola_x_rose

I'm trying to add custom events using using vb.net. I created the customer events project with customevents vb file, but i wanted to know how i referenced to it in my main website. The book doesn't make this very clear.





1. Right-click on website in Solution Explorer,

2. Choose Add Reference...,

3. Choose Projects tab,

4. Click on the project that contains the custom events, then click OK.


Reply By: nichola_x_rose Reply Date: 4/22/2008 1:47:51 PM
When I right click on the solution explorer and click add reference is no project to select. What am I doing wrong?

Reply By: Lee Dumond Reply Date: 4/22/2008 3:31:03 PM
quote:
Originally posted by nichola_x_rose

When I right click on the solution explorer and click add reference is no project to select. What am I doing wrong?





You said that you already created a custom events project. You would want to add that project to the same solution as your website by using File | Add | Existing Project. Once the project is added to the Solution, it should show under the Projects tab in Add Reference.

Reply By: nichola_x_rose Reply Date: 4/22/2008 5:37:52 PM
Thanks Lee that method worked great. I think I should be ok now. But if i need any more help will you be able to assist.

Reply By: Lee Dumond Reply Date: 4/22/2008 8:41:30 PM
quote:
Originally posted by nichola_x_rose

Thanks Lee that method worked great. I think I should be ok now. But if i need any more help will you be able to assist.





I'm sure me or somebody else here will. Don't forget there is also another forum where you can ask questions too:

http://forums.asp.net/1115.aspx

Reply By: nichola_x_rose Reply Date: 4/24/2008 6:24:54 AM
Ok I managed to attach the Custom Events to my website and I have the following errors

Namespace or type specified in the Imports 'System.Web.Management' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.    

It also tell me that httpcontext webbasecodec and webbaseevent are not defined.

And could not load type 'MB.urbanEntertainment.WebCustomEvent' from assembly 'MB.urbanEntertainment.CustomEvents'.    

How do I resolves these problems to get customevents working


Go to topic 70826

Return to index page 1