asp:Panel

G

Gunawan

Hi,
I think asp:panel does not populate well in opera.
this is a code snippet.
<tr style="width:100%">
<td align="center" style="width:100%">
<table border="0" cellpadding="0" cellspacing="0"
width="100%">
<tr style="width:100%">
<td style="width:100%">
<asp:panel ID="pnView" runat="server"
Width="100%"
Wrap="False"
Visible="false">
<asp:GridView ID="gv" runat="server"

in IE7 and Firefox the look of the page is good but not in Opera.

Is there any other container that I can use beside asp:panel?

Regards,
Gun
 
G

Gunawan

I'am sorry, visible should be true.
I trigger it through the code.
pnView.Visible = "true"

Regards,
Gun

Eliyahu Goldin said:
Just note that Visible="false" results in not rendering the panel to the
client in the first place.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


Gunawan said:
Hi,
I think asp:panel does not populate well in opera.
this is a code snippet.
<tr style="width:100%">
<td align="center" style="width:100%">
<table border="0" cellpadding="0" cellspacing="0"
width="100%">
<tr style="width:100%">
<td style="width:100%">
<asp:panel ID="pnView" runat="server"
Width="100%"
Wrap="False"
Visible="false">
<asp:GridView ID="gv" runat="server"

in IE7 and Firefox the look of the page is good but not in Opera.

Is there any other container that I can use beside asp:panel?

Regards,
Gun
 
M

Mark Rae [MVP]

Hi,
I think asp:panel does not populate well in opera.
this is a code snippet.
<tr style="width:100%">
<td align="center" style="width:100%">
<table border="0" cellpadding="0" cellspacing="0"
width="100%">
<tr style="width:100%">
<td style="width:100%">
<asp:panel ID="pnView" runat="server"
Width="100%"
Wrap="False"
Visible="false">
<asp:GridView ID="gv" runat="server"

in IE7 and Firefox the look of the page is good but not in Opera.

What DOCTYPE are you using? IE(7) and FireFox are quite forgiving in that
respect, but Opera is very heavily geared to XHTML... If you're still using
an HTML4x DOCTYPE, chances are that's your problem...

Does your page even validate in Opera:
http://validator.w3.org
 
G

Gunawan

Mark Rae said:
What DOCTYPE are you using? IE(7) and FireFox are quite forgiving in that
respect, but Opera is very heavily geared to XHTML... If you're still
using an HTML4x DOCTYPE, chances are that's your problem...

Does your page even validate in Opera:
http://validator.w3.org

My page use this on the header
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

What does it means? Should I change it?
Thank you Mr. Rae.
Regards,
Gun
 
G

Gunawan

Mark Rae said:
It means that you are coding your markup against XHTML-compliant
standards.


Absolutely not!

Once again, does your page validate in Opera:
http://validator.w3.org
I have not validate my page. It is on intranet server and for local area
network only.
Can I save the page to *.html and validate on that web?
I think I will try this.
Thank you very much.

Regards,
Gun
 
M

Mark Rae [MVP]

I have not validate my page. It is on intranet server and for local area
network only.
Can I save the page to *.html and validate on that web?

No need:

1) Do a View Source from Opera.

2) Copy the entire contents.

3) Still in Opera, open a new tab and navigate to http://validator.w3.org

4) Click the "Validate by Direct Input" tab

5) Paste the entire contents of your View Source

6) Click the Check button
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,585
Members
45,080
Latest member
mikkipirss

Latest Threads

Top