I have some serious problem to understand <br /><div><% %></div><div><%: %></div><div><%#EVAL #></div><div>and all others tags like these.</div><div> </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
you can make your variable as protected, and then call it on your web page using the code which i have posted below
1
Hi,
try the following tag:
<%= VariableName %>
So, Mark as answer if helpful
0
and how to call that variableName from code behind ?