By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,889 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,889 IT Pros & Developers. It's quick & easy.

Crazy C# to VB events

P: n/a
Howdy,

I'm writing a web application in VB.Net. I'm using C# for all of the
dynamic content on the vb pages. I'm currently building a VB page that
displays a table of pictures. The page calls a C# object that populates a
table with images and a couple of linkButtons for deleting and editing the
images. So the table is embedded into the page and looks like this (this
part works fine):

[Image] Edit Delete
[Image] Edit Delete
....
(Where [Image] is a picture. "Edit" and "Delete" are linkButtons. The C#
object simply creates this table on the VB page and is then destroyed.)

What I need is for the "Edit" and "Delete" buttons to trigger an event on
the VB page. If I place the events in the C# object then they will not fire
as the object will be destroyed as soon as the page is generated. I can't
place the events on the VB page because the linkButtons get created inside
of the C# object.

I'm somewhat new to events. I know how to use them in VB and I know how to
use them in C#. What I don't know is how to have the C# object call events
that are on the vb page. Do I have to pass around the delegate? I don't
know what I'm doing!

Any help would be appreciated.
Chris.
Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.