Solved

Call private sub from web page

Posted on 2008-06-16
10
299 Views
Last Modified: 2008-09-02
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
Comment
Question by:iepaul
  • 4
  • 3
10 Comments
 
LVL 23

Expert Comment

by:Christopher Kile
Comment Utility
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
 

Author Comment

by:iepaul
Comment Utility
I have used a different solution to this problem.
0
 
LVL 23

Expert Comment

by:Christopher Kile
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:iepaul
Comment Utility
I bought some controls to acheive what I needed to do.
0
 
LVL 23

Expert Comment

by:Christopher Kile
Comment Utility
which set of controls?
0
 

Accepted Solution

by:
iepaul earned 0 total points
Comment Utility
Netadvantage.
0
 
LVL 23

Expert Comment

by:Christopher Kile
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now