Welcome Guest Search | Active Topics | Sign In | Register

Firefox 2 and adding an Editor dynamic Options
Philipp Jenni
Posted: Monday, October 13, 2008 1:49:19 PM
Rank: Advanced Member
Groups: Member

Joined: 6/9/2007
Posts: 98
Hi,

I have a problem, when i add an editor control dynamic to an page that uses PageViews and the TabControl, when display with firefox 2. The problem exists only, when the editor doesnt displayed in the first tab. When you change the second line in the load event to

Code: C#
PageView1.Controls.Add(editor);

then works the page also with firefox 2

I have create a little testpage to you. So you can see the problem. When you display the page with firefox 3 oder IE6/7, than it works fine.

Code: C#
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.IO;


public partial class Testseite : System.Web.UI.Page
{
    protected void Page_Init(object sender, EventArgs e)
    {
        EO.Web.Editor editor = new EO.Web.Editor();
        PageView2.Controls.Add(editor);
    }
  
}


Code: HTML/ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Testseite.aspx.cs" Inherits="Testseite" %>

<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!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">
<head runat="server">
    <title>Testseite</title>
</head>
<body>
    <form id="form1" runat="server">
    <eo:TabStrip ID="TabStrip1" runat="server" ControlSkinID="Simple_Gray" 
        MultiPageID="MultiPage1" Width="350px">
        <TopGroup>
            <Items>
                <eo:TabItem PageViewID="PageView1" Text-Html="New Tab Item 1">
                </eo:TabItem>
                <eo:TabItem PageViewID="PageView2" Text-Html="New Tab Item 2">
                </eo:TabItem>
            </Items>
        </TopGroup>
    </eo:TabStrip>
    <eo:MultiPage ID="MultiPage1" runat="server" Height="180px" Width="100%">
        <eo:PageView ID="PageView2" runat="server" Width="100%">
        </eo:PageView>
        <eo:PageView ID="PageView1" runat="server" Width="100%">
        </eo:PageView>
    </eo:MultiPage>
    </form>
</body>
</html>


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.