3
Answers

ASP.Net like PHP echo

Bilal Yaqoob

Bilal Yaqoob

8y
348
1
I have some serious problem to understand <br /><div>&lt;% %&gt;</div><div>&lt;%: %&gt;</div><div>&lt;%#EVAL #&gt;</div><div>and all others tags like these.</div><div>&nbsp;</div><div>My question is like how do we simply print a db value like we print in php echo $var;</div><div>Please suggest me a basic asp.net book so i can really understand what is asp.net web development. I find it very very complex as campared to PHP or even java</div>
Answers (3)
1
El Mahdi Archane
NA 5.9k 743.8k 8y
you can make your variable as protected, and then call it on your web page using the code which i have posted below
1
El Mahdi Archane
NA 5.9k 743.8k 8y
Hi,
try the following tag:
<%= VariableName %>
So, Mark as answer if helpful
0
Bilal Yaqoob
NA 8 354 8y
and how to call that variableName from code behind ?