For Programmers: Free Programming Magazines  


Home > Archive > C# > September 2005 > panel with inline elements









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author panel with inline elements
mderijk@zonnet.nl

2005-09-05, 7:14 pm

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.

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.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com