No, I think it's fine. Basically, your expression should return the string
True or False.
If you do it his way, then set the Visible property to False or True, not to
the string. That property is a boolean not a string.
"Miguel Dias Moura" <md*REMOVE*moura@*NOSPAM*gmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Yes, I notice that just now. Thanks.
But it's still not working. I believe I need to set it as true or false.
How should I do it?
However I get many answers like the one of Jason.
Is there a problem in doing it this way?
Thanks,
Miguel
"Marina" <so*****@nospam.com> wrote in message news:so*****@nospam.com: I think you have an extra " right before ></div>
Also, I think you are going to want your expression to return True or
False.
"Miguel Dias Moura" <md*REMOVE*moura@*NOSPAM*gmail.com> wrote in message
news:u3****************@TK2MSFTNGP11.phx.gbl... Hi,
I am trying to make a <div> invisible when I call page.aspx.
When I call page.aspx?type=1 the <div> should be visible.
I have this line:
<div runat="server" visible='<%# Request.QueryString("type") <> ""
%>'"></div>
I get this error: "The server tag is not well formed"
Why I get this?
Thanks,
Miguel