eych
eych

Reputation: 1272

inline or databind expressions in ASP.NET

it's a related question to this one, but merits its' own question.
If I need to call a server-side function inside my EditItemTemplate of my DataList, should I use <%=ServerSideFunction(...)%> or <%#ServerSideFunction(...)%>?
Both work since there is a databind going on with the DataList

Upvotes: 1

Views: 1120

Answers (1)

anishMarokey
anishMarokey

Reputation: 11397

if you want to bind data use : <%#ServerSideFunction(...)%>

If you want to write(<% Response.Write( ) %>) something use : <%=ServerSideFunction(...)%>

Read this question : what are the <% %> constructs called in asp.net?

Upvotes: 1

Related Questions