DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: .NET browser compatibility

  1. #1
    Join Date
    Mar 2004
    Posts
    72

    .NET browser compatibility

    I have created a wizard style form which seperates form fields into a series of pannels.

    Example
    =======

    <asp:Panel id="firstView" runat="server">
    .
    .
    .
    </asp:Panel>

    <asp:Panel id="secondView" runat="server">
    .
    .
    .
    </asp:Panel>

    =========
    The user clicks next and back buttons to navagate through the different pannels. The form works fine in Internet Explorer, but does not seem to work in Netscape or Firefox. In these browsers when you click next it never shows the second pannel.

    Why?

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    It's because the panel control is rendered as a TABLE and not a DIV tag. This occurs because ASP.NET considers FireFox and Netscape down-level (old) browsers.

    The following should help:

    http://weblogs.asp.net/mrupp/archive...4/03/4789.aspx
    http://www.codeproject.com/aspnet/browsercaps.asp
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  3. #3
    Join Date
    Mar 2004
    Posts
    72
    What if the <asp:Panel> were replaced with <asp:literal>? Would it work in these browsers upon makeing this change? Is this a good idea? What is the difference between Panels and Literals?

  4. #4
    Join Date
    Dec 2003
    Posts
    2,750
    The best suggestion I can offer is to try it. A Literal control is like a Label control w/o a style. I don't believe it renders the same way as a Panel control.
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center