[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

Call private sub from web page

I have a vb sub routine that draws a graphic.  I want to place this graphic in several places on my web page.  I am happy to use panels or tables to get them positioned on screen.  How do I call the sub routine from the web page source?

To test I called the sub routine from form_load and it works.
0
iepaul
Asked:
iepaul
  • 4
  • 3
1 Solution
 
Christopher KileCommented:
You call your subroutine from SERVER code (either a server script in your web page or from the code-behind page).  Build a bitmap, write your image on it, save it to a virtual directory, then reference it in your web page.

I'll be glad to break down each of these parts as you need it, but I'll probably need to see your code if you need help saving it to an image file of some sort.
0
 
iepaulAuthor Commented:
I have used a different solution to this problem.
0
 
Christopher KileCommented:
iepaul,

It is customary to share your solution here if you found it yourself.  Please, tell us how you solved it.  Thanks in advance.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
iepaulAuthor Commented:
I bought some controls to acheive what I needed to do.
0
 
Christopher KileCommented:
which set of controls?
0
 
iepaulAuthor Commented:
Netadvantage.
0
 
Christopher KileCommented:
iepaul,

Thanks :)

MODERATORS,

I recommend a PAQ - refund.  Using third-party controls as a solution obviates any suggestions I made, and since they solved the problem iepaul deserves his points back.
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now