473,480 Members | 2,057 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Write to webpage from code behind

Ben
Hi

I have a string variable which is populated in the Page Load sub of my vb
code behind for my webpage.

I cannot seem seem to write this text to the webpage.

What is the best method of achiving this.

Thanks
B
Nov 19 '05 #1
2 1228
Typically you put a literal on the webpage ala:
<asp:literal id="lit" runat="server" />

declare it in codebehind:

protected lit as Literal
Sub Page_Load(..)
lit.Text= "someValue"
end Sub

Karl
"Ben" <Be*@NoSpam.com> wrote in message
news:uE**************@TK2MSFTNGP10.phx.gbl...
Hi

I have a string variable which is populated in the Page Load sub of my vb
code behind for my webpage.

I cannot seem seem to write this text to the webpage.

What is the best method of achiving this.

Thanks
B

Nov 19 '05 #2
Put a Label or Panel control on the page. Populate it with your string.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Ben" <Be*@NoSpam.com> wrote in message
news:uE**************@TK2MSFTNGP10.phx.gbl...
Hi

I have a string variable which is populated in the Page Load sub of my vb
code behind for my webpage.

I cannot seem seem to write this text to the webpage.

What is the best method of achiving this.

Thanks
B

Nov 19 '05 #3

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

Similar topics

3
2468
by: GraVity via DotNetMonster.com | last post by:
Hello all I am new to asp.net or web programming I have a requirement, I have to submit a document to another server using my webpage, there is a perticular protocol for doing that. This protocol...
2
1888
by: | last post by:
Hey All, I'm using response.write to create a dymantic webpage. Basically just write the HTML out with response.write. The problem I am having is that when I do this it puts the Meta tag info...
4
2623
by: etropic | last post by:
Im confused I want an .aspx page to have a table with my data in it. At first I wrote FillTablew(); in my Page_Load even in the Code Behind file. I had it loop the db etc. and use Response.Write...
7
4566
by: oz | last post by:
Hi, just wondering about the following. if you put this statement in the page load event of the code behind file. Response.Write("Hello Asp.net"); Then run the page, then use the view source...
7
1443
by: klynn | last post by:
I'm wondering what the best way to do the following: I have a page with a table. I built a custom class that creates a System.Web.UI.WebControls table object and return it to the webpage as a...
1
1835
by: Lyners | last post by:
I am trying to figure out how to do this. I have created a form on a webpage that shows users that you can edit or delete. I have a hyperlink to another webpage that adds users. The "Add Users"...
4
2183
by: Feng Chun | last post by:
Hi, need help for this. In asp.net, when I do a load balancing on my website, which means there are 2 or more servers behind, one of my webpage needs to read/write a temp file in the server. But...
6
1447
by: Anton Vredegoor | last post by:
Since a few days I've been experimenting with a construct that enables me to send the sourcecode of the web page I'm reading through a Python script and then into a new tab in Mozilla. The new tab...
14
2081
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I tried a google search but could not find anything. I am trying to cause one webpage to reload when a second web page is closed. The second webpage loads data into a session variable and when...
0
6911
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
7091
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...
1
6743
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...
0
6966
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...
0
5344
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,...
1
4787
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...
0
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2999
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...
1
564
muto222
php
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.