Showing variables in html

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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:]
 
Back
Top