Click here to Skip to main content
15,917,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am trying to access a current year variable declared in code behind from the hyperlink template column of GridView in apsx page with <%=CurrYear%>. It is not working. Do I have to handle this in code behind only? Please let me know. Thanks.
Posted
Updated 25-Mar-10 0:22am
v2

Your variable CurrYear should be public or protected then only you can access it in the aspx page.
 
Share this answer
 
Thanks. I have it as a public variable. I am able to access it outside gridview but not inside.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900