Difference between `<%#` and `<%=` and an asp.net ascx file?
- by jax
I understand that <%= is for returning a String
I seem to usually use <%# in my .ascx files.
For example the following works
OnClientClick=<%# String.Format("return confirm('Are you sure you wish to delete barcode ({0})?');", Eval("BARCODE") ) %>
The following does not work
OnClientClick=<%# String.Format("return confirm('Are you sure you wish to delete barcode ({0})?');", Eval("BARCODE") ) %>