Solved

Call private sub from web page

Posted on 2008-06-16
10
303 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
ID: 21794087
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
ID: 22322612
I have used a different solution to this problem.
0
 
LVL 23

Expert Comment

by:Christopher Kile
ID: 22325543
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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

Author Comment

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

Expert Comment

by:Christopher Kile
ID: 22346130
which set of controls?
0
 

Accepted Solution

by:
iepaul earned 0 total points
ID: 22346170
Netadvantage.
0
 
LVL 23

Expert Comment

by:Christopher Kile
ID: 22346221
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Generate Unique ID in VB.NET 21 104
vb.net background worker crossthread 11 30
VB.Net Data Class 1 21
VB6 calling COM DLL written in Visual Studio 2003 6 13
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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