|
|
pinEdit
Started by jooh03 at 06-08-2010 4:34 . Topic has 2 replies.
 
 
|
|
Sort Posts:
|
|
|
|
06-08-2010, 4:34
|
jooh03
Joined on 06-08-2010
Posts 2
|
Serverside error in Firefox, Opera, Safari, Chrome but not in Internet Explorer
|
|
|
|
|
Hi!
I have a very strange problem with pinEdit (7.0.0.702). I get a serverside error in all browsers but Internet Explorer and to make in even stranger, I have pinEdit working on some pages with the same code.
View:
<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="EditText.aspx.cs" Inherits="Webshop.Admin.EditText" %>
<%@ Register Assembly="pinEdit" Namespace="Pintexx.Components.Web.pinEdit" TagPrefix="pin" %>
<asp:Content ContentPlaceHolderID="AdminContent" runat="server"> <pin:pinEdit ID="pinEdit1" StyleSheetUrl="/Styles/Editor.css" runat="server" DocumentWidth="794" Height="400px" Width="647px" LicenseKey="MY_SECRET_KEY" /> </asp:Content>
Code behind:
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls;
namespace Webshop.Admin { public partial class EditText : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { /* * PIN EDIT */
string path = Request.ServerVariables["APPL_PHYSICAL_PATH"]; string http = "http://" + Request.ServerVariables["SERVER_NAME"];
pinEdit1.Toolbar = "T01060708770910111213161719491415;T20212223242728293031323536;B535455"; pinEdit1.AbsoluteImagePath = path + "Filer/"; pinEdit1.AbsoluteImageUrl = http + "/Filer/"; pinEdit1.AbsoluteDocumentPath = path + "Filer/"; pinEdit1.AbsoluteDocumentUrl = http + "/Filer/"; } } }
Error (in Swedish):
[NullReferenceException: Objektreferensen har inte angetts till en instans av ett objekt.] Pintexx.Components.Web.pinEdit.pinEdit.(1() +580 Pintexx.Components.Web.pinEdit.pinEdit.OnPreRender(EventArgs e) +616 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
Versionsinformation: Microsoft
.NET Framework-version:2.0.50727.4927; ASP.NET-version:2.0.50727.4927
|
|
|
|
|
Report
|
|
|
|
06-09-2010, 8:58
|
jooh03
Joined on 06-08-2010
Posts 2
|
Re: Serverside error in Firefox, Opera, Safari, Chrome but not in Internet Explorer
|
|
|
|
|
I solved it by adding the <form> tag.
But I still can't understand how it could work in Internet Explorer 6 - 8.
Any ideas?
|
|
|
|
|
Report
|
|
|
|
06-14-2010, 8:02
|
Pintexx Support
Joined on 08-30-2005
Posts 1.910
|
Re: Serverside error in Firefox, Opera, Safari, Chrome but not in Internet Explorer
|
|
|
|
|
Hello,
I'm sorry. I currently have no explanation.
But the form tag is required.
Regards,
Hans-Peter
|
|
|
|
|
Report
|
|
|
|
|
|