473,785 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need Help Creating Web Pages Dynamically

I am using ASP.Net 2.0 and I need to create a web page on the fly based
on what information is in the database. The page is going to have
certain controls like text boxes and labels and buttons. I was
wondering what the best method is to carry this out. I was thinking
about using a class to generate the HTML on the fly or maybe a stored
procedure. Can anyone point me in the right direction? Thanks

Aug 14 '06 #1
5 1316
That's what ASP.net does, you use controls, bind them to data and it
generates the correct HTML. You need to go buy a decent asp.net book and
learn how to use it, a asp.net getting started tutorial is a bit beyond the
scope fo these forums.

I sugest this book
http://www.wrox.com/WileyCDA/WroxTit...470042583.html

"Kristen" wrote:
I am using ASP.Net 2.0 and I need to create a web page on the fly based
on what information is in the database. The page is going to have
certain controls like text boxes and labels and buttons. I was
wondering what the best method is to carry this out. I was thinking
about using a class to generate the HTML on the fly or maybe a stored
procedure. Can anyone point me in the right direction? Thanks

Aug 14 '06 #2
"Kristen" <cg********@hot mail.comwrote in message
news:11******** **************@ m79g2000cwm.goo glegroups.com.. .
>I am using ASP.Net 2.0 and I need to create a web page on the fly based
on what information is in the database. The page is going to have
certain controls like text boxes and labels and buttons. I was
wondering what the best method is to carry this out. I was thinking
about using a class to generate the HTML on the fly or maybe a stored
procedure. Can anyone point me in the right direction? Thanks
Creating web pages on the fly is precisely what ASP.NET does - ASP = Active
Server Pages...

I suggest you get yourself a beginner's guide to ASP.NET, and read it twice.
This would be a good one:

http://www.amazon.com/gp/product/047...509436?ie=UTF8
Aug 14 '06 #3

clickon wrote:
That's what ASP.net does, you use controls, bind them to data and it
generates the correct HTML. You need to go buy a decent asp.net book and
learn how to use it, a asp.net getting started tutorial is a bit beyond the
scope fo these forums.

I sugest this book
http://www.wrox.com/WileyCDA/WroxTit...470042583.html

"Kristen" wrote:
I am using ASP.Net 2.0 and I need to create a web page on the fly based
on what information is in the database. The page is going to have
certain controls like text boxes and labels and buttons. I was
wondering what the best method is to carry this out. I was thinking
about using a class to generate the HTML on the fly or maybe a stored
procedure. Can anyone point me in the right direction? Thanks
Aug 14 '06 #4
You don't understand what I am asking. I am not going to be building
the page at design I need to generate the controls and the page based
on what is in the database at runtime. In one case part of the page
will be built at design time and the rest is optional and may or may
not appear based on a certain database field.
clickon wrote:
That's what ASP.net does, you use controls, bind them to data and it
generates the correct HTML. You need to go buy a decent asp.net book and
learn how to use it, a asp.net getting started tutorial is a bit beyond the
scope fo these forums.

I sugest this book
http://www.wrox.com/WileyCDA/WroxTit...470042583.html

"Kristen" wrote:
I am using ASP.Net 2.0 and I need to create a web page on the fly based
on what information is in the database. The page is going to have
certain controls like text boxes and labels and buttons. I was
wondering what the best method is to carry this out. I was thinking
about using a class to generate the HTML on the fly or maybe a stored
procedure. Can anyone point me in the right direction? Thanks
Aug 14 '06 #5
"Kristen" <cg********@hot mail.comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
You don't understand what I am asking. I am not going to be building
the page at design I need to generate the controls and the page based
on what is in the database at runtime. In one case part of the page
will be built at design time and the rest is optional and may or may
not appear based on a certain database field.
Clickon and I understand perfectly what you are asking - what *you* need to
do is to get yourself a beginner's guide to ASP.NET (as we have both
suggested) and read it.

It is a perfectly simple thing to create controls dynamically at runtime in
response to database queries or whatever - the Page object is simply a
container for other controls, and how those controls are added to it are of
supreme irrelevance to it.

The design view of an aspx page is nothing more than a tool to aid
developers to build web pages in a more human-understandable way i.e.
graphically - you don't have to use it if you don't want to. You could even
build the entire page in code at runtime if you like, though that would
probably by symptomatic of a lack of proper planning and design.
Aug 14 '06 #6

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

Similar topics

2
3778
by: LIN | last post by:
Hello, Greetings. I am creating a web site which will contain lot of articles. I had been planning to create simple HTML page on the server everytime i posted a article (eg. article12.html ). Now, i want to show an advertisement on top of each of this html page. the ad banner has to be dynamically updated depending on date (period) the advertiser has planned to advertise for. So I thought of creating ASPx pages instead. Is it a good...
7
1327
by: nicholas | last post by:
Hello, Got a kind of e-commerce site. There are products with product options, such as color, size, etc All are defined a table: tbl_products: the table with the products. tbl_options: the table with the options (Columns are: optionID, parentoptionID, optionname).
6
1290
by: Gary Kahrau | last post by:
I am planning a very large project in vb.net and I want to make it modular. If the project needs 200-300 forms what do you think about creating a user control for each of these forms? The main program would dynamically load, place and dispose each one as required. Is this a good idea from application size, modularity, performance of slower PC's, etc. I am also considering creating all modular forms dynamically. The main program would...
3
1548
by: Mike Dee | last post by:
I posted this back in November 2005 a couple times but did not get any responses. I'm hoping someone here can please shed some light on this. I'm new to index server and can't get any DocTitle value back from index server (it is returned as null) for all my aspx pages. It do get the values from inside the <title> tags from my static .htm pages just fine. My aspx pages however are generated from master pages where the title tag is set...
12
1690
by: johannblake | last post by:
First off, I am NOT a beginner. I have lots of experience developing professional web sites and am a professional software developer. Unfortunately I've been out of web site development for the past 2 years but would like to get back into it. What I need is some advice to get me up-to-date on what is the best (or one of the best) ways of developing web sites and web applications. The following are my requirements: * Static web pages...
0
972
by: Learner | last post by:
Hello, We use Master Pages in our website and need a page to be created dynamically. I am not sure where I am missing but I don't see any error and the controls on the page either! Here is my dynamicpage.aspx page ********************************************************************************************************* <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="DynamicPage.aspx.vb"
5
1704
by: shapper | last post by:
Hello, In this moment I am creating all my aspx pages on my vb.code at runtime. It seems nonsense to have .aspx and .aspx.vb files in my projects. I am considering creating my pages on the fly using IHttpHandler. I already did that for delivering XML files.
20
4287
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black blob) ... all the pages were created in Notepad over the last
0
1374
by: Syoam4ka | last post by:
My project is about jewellery. I have devided my jewelery into main types, which each one of them has sub types, and each one those sub types has the jewellery. I have a tabcontainer. It includes tabpanels such as:Catalog,Terms,SiteMap.ViewCart ,etc. All the jewellery Intro is in the Catalog panel. when I first click the Catalog panel it Introduces me all the main types of the jewellery(It's all done dynamically from the cs file).The...
0
9647
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
9485
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
10161
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
10098
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
9958
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8986
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...
1
7506
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.