Adding a rule to style

Adding a rule to style

Hi Zoho,

I have some parts of page that I'd like to show only to one user.

Instead of using "if" every time on the page, I'd like to create a style.

I've created this function: 

string styles.EditPossible( String UserName)
{
if (UserName = "CorrectUser")
{
EditPossStyle="<style>.EditPossStyle{display:inline;}</style>";
}
else
    {
EditPossStyle="<style>.EditPossStyle{display:none;}</style>";
    }
    return EditPossStyle;
}


And i call it one the html page using <%=thisapp.styles.EditPossible(zoho.loginuser)%> 

Unfortunate this does not work.... It is always showing the text.

Anyone with an idea what I've done wrong?

Thanks!

Ravid