Thursday, March 22, 2012

what is the correct syntax for the following if statement...

this does not work. does anyone know why?

<%# if GridView1.PageIndex = 1 then %>
hello
<%# end if %>

try removing the # symbol and see

<% if GridView1.PageIndex = 1 then %>
hello
<% end if %>

0 comments:

Post a Comment