How to call VB.Net components from user control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bon

    How to call VB.Net components from user control

    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.M. Altaf [MVP]

    #2
    Re: How to call VB.Net components from user control

    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.

    "Bon" <bonnie.tangyn@ gmail.com> wrote in message news:1130599128 .659101.13570@o 13g2000cwo.goog legroups.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

    Comment

    • Bon

      #3
      Re: How to call VB.Net components from user control

      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] 寫道:
      [color=blue]
      > Bon,
      >
      > It really depends on what the .vb files are for. What sort of componentsare 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
      > "Bon" <bonnie.tangyn@ gmail.com> wrote in message news:1130599128 .659101..13570@ o13g2000cwo.goo glegroups.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[/color]

      Comment

      Working...