Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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