Hi Irshad,
Please apply below trick.
protected string ShowHideButton()
{
string bStatus = "";
try
{
if (sCondition == "false")
{
bStatus = "none";
}
else if (sCondition == "true")
{
bStatus = "";
}
}
catch { }
return bStatus;
}
modify your div as below.
<div id="DivBtnImgCopy">
<asp:ImageButton ID="BtnCopy" ToolTip="Copy Mode" ImageUrl="img/tlb_img_copy.gif" runat="server" />
</div>
<script type="text/javascript">
document.getElementById("DivBtnImgCopy").style.display = "<%=ShowHideButton() %>";
</script>