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

Why session is necessary in web application?

516


What is the difference between CC and BCC?

618


What is data control in asp.net?

525


What are the session variables?

518


Can we set which type of comparison we want to perform by the CompareValidator control?

519






What is active web pages?

511


Can you explain architecture of your project ?

619


Is asp.net and .net same?

547


What is Pre-Render event in ASP.NET?

597


How does a content page differ from a master page?

510


What is meant by web application?

550


Write the different features of a Thread and a Process?

628


what is meant by sitemapnode ?

1507


Can we set master page as a start page?

549


is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?

1956