How to call VB.Net components from user control

B

Bon

Hello all

How to call VB .NET components from user control?

My folder structures are: the upper folder called Bon and then there
are two sub-folders. One is called UserControls which is used to store
..aspx files and another one is called Components which is used to store
..vb files.

What code I should put in the .aspx file in order to call .vb file?

Thank you

Best regards
Bon
 
S

S.M. Altaf [MVP]

Bon,

It really depends on what the .vb files are for. What sort of components are they? Are they merely classes? As long as they're in your solution explorer, you should be able to simply declare a class of the type given in the .VB file.

You'll really need to elaborate more on what you're doing, and more importantly, WHAT the .vb files are.

-Altaf




--------------------------------------------------------------------------------

All that glitters has a high refractive index.
www.mendhak.com
Hello all

How to call VB .NET components from user control?

My folder structures are: the upper folder called Bon and then there
are two sub-folders. One is called UserControls which is used to store
.aspx files and another one is called Components which is used to store
.vb files.

What code I should put in the .aspx file in order to call .vb file?

Thank you

Best regards
Bon
 
B

Bon

Hello Altaf

The .VB files are classes, which contains methods for connecting
database and extracting data from database in order to show them in the
..aspx pages. For example, I have a drop down list box in the .aspx
page. When the user select the desired item, it will pass a parameter
to one of the methods in the .VB file. Then, the .VB file will return
the dataset to the .aspx page and display the data.

I have compile the .VB file and generate .dll file. By the way, do I
need to compile and generate .dll file? I am using ASP .NET Web Matrix
for creating my website.

Thanks

Bon
S.M. Altaf [MVP] 寫é“:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top