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
views:
193answers:
1
+1
A:
if you want to bind data use : <%#ServerSideFunction(...)%>
If you want to write(<% Response.Write( ) %>) something use : <%=ServerSideFunction(...)%>
Read this question : http://stackoverflow.com/questions/1525424/what-are-the-constructs-called-in-asp-net/1525505#1525505
anishmarokey
2009-10-19 16:54:55
I use the ServerSideFunction to get a ClientID of a TextBox to call a javascript function. I guess that would go under binding?
eych
2009-10-19 17:18:38
I think you are RT :)
anishmarokey
2009-10-19 17:27:26