Aug 02, 2010, 8:56 PM
-
-
Aug 02, 2010, 9:01 PMSo my sample ran fine on your end with no errors on IE7? I am referring to the simple sample. I will repaste it here:
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %> <script runat="server"> protected void Page_Load(object sender, EventArgs e) { Response.AddHeader("Pragma", "no-cache"); Response.Cache.SetCacheability(HttpCacheability.NoCache); } </script> <!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></title> </head> <body> <form id="form1" runat="server"> <ext:ResourceManager ID="ResourceManager1" runat="server"> </ext:ResourceManager> <ext:ResourcePlaceHolder runat="server"> </ext:ResourcePlaceHolder> </form> </body> </html>
-
Aug 02, 2010, 9:44 PMHi,
Can you move ResourcePlaceholder outside the form? -
Aug 02, 2010, 10:37 PM
-
Aug 03, 2010, 6:21 AMHi,
I don't think that Page.Controls.Add adds control to the form
Try the following sample
<%@ Page Language="C#" %> <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %> <script runat="server"> protected void Page_Load(object sender, EventArgs e) { Response.AddHeader("Pragma", "no-cache"); Response.Cache.SetCacheability(HttpCacheability.NoCache); this.Form.Controls.Add(new ResourceManager()); this.Form.Controls.Add(new Window()); this.Page.Controls.Add(new ResourcePlaceHolder()); } </script> <!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></title> </head> <body> <form id="form1" runat="server"> </form> </body> </html>
-
Aug 03, 2010, 1:53 PMI am able to move the resourceplaceholder outside of the form but still getting the same error in IE7. What was the change to ResourceManager that's making this error now in 1.0? In v0.8, it was fine for the script includes and the Ext.onReady script to be placed at the bottom of the form.
-
Aug 03, 2010, 2:17 PMRereading your previous posts, one thing that was not addressed that may have caused confusion is the server side head control. My application does not have runat="server" on the head since we custom render out the head tags. My example actually had runat="server" in the head so that was my mistake. Is it possible for ResourceManager to work without a head server side control?
New sample without head control. Note that it doesn't matter anymore where ResourcePlaceholder is. The page will error in IE7 always.
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %> <script runat="server"> protected void Page_Load(object sender, EventArgs e) { Response.AddHeader("Pragma", "no-cache"); Response.Cache.SetCacheability(HttpCacheability.NoCache); } </script> <!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> <title></title> </head> <body> <ext:ResourcePlaceHolder ID="ResourcePlaceHolder1" runat="server"> </ext:ResourcePlaceHolder> <form id="form1" runat="server"> <ext:ResourceManager ID="ResourceManager1" runat="server"> </ext:ResourceManager> </form> </body> </html>
-
Aug 03, 2010, 5:12 PMHi,
There's a couple issues happening here...
1. IE7 has a bug, see http://support.microsoft.com/kb/927917. The recommended fix is to upgrade to IE8.
How do I fix this problem?
The easiest way for you to fix the problem is to upgrade to Internet Explorer 8. This problem no longer occurs in Internet Explorer 8. To upgrade to Internet Explorer 8, visit the following Microsoft Web site:
Windows Internet Explorer 8: Home page
http://www.microsoft.com/windows/int...a/default.aspx
The kb article outlines why the error is occurring.
2. For some reason the <ext:ResourceManager> is not correctly rendering the scripts and styles into the <ext:ResourcePlaceholder> location.
If you can not include a <head runat="server">, the next option would be to add an <ext:ResourcePlaceholder> just inside the page <body> tag. The ResourcePlaceholder must be placed directly inside the <body> and not within the <form> in order to work-around the IE7 defect.
As mentioned, there seems to be a problem with the <ext:ResourcePlaceholder> rendering location. We're debugging and should be able to commit a fix soon.
Once fixed, your last sample should work as expected.
Hope this helps. -
Aug 03, 2010, 5:14 PMThat said, your sample does not appear to reproduce the original issue you posted re: the <Ext.Net.InitScript>. Did you get that one solved?
This thread is now covering a few different issues, which might appear related, but I don't think are. -
Aug 03, 2010, 5:17 PM
Similar Threads
-
Combobox Item with operation symbols
By inaltec in forum 1.x HelpReplies: 1Last Post: Feb 01, 2012, 5:39 PM -
about objectdatasource CRUD operation issue?
By neo in forum 1.x HelpReplies: 0Last Post: Nov 30, 2011, 12:51 PM -
Grid Panel Export Operation
By sumesh in forum 1.x HelpReplies: 1Last Post: May 30, 2011, 11:32 AM -
Operation Requires an Ajax Request
By dan182 in forum 1.x HelpReplies: 1Last Post: Feb 23, 2011, 12:58 PM -
This operation requires an Ajax request
By dan182 in forum 1.x HelpReplies: 0Last Post: Feb 03, 2011, 10:34 AM