Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In Asp.net, what is the usage of # and =, when we use it it in inline code ,...such as:
<%= something %>

and

<%# something %>


Please direct.
Regards,
Posted

used for bind data from source to controls (Data Binding Techniques)...
something field name or method name
 
Share this answer
 
When DataBinding, # is used. When referencing something, like a protected variable in the code behind or one of the controls on your page, then use =
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900