PDA

View Full Version : writing the content of a code-behind-variable in aspx-page


earni23
03-31-2010, 02:05 PM
Hi guys!!
It was a while when I worked with asp.net so I have forgotten how to solve this. My question is: How do I write the content of code-behind-variable into a aspx-page. I donīt want to use a label!

accwebworks
03-31-2010, 09:39 PM
If you don't want to use label you can use <asp:Literal> or simply use this in your aspx page

<%= variableName %>

Make sure this variable is either protected or public.