| mphacker 2005-09-06, 7:56 am |
| What you are trying to do will work, but without seeing the exact code
it will be hard to tell where you went wrong.
In the example you gave, your first tag is incorrect. You do not want
the slash at the beginning because that is the endding tag for a panel.
Also make sure you have the attribute runat="server" for your elements
or they will not work.
-Mike
mderijk@zonnet.nl wrote:
> Hello!
>
> This subject is about web applications.
>
> I want an <asp:button> to be an inline element of an <asp:panel>
> so that when I set panel.visible = false, the button also dissapears.
>
> How can i do this?
>
> Right now I have something like this:
> (I did not type tag's attributes because I don't think it's necessary)
>
> </asp:panel>
> <asp:button>
> </asp:button>
> </asp:panel>
>
> This should work right?
> I don't even see my button!
> I have both position set to absolute.
> And the button's Z-Index is greater than the panel's Z-index.
>
> Somebody help me please? :)
> Thanx.
|