Archive for December, 2009

modify Visible function in repeater of gridview control

Problem:
display label with the text full if the current field equal to zero in repeater or gridview

Solution:
<asp:Label ID=”Label1″ runat=”server” Text=”Full” ForeColor=”Red” Visible=’<%# Convert.ToBoolean(Eval(“name of your field”).ToString().Equals(“0″)? “true”:”false”) %>’>

javascript back button work in IE and FF

Problem:
Need javascript back button which work in IE and FF

Solution:
<a href=”javascript:void(0);” onclick=”history.back(); return false;”>Back</a>

Get Adobe Flash playerPlugin by wpburn.com wordpress themes