What is the difference between <%#%> and <%=%>?

Answer Posted / amit kumar

<%# %> is used for databinding
like <%#Eval("id") %>OR <%#Bind("id") %>
<%=%> is used only for printing something
like <%= DateTime.Now.ToString()%>

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is asp.net ajax?

535


How can u debug your .net application?

554


a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.

1419


What are the Types of object in asp

613


Is react a template engine?

494






What does ascx stand for?

489


What is a page life cycle?

550


Define static member?

513


What is application and session in asp.net?

511


Explain what are webservices?

515


What is query string?

550


Explain the steps to be followed to use passport authentication.

563


Is sql backend or frontend?

537


If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?

523


Why we go for mvc instead of asp.net? : Asp.Net MVC

466