I am trying to retrieve a session variable and then check the value of that variable inside an if statement. I am getting an error saying that you incompatiable aperand types string and char. What am I doing wrong? The code follows. Thanks for the help.
function Init()
{
<%String simgenb = (String)session.getAttribute("simgenb");
if(simgenb == 'Y')
{%>
document.Detail.Image.hidden = False
document.Detail.Image.disabled = False
document.Detail.Picture.hidden = False
document.Detail.Picture.disabled = False
document.Detail.Map.hidden = False
document.Detail.Map.disabled = False
<%}%>
}
function Init()
{
<%String simgenb = (String)session.getAttribute("simgenb");
if(simgenb == 'Y')
{%>
document.Detail.Image.hidden = False
document.Detail.Image.disabled = False
document.Detail.Picture.hidden = False
document.Detail.Picture.disabled = False
document.Detail.Map.hidden = False
document.Detail.Map.disabled = False
<%}%>
}