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?
 
Farshid-ZakerCommented:
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
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
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
 
gwapoCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.