473,695 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

In Visual Basic 2008 create aspx web pages programmaticall y

I am working with Visual Studio or alternately with Expression Web. I need
to create about 50 aspx pages with about 1200 thumbnali images, typically
arranged in three to four groups per page, having hyperlinks to the
corresponding full size images.

Can anybody point me to locations in MSDN or elsewhere giving the references
to attach, the commands & objects for creating or opening the pages and
possibly available classes?

I have done equivalent things with Excel where the corresponding references
workboook & worksheet commands, etc, are widely available.

Any direction would be appreciated.

Peter K

Jul 11 '08 #1
11 2951
Peter K wrote:
I am working with Visual Studio or alternately with Expression Web.
I need to create about 50 aspx pages with about 1200 thumbnali
images, typically arranged in three to four groups per page, having
hyperlinks to the corresponding full size images.

Any direction would be appreciated.
If it's just a case of presenting an entire folder full of images one page
at a time, you should be able to do that with two pages: one for the
thumbnails and one for the preview.

Thumbnails page:
Read the content of the thumbnail images folder and make a <tablefrom a
suitable number of them.
Include prev/next page links which have URLs which post back to the
thumbnail page with the page number in, for choosing which set of thumbnails
to put in the <table>
Give each thumbnail an <ato the preview page, include the image reference
in the URL so the preview page can put the appropriate src= in the <img>
element.

Preview page:
Get the image's filename from Request.QuerySt ring("whateverY ouCalledIt")

If the sets of thumbnails are to be distinguished by, e.g. part of the file
name, then you can use the same approach but limit each page to images with
a particular part of the file name.

Don't worry about the time taken to read the directory contents on every
access of the page: the OS will take care of any caching needed.

Otherwise, what is your data source for determining which images go in which
groups on which pages?

Andrew
Jul 11 '08 #2
On Jul 11, 5:47*am, Peter K <Pet...@discusi ons.microsoft.c omwrote:
I am working with Visual Studio or alternately with Expression Web. *I need
to create about 50 aspx pages with about 1200 thumbnali images, typically
arranged in three to four groups per page, having hyperlinks to the
corresponding full size images.

Can anybody point me to locations in MSDN or elsewhere giving the references
to attach, the commands & objects for creating or opening the pages and
possibly available classes?

I have done equivalent things with Excel where the corresponding references
workboook & worksheet commands, etc, are widely available.

Any direction would be appreciated.

Peter K
I agree, I wouldn't try to programmaticall y create 50 pages, I'd
create as few of pages as possible pages (say 1 or 2) that could
handle the content of all the other pages.

Thanks,

Seth Rowe [MVP]
Jul 11 '08 #3
Thxs for your reply. Yes, I could do it that way.

However,my main problem is that I cannot find anywhere what references to
attach to the project, what objects to use, etc. I know how to create an
Excel application, open a workbook, move between work sheets, read & write in
those pages, save the file, close the workbook, etc. These are widely
available.

I need the equivalent items for aspx web pages. What are the libraries, how
do I create the application, create/open a page, etc.

Again, I'd appreciate any advise in that direction. Have searched MSDN, VB
samples, etc. Found nothing relevant to that situation.

Peter K

"Andrew Morton" wrote:
Peter K wrote:
I am working with Visual Studio or alternately with Expression Web.
I need to create about 50 aspx pages with about 1200 thumbnali
images, typically arranged in three to four groups per page, having
hyperlinks to the corresponding full size images.

Any direction would be appreciated.

If it's just a case of presenting an entire folder full of images one page
at a time, you should be able to do that with two pages: one for the
thumbnails and one for the preview.

Thumbnails page:
Read the content of the thumbnail images folder and make a <tablefrom a
suitable number of them.
Include prev/next page links which have URLs which post back to the
thumbnail page with the page number in, for choosing which set of thumbnails
to put in the <table>
Give each thumbnail an <ato the preview page, include the image reference
in the URL so the preview page can put the appropriate src= in the <img>
element.

Preview page:
Get the image's filename from Request.QuerySt ring("whateverY ouCalledIt")

If the sets of thumbnails are to be distinguished by, e.g. part of the file
name, then you can use the same approach but limit each page to images with
a particular part of the file name.

Don't worry about the time taken to read the directory contents on every
access of the page: the OS will take care of any caching needed.

Otherwise, what is your data source for determining which images go in which
groups on which pages?

Andrew
Jul 11 '08 #4
On Jul 11, 11:43*am, Peter K <Pet...@discusi ons.microsoft.c omwrote:
Thxs for your reply. *Yes, I could do it that way.

However,my main problem is that I cannot find anywhere what references to
attach to the project, what objects to use, etc. *I know how to create an
Excel application, open a workbook, move between work sheets, read & write in
those pages, save the file, close the workbook, etc. *These are widely
available.

I need the equivalent items for aspx web pages. *What are the libraries, how
do I create the application, create/open a page, etc.

Again, I'd appreciate any advise in that direction. *Have searched MSDN, VB
samples, etc. *Found nothing relevant to that situation.

Peter K

"Andrew Morton" wrote:
Peter K wrote:
I am working with Visual Studio or alternately with Expression Web.
I need to create about 50 aspx pages with about 1200 thumbnali
images, typically arranged in three to four groups per page, having
hyperlinks to the corresponding full size images.
Any direction would be appreciated.
If it's just a case of presenting an entire folder full of images one page
at a time, you should be able to do that with two pages: one for the
thumbnails and one for the preview.
Thumbnails page:
Read the content of the thumbnail images folder and make a <tablefroma
suitable number of them.
Include prev/next page links which have URLs which post back to the
thumbnail page with the page number in, for choosing which set of thumbnails
to put in the <table>
Give each thumbnail an <ato the preview page, include the image reference
in the URL so the preview page can put the appropriate src= in the <img>
element.
Preview page:
Get the image's filename from Request.QuerySt ring("whateverY ouCalledIt")
If the sets of thumbnails are to be distinguished by, e.g. part of the file
name, then you can use the same approach but limit each page to images with
a particular part of the file name.
Don't worry about the time taken to read the directory contents on every
access of the page: the OS will take care of any caching needed.
Otherwise, what is your data source for determining which images go in which
groups on which pages?
Andrew
http://www.asp.net/learn/videos/

Don't take this the wrong way - but you need more basic help than this
ng should supply (imo). The above link has some good videos, but I'd
recommend getting an ASP.NET book and download Visual Web Developer
Express if you don't have the full version of Visual Studio.

Thanks.

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Jul 11 '08 #5
Thxs for your reply.

I'm not quite sure what you mean by creating 'one or two pages that could
handle the contents of all the other pages'. There are 1200 image addresses
& 1200 thumbnail addresses (available in a sreadsheet as well as in an SQL
database) & they all have to be put onto web pages. That's not a job to do
one by one.

I wrote a program to create the folders & place the images into the folders,
another one to create the thumbnails, also placed into the set of folders.
All those things are well available & documented in MSDN & in many other
places.

However, for creating aspx web pages I have not been able to find the
equivalent info, which references/libraries to attach to the project, what
objects to use to define the application & to create/open pages, & write to
them.

I'd appreciate any help in that direction.

Peter K

What I cannnot find is what

"rowe_newsgroup s" wrote:
On Jul 11, 5:47 am, Peter K <Pet...@discusi ons.microsoft.c omwrote:
I am working with Visual Studio or alternately with Expression Web. I need
to create about 50 aspx pages with about 1200 thumbnali images, typically
arranged in three to four groups per page, having hyperlinks to the
corresponding full size images.

Can anybody point me to locations in MSDN or elsewhere giving the references
to attach, the commands & objects for creating or opening the pages and
possibly available classes?

I have done equivalent things with Excel where the corresponding references
workboook & worksheet commands, etc, are widely available.

Any direction would be appreciated.

Peter K

I agree, I wouldn't try to programmaticall y create 50 pages, I'd
create as few of pages as possible pages (say 1 or 2) that could
handle the content of all the other pages.

Thanks,

Seth Rowe [MVP]
Jul 11 '08 #6

"Peter K" <Pe****@discusi ons.microsoft.c omwrote in message
news:38******** *************** ***********@mic rosoft.com...
Thxs for your reply.

I'm not quite sure what you mean by creating 'one or two pages that could
handle the contents of all the other pages'. There are 1200 image
addresses
& 1200 thumbnail addresses (available in a sreadsheet as well as in an SQL
database) & they all have to be put onto web pages. That's not a job to
do
one by one.

I wrote a program to create the folders & place the images into the
folders,
another one to create the thumbnails, also placed into the set of folders.
All those things are well available & documented in MSDN & in many other
places.

However, for creating aspx web pages I have not been able to find the
equivalent info, which references/libraries to attach to the project, what
objects to use to define the application & to create/open pages, & write
to
them.

I'd appreciate any help in that direction.

Peter K

What I cannnot find is what

"rowe_newsgroup s" wrote:
>On Jul 11, 5:47 am, Peter K <Pet...@discusi ons.microsoft.c omwrote:
I am working with Visual Studio or alternately with Expression Web. I
need
to create about 50 aspx pages with about 1200 thumbnali images,
typically
arranged in three to four groups per page, having hyperlinks to the
corresponding full size images.

Can anybody point me to locations in MSDN or elsewhere giving the
references
to attach, the commands & objects for creating or opening the pages and
possibly available classes?

I have done equivalent things with Excel where the corresponding
references
workboook & worksheet commands, etc, are widely available.

Any direction would be appreciated.

Peter K

I agree, I wouldn't try to programmaticall y create 50 pages, I'd
create as few of pages as possible pages (say 1 or 2) that could
handle the content of all the other pages.

Thanks,

Seth Rowe [MVP]
Part of the following starter kit contains a photo album system. While it
may not be exactly what you are looking for I am sure that code will point
you in the right direction and perhaps change your approach to the asp.net
approach.

http://msdn.microsoft.com/en-us/vbasic/cc533486.aspx

Also you may have more luck with response by posting questions to the
asp.net forum. microsoft.publi c.dotnet.framew ork.aspnet

Hope this helps
LS

Jul 11 '08 #7
Thxs again.

I have Visual Studio Pro 2008 and have used it extensively. Neither in the
built in help, nor at MSDN have I so far found anything relevant to my
problem.

I have pretty much studied almost all chapters of Scott Michels ' Sams Teach
Yourself ASP.NET 2.0' and have extensively used it, where applicable. In
particular, I have looked over the last three chapters, where he develops a
full application of a multi-user photo album site. None of it is applicable
to my problem at hand, programmaticall y creating a set of about 50 aspx web
pages.

I am a subscriber to https://www.learnvisualstudio.net/ & have seen &
worked through many of their videos and used the info, where applicable.
Again, I have not found anything relevant to my current problem.

To programmaticall y write web aspx pages I need to attach
references/libraries/namespaces/classes to the project, which ones?
I then must use objects from the above to create/open the files, etc. For
MS Office this is well documented & widely available, I cannot find anything
for my current problem.

Again, any help would be appreciated.

Peter K
Excel application, open a workbook, move between work sheets, read & write in
those pages, save the file, close the workbook, etc. These are widely
available.

I need the equivalent items for aspx web pages. What are the libraries, how
do I create the application, create/open a page, etc.

Again, I'd appreciate any advise in that direction.

"rowe_newsgroup s" wrote:
On Jul 11, 11:43 am, Peter K <Pet...@discusi ons.microsoft.c omwrote:
Thxs for your reply. Yes, I could do it that way.

However,my main problem is that I cannot find anywhere what references to
attach to the project, what objects to use, etc. I know how to create an
Excel application, open a workbook, move between work sheets, read & write in
those pages, save the file, close the workbook, etc. These are widely
available.

I need the equivalent items for aspx web pages. What are the libraries, how
do I create the application, create/open a page, etc.

Again, I'd appreciate any advise in that direction. Have searched MSDN, VB
samples, etc. Found nothing relevant to that situation.

Peter K

"Andrew Morton" wrote:
Peter K wrote:
I am working with Visual Studio or alternately with Expression Web.
I need to create about 50 aspx pages with about 1200 thumbnali
images, typically arranged in three to four groups per page, having
hyperlinks to the corresponding full size images.
Any direction would be appreciated.
If it's just a case of presenting an entire folder full of images one page
at a time, you should be able to do that with two pages: one for the
thumbnails and one for the preview.
Thumbnails page:
Read the content of the thumbnail images folder and make a <tablefrom a
suitable number of them.
Include prev/next page links which have URLs which post back to the
thumbnail page with the page number in, for choosing which set of thumbnails
to put in the <table>
Give each thumbnail an <ato the preview page, include the image reference
in the URL so the preview page can put the appropriate src= in the <img>
element.
Preview page:
Get the image's filename from Request.QuerySt ring("whateverY ouCalledIt")
If the sets of thumbnails are to be distinguished by, e.g. part of the file
name, then you can use the same approach but limit each page to images with
a particular part of the file name.
Don't worry about the time taken to read the directory contents on every
access of the page: the OS will take care of any caching needed.
Otherwise, what is your data source for determining which images go in which
groups on which pages?
Andrew

http://www.asp.net/learn/videos/

Don't take this the wrong way - but you need more basic help than this
ng should supply (imo). The above link has some good videos, but I'd
recommend getting an ASP.NET book and download Visual Web Developer
Express if you don't have the full version of Visual Studio.

Thanks.

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Jul 11 '08 #8

Thxs,

I'll have a look at the reference & also do further posts at the suggested URL

Peter K
"Lloyd Sheen" wrote:
>
"Peter K" <Pe****@discusi ons.microsoft.c omwrote in message
news:38******** *************** ***********@mic rosoft.com...
Thxs for your reply.

I'm not quite sure what you mean by creating 'one or two pages that could
handle the contents of all the other pages'. There are 1200 image
addresses
& 1200 thumbnail addresses (available in a sreadsheet as well as in an SQL
database) & they all have to be put onto web pages. That's not a job to
do
one by one.

I wrote a program to create the folders & place the images into the
folders,
another one to create the thumbnails, also placed into the set of folders.
All those things are well available & documented in MSDN & in many other
places.

However, for creating aspx web pages I have not been able to find the
equivalent info, which references/libraries to attach to the project, what
objects to use to define the application & to create/open pages, & write
to
them.

I'd appreciate any help in that direction.

Peter K

What I cannnot find is what

"rowe_newsgroup s" wrote:
On Jul 11, 5:47 am, Peter K <Pet...@discusi ons.microsoft.c omwrote:
I am working with Visual Studio or alternately with Expression Web. I
need
to create about 50 aspx pages with about 1200 thumbnali images,
typically
arranged in three to four groups per page, having hyperlinks to the
corresponding full size images.

Can anybody point me to locations in MSDN or elsewhere giving the
references
to attach, the commands & objects for creating or opening the pages and
possibly available classes?

I have done equivalent things with Excel where the corresponding
references
workboook & worksheet commands, etc, are widely available.

Any direction would be appreciated.

Peter K

I agree, I wouldn't try to programmaticall y create 50 pages, I'd
create as few of pages as possible pages (say 1 or 2) that could
handle the content of all the other pages.

Thanks,

Seth Rowe [MVP]

Part of the following starter kit contains a photo album system. While it
may not be exactly what you are looking for I am sure that code will point
you in the right direction and perhaps change your approach to the asp.net
approach.

http://msdn.microsoft.com/en-us/vbasic/cc533486.aspx

Also you may have more luck with response by posting questions to the
asp.net forum. microsoft.publi c.dotnet.framew ork.aspnet

Hope this helps
LS

Jul 11 '08 #9
On Jul 11, 12:03*pm, Peter K <Pet...@discusi ons.microsoft.c omwrote:
Thxs for your reply.

I'm not quite sure what you mean by creating 'one or two pages that could
handle the contents of all the other pages'. *There are 1200 image addresses
& 1200 thumbnail addresses (available in a sreadsheet as well as in an SQL
database) *& they all have to be put onto web pages. *That's not a job to do
one by one.

I wrote a program to create the folders & place the images into the folders,
another one to create the thumbnails, also placed into the set of folders.. *
All those things are well available & documented in MSDN & in many other
places.

However, for creating aspx web pages I have not been able to find the
equivalent info, which references/libraries to attach to the project, what
objects to use to define the application & to create/open pages, & write to
them.

I'd appreciate any help in that direction.

Peter K

What I cannnot find is what

"rowe_newsgroup s" wrote:
On Jul 11, 5:47 am, Peter K <Pet...@discusi ons.microsoft.c omwrote:
I am working with Visual Studio or alternately with Expression Web. *I need
to create about 50 aspx pages with about 1200 thumbnali images, typically
arranged in three to four groups per page, having hyperlinks to the
corresponding full size images.
Can anybody point me to locations in MSDN or elsewhere giving the references
to attach, the commands & objects for creating or opening the pages and
possibly available classes?
I have done equivalent things with Excel where the corresponding references
workboook & worksheet commands, etc, are widely available.
Any direction would be appreciated.
Peter K
I agree, I wouldn't try to programmaticall y create 50 pages, I'd
create as few of pages as possible pages (say 1 or 2) that could
handle the content of all the other pages.
Thanks,
Seth Rowe [MVP]
Are you saying you want to create a page for each image? If so, I
don't see any reason to use aspx pages, you can simply use html pages
that just have image tags in the content. You could write a simple
console application that went through the images, created a file
stream, and then outputted the html text to the file.

My personal preference would be to create a page that takes a
parameter, say from the query string, and use it to retrieve the image
from the database and display it. I'm guessing the fields in the Sql
database have a unique identifier (say an int primary key) - that's
what I would pass in through the query string. ASP.NET has an image
control that you could change the ImageUrl property during init or
load based on the query string. For the thumbnails, you could simply
have a collection of ASP.NET image button controls that redirect to
the large image (passing in the correct query string parameters).
These controls should be built dynamically and the page should be
cached for performance.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Jul 11 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1679
by: Brian Barnes | last post by:
I am trying to create a template code behind file for a website which all pages should be inherited from. This base class however, when I try to view the aspx page in Visual studio .NET (2002), it gives me the error: The file failed to load in the web form designer. Plese correct the following error, then load it again: An exception occurred while trying to create an instance of GManWebSync.templates.WebBase (the base class). The...
3
2035
by: Joe | last post by:
Hi, I am new to creating .asp web sites and have a basic question. I have a website with .html pages running on an IIS server with .Net installed. I also have a couple of forms on the website. Some of them send email and others store information entered by the user in the MS Access DB. The database is small at this time and is growing slowly. The forms are .aspx pages coded using VB.NET. These .aspx pages work fine. Although the...
8
6266
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
0
16003
by: =?Utf-8?B?S29uc3RhbnRpbg==?= | last post by:
I am currently working on the application that need to simulate basic authentication programmatically using user's credentials that are known. Basically, the need is for a single sign on with a third party application. The scenario is the following: a third party application (iChain I believe, from Novell) is used to authenticate the user against Novell eDirectory. Once authentication is complete a user is taken to a portal from which they...
3
2130
by: Saucer Man | last post by:
Is this only available as part of Visual Studio or can it be purchased separately? -- Thanks!
0
928
by: =?Utf-8?B?UGV0ZXIgSw==?= | last post by:
I am working with Visual Studio or alternately with Expression Web. I need to create about 50 aspx pages with about 1200 thumbnali images, typically arranged in three to four groups per page, having hyperlinks to the corrtesponding full size images. Can anybody point me to locations in MSDN or elsewhere giving the references to attach, the commands & objects for creating or opening the pages and possibly available classes? I have...
6
4891
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my other pc, and running it I get an error. The Dataset loads properly, but when the button is pushed to view the report I get this error: ************** Exception Text **************
4
3307
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website: https://www.sdn.sap.com/irj/sdn/businessobjects-downloads ..NET Utility CR 2008 Merge Modules for the .NET Framework ZIP 74.716 Windows English 12.03.2008 and it states:
3
10507
by: Johnson | last post by:
I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual Studio 2008 issue -- thus posting to 3 groups. Please don't be offended. The problem I'm encountering is that Visual Studio closes unexpectedly and without any error message being displayed, or error messages written to the system logs. Visual Studio closes when I attempt to open an ASP.NET Web application (not Web site) solution for which IIS is set as the project's...
0
8617
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8553
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9112
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8971
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8822
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4570
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2251
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.