473,396 Members | 1,929 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,396 software developers and data experts.

Showing variables in html

I’m new to .NET-
How can I get my html page to display the custID variable --- Customer
<b><%# custID %> --- when the variable is declared in the code behind page?
It works just fine when using a code render block on the same page.

Jul 21 '05 #1
4 1596
page.databind

"Tome73" <To****@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
I'm new to .NET-
How can I get my html page to display the custID variable --- Customer
<b><%# custID %> --- when the variable is declared in the code behind
page?
It works just fine when using a code render block on the same page.

Jul 21 '05 #2
I have page.databind set on page_load, but still it doesn't work on the
codebehind.

"Jim M" wrote:
page.databind

"Tome73" <To****@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
I'm new to .NET-
How can I get my html page to display the custID variable --- Customer
<b><%# custID %> --- when the variable is declared in the code behind
page?
It works just fine when using a code render block on the same page.


Jul 21 '05 #3
You will have to post some code.

"Tome73" <To****@discussions.microsoft.com> wrote in message
news:03**********************************@microsof t.com...
I have page.databind set on page_load, but still it doesn't work on the
codebehind.

"Jim M" wrote:
page.databind

"Tome73" <To****@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
> I'm new to .NET-
> How can I get my html page to display the custID variable --- Customer
> <b><%# custID %> --- when the variable is declared in the code behind
> page?
> It works just fine when using a code render block on the same page.
>


Jul 21 '05 #4
The code behind is a class. you need to define the variable as a class
variable & tell the html code:

<%=this.custID%> .. perhaps some modification in the access modifier of the
variable will be required,like define it as protected or even public

Angel
O:]
"Tome73" <To****@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
I'm new to .NET-
How can I get my html page to display the custID variable --- Customer
<b><%# custID %> --- when the variable is declared in the code behind page? It works just fine when using a code render block on the same page.

Jul 21 '05 #5

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

Similar topics

4
by: Baz | last post by:
Hi. I'm new to this VB.Net mullarkey, and I must say it is proving to be a very trying experience. Here is the latest in a long line of problems: The Scenario ========= I am building an...
0
by: Baz | last post by:
Hi. I'm new to this VB.Net mullarkey, and I must say it is proving to be a very trying experience. Here is the latest in a long line of problems: The Scenario ========= I am building an...
2
by: Baz | last post by:
Hi. I'm new to this VB.Net mullarkey, and I must say it is proving to be a very trying experience. Here is the latest in a long line of problems: The Scenario ========= I am building an...
1
by: ollielaroo | last post by:
Hi guys, Firstly I did do a search for this one first but I couldn't find anything related in this forum. I am using Dreamweaver MX and trying to build admin pages for an ASP site. My problem is...
1
by: dosingh | last post by:
i've put this page together using asp, html, javascript amd flash. java passes a number of variables over to the flash file but the flash graph does not appear. The error which appears is...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
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...
0
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
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,...

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.