panel question

Hi Experts,

I have asp:panel and asp:textbox.
The problem is that when I do panel.style.display = "block" it shows up fine but it is transparant and I see textbox behind it.
Any ideas ?

Thank you.
LVL 1
fpoyavoAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Farshid-ZakerConnect With a Mentor Commented:
hi fpoyavo,
If the text box is in the panel then it's behaviour is ok. I mean, the text box, should be shown inside the panel.
<asp:panel ...><asp:TextBox...></asp:TextBox></asp:Panel>

But if it's in the form of <asp:panel ...></asp:Panel><asp:TextBox...></asp:TextBox>, then your page is grid layout, or your positioning as ABSOLUTE and your text box is on top of your panel. In the other words, their position has overlap.
Although, you have just simple text box and panel, sending your form would be helpful.

Thanks,
Farshid
0
 
tomvergoteCommented:
are you using gridlayout of flowlayout?

right click the form and select properties and check the dropdown
0
 
fpoyavoAuthor Commented:
Not following you. Please more details. I have form containing textbox and panel.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
tomvergoteCommented:
yes, but it is important for me to know if the form you are talking about is using gridlayout or flowlayout.
Right click the form and select properties (make sure you click the form, not a control)
or
check the html source, somewhere in the head tag there should be gridlayout or formlayout
or
check if there is a dotted grid over the form in designmode

or post your html source here so i can check for myself.
0
 
fpoyavoAuthor Commented:
Hi,

I just have <form id="Form1" method="post" runat="server">
I don't have grid 100%. there is no dotted grid in design mode as well.

Thank you.
0
 
fpoyavoAuthor Commented:
I have found : it is FlowLayout
0
 
tomvergoteCommented:
could you post the page/css/scripts?
0
 
fpoyavoAuthor Commented:
It has just regular asp:TextBox and asp:Panel
0
 
gwapoConnect With a Mentor Commented:
Since your design is in FlowLayout, it made obvious that your TextBox is inside the Panel, meaning the Panel is not transparent, it is just showing its content, i.e., Controls and Literal Controls
0
All Courses

From novice to tech pro — start learning today.