Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 8th, 2003, 07:09 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default How to output Response.write to certain location

do any one knows how to output reponse.write to certain loction or label prelocated in the page



Ahmed Ali
Software Developer
__________________
Ahmed Ali
Senior Software Developer
 
Old December 8th, 2003, 01:49 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You put an asp:label control in the location you want, then you set the label's text property to the text you want to show there. You should *almost* never need to use Response.Write in ASP.net.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old December 8th, 2003, 08:08 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

forgive me this my first steps to aspx so...
but i am transfearing all i know about asp to aspx so ...
do you have any links about transfearing from ASP to ASPX


Ahmed Ali
Software Developer
 
Old December 9th, 2003, 10:03 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In your .aspx page you should have something like this...
Code:
<asp:Label ID="theLabel" runat="server" />
and then you will be able to do something like this (VB)...
Code:
theLabel.Text = "mytext"
in your source code (e.g. in Page_load).

Be aware that is totally different from Classic ASP, so you might want to buy a book, a read some tutorials online. The basic idea is to seperate HTML from code.

Hope it helps!

Jacob.





Similar Threads
Thread Thread Starter Forum Replies Last Post
response.write crmpicco Classic ASP Basics 1 January 27th, 2005 06:31 PM
Response.Write output is of <body></body> yoord BOOK: Beginning ASP.NET 1.0 0 October 13th, 2004 07:06 AM
response.write netcrawler Classic ASP Databases 4 September 29th, 2004 10:13 AM
Response.write Sach Classic ASP Components 5 March 19th, 2004 06:40 AM
how to index output data using Response.write mqnguyen Classic ASP Basics 2 July 15th, 2003 11:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.