473,385 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Generating HTML code

I’m using the usual VisualStudio setup. That is to have a “Code Behind”
(somename.aspx.vb) file with all the code and the actual HTML code
somename.aspx) separate. I like this setup, but now I want to generate some
text and HTML code output using VB code and I want it to be placed in the
<body> part of my somename.aspx. If I use the Response.Write() method the
text is put in the beginning of the file. How can I generate text and HTML
using code in the <body></body> part of the file without placing all my code
there?
Nov 19 '05 #1
2 1336
Put server controls of your choice in the HTML and access them from
code-behind.

Eliyahu

"cnickl" <cn****@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
I'm using the usual VisualStudio setup. That is to have a "Code Behind"
(somename.aspx.vb) file with all the code and the actual HTML code
somename.aspx) separate. I like this setup, but now I want to generate some text and HTML code output using VB code and I want it to be placed in the
<body> part of my somename.aspx. If I use the Response.Write() method the
text is put in the beginning of the file. How can I generate text and HTML
using code in the <body></body> part of the file without placing all my code there?

Nov 19 '05 #2
> How can I generate text and HTML
using code in the <body></body> part of the file without placing all my
code
there?
Okay, first let me point out that generating HTML is what ASP.Net does. And
that's pretty much it. Just like ASP, ASP.Net creates dynamic web pages.

Second, this question begs a requirement. What is your business requirement
that drives the decision to "generate text and HTML using code in the
<body></body> part of the file without placing all my code there?"

It seems to me that you are jumping the gun a bit here. Apparently you have
just started studying ASP.Net. From your second sentence, it seems that you
are still struggling with concepts like "Code Behind." I would recommend
that you try to get a better grasp of how ASP.Net works before trying to
write code with it. Check out the tutorials in the .Net SDK. ASP.Net is
powerful, object-oriented, and event-driven. It is almost nothing like ASP.
And you don't construct an ASP.Net app in any way like you construct an ASP
app.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"cnickl" <cn****@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com... I'm using the usual VisualStudio setup. That is to have a "Code Behind"
(somename.aspx.vb) file with all the code and the actual HTML code
somename.aspx) separate. I like this setup, but now I want to generate
some
text and HTML code output using VB code and I want it to be placed in the
<body> part of my somename.aspx. If I use the Response.Write() method the
text is put in the beginning of the file. How can I generate text and HTML
using code in the <body></body> part of the file without placing all my
code
there?

Nov 19 '05 #3

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

Similar topics

0
by: Dan Gass | last post by:
The difflib.py module and the diff.py tools script in Python 2.4 alpha 3 now support generating side by side (with intra line differences) in HTML format. I have found this useful for performing...
14
by: Philippe C. Martin | last post by:
Hi, I wish to use an easy way to generate reports from wxPython and feel wxHtmlEasyPrinting could be a good solution. I now need to generate the HTML wxHtmlEasyPrinting can print: I need to...
1
by: Ryan Ginstrom | last post by:
I have been maintaining a body of documentation in plain HTML files. I would now like to automate the generation of the HTML files. Maintaining the HTML files now is tedious and error prone,...
2
by: embz | last post by:
this post concerns three pages. 1. this page: http://www.katherine-designs.com/sendemail.php i get the following errors: a lot of it seems to deal with the PHP code i inserted to the page....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...

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.