AJAX :: ERROR: The PageRequestManager Cannot Be Initialized More Than Once?

Nov 19, 2010

I'm loading a .aspx page via fancybox (ajax loading mode).I was using fancybox 1.2.6, working fine, then upgraded to fancybox 1.3.4 and IE now triggers the JS error above (in the subject of the post). Then why am I posting on ASP.net forum you might ask?!?... read on...Debugging the JS code, the error happens inside jQuery in the .html(data) function where it does a evalScript .each scripts inside data. jQuery version is 1.4.2.I'm able to resolve the problem by editing fancybox-1.3.4.js at line 265. I just use innerHTML to circuvent the evalScript that occurs inside html()... and it works:

//tmp.html( data ); <-- original code commented out where JS error occured
var tmpDiv = tmp.get(0); <-- new "plaster" kind-of fix
tmpDiv.innerHTML = data; <-- new "plaster" kind-of fix

Why I'm posting on ASP.net and not on jQuery nor fancybox groups is that I consider that the proper fix would be in the .aspx that is loaded via ajax.To summarize the problem. There is a base .aspx page that has a couples of text and buttons. When you click a button, it loads via AJAX a new .aspx page (using fancybox). You end up with two ScriptManager js code and it triggers an error when executing :

//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls([], [], [], 90);

[code]...

View 1 Replies


Similar Messages:

AJAX :: Microsoft JScript Runtime Error: Sys.InvalidOperationException: The PageRequestManager?

Feb 23, 2010

have a problem on my application, i am using LightBox javascript that is using prototype.js library, and when i open any pop up that is having script manager it generate this error:Microsoft JScript runtime error: Sys.InvalidOperationException: The PageRequestManager cannot be initialized more than once.I know that is because i have scriptmanager on the parent page that opened the pop up and its something relates to prototype.js but i dont know the connection!

View 3 Replies

AJAX :: Error - Panes Could Not Be Initialized. Details:Pane Could Not Be Added To The Collection - How To Fix It

Apr 19, 2010

I created the accordion control custom dll and added the dll my project reference. After adding the reference in my project, I just the drag and drop accordion control and added accordion panes, after adding the pane and clicked design view I am getting the following error. Even I added the selected index=0 properties also but I am getting same error

"Panes could not be initialized. Details: Pane could not be added to the collection. Details Object does not match target type.

View 3 Replies

Sys.WebForms.PageRequestManager' Is Null Or Not An Object / Showing Error Message

Feb 4, 2010

if i implement updateprogress in my web page i got the following error messge

Microsoft JScript runtime error: 'Sys.WebForms.PageRequestManager' is null or not an object

.aspx

<link
href="cssUpdateProgress.css"
rel="stylesheet"
type="text/css"
/>
<script
type="text/javascript"
language="javascript">
var ModalProgress =
'<%= ModalProgress.ClientID %>';
</script>
<asp:ScriptManager
ID="ScriptManager1"
runat="server"
EnablePartialRendering="False"
LoadScriptsBeforeUI="False"
ScriptMode="Release"
>
<
</asp:ScriptManager>script
type="text/javascript"
src="jsUpdateProgress.js"></script>
<asp:Panel
ID="panelUpdateProgress"
Width="105px"
Height="25px"
runat="server"
CssClass="updateProgress">
<asp:UpdateProgress
ID="UpdateProg1"
DisplayAfter="0"
runat="server">
<ProgressTemplate>
<table
style="height:25px;">
<tr><td><img
height="21px"
width="15px"
src="imagesprocessing.gif"
style="vertical-align: middle"
alt="Processing"
/></td><td
valign="middle"
>Processing...</td></tr>
</table>
</ProgressTemplate>
</asp:UpdateProgress>
</asp:Panel>
<cc1:ModalPopupExtender
ID="ModalProgress"
runat="server"
TargetControlID="panelUpdateProgress"
BackgroundCssClass="modalBackground"
PopupControlID="panelUpdateProgress"
/>
javascript

Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginReq);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endReq);

function

beginReq(sender, args) {// shows the Popup
$find(ModalProgress).show();
}

function

endReq(sender, args) {// shows the Popup
$find(ModalProgress).hide();
}

View 1 Replies

Web Forms :: Sys.WebForms.PageRequestManager ServerErrorException: An Unknown Error Occurred While Processing

Sep 23, 2010

I am executing a SSRS 2008 report from report manager so it opens in a web browser. Since it is a big report it takes some time for execution. During this time i get an error icon on the left bottom of the web browser and the execution stops. When I click open the error icon to see the details it says,

"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12029."

The other relatively smaller reports are coming up successfully without any issue.

I am using SQL Server 2008 R2 64 bit ent. edition and the OS is Win Server 2003 64 bit SP 2.

View 1 Replies

AJAX :: Use Sys.WebForms.PageRequestManager In Javascript?

Dec 13, 2010

I just have see an article in which author used

Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(req_Start);

in javascript code to get ajax call by updatepanel. I got this code and it worked. Please guide and help me who this server side code (Sys namespace) was used on client side. Why not other namespaced are accessable in javascript ? That is that techniqueetc

View 3 Replies

ADO.NET :: Error - The ConnectionString Property Has Not Been Initialized

Jan 17, 2011

I have some Class A, which is data-layer in my web-application, and I'm using A's methods to accomplish Db operations. It looks like this.

[code]...

In case when my .aspx page calls 2 methods of class A during the postback, my page throws

"The ConnectionString property has not been initialized" exception for second method call.

I tried to put _sqlcon initialization into constructor, but it still throws exception.

View 5 Replies

C# - Getting Error 'Connection Property Has Not Been Initialized'?

Oct 1, 2010

I am getting error ExecuteReader: Connection property has not been initialized. below is the code i am using.

SqlDataReader oReader = new SqlDataReader();
string sSQL = @"
WITH TAB_CTE AS (
SELECT fbominum, fbompart, fparinum, flevel, fsono
FROM sodbom
WHERE fbompart= @fbompart and fsono = @fsono
UNION ALL
SELECT e.fbominum, e.fbompart, e.fparinum, e.flevel, e.fsono
FROM sodbom e
INNER JOIN TAB_CTE ecte ON ecte.fbominum = e.fparinum where e.fsono = @fsono
)
SELECT *
FROM TAB_CTE where fbompart <> @fbompart
";
SqlCommand oCommand = new SqlCommand(sSQL, this._connection);
oCommand.CommandType = System.Data.CommandType.Text;
oCommand.Parameters.Add("@fbompart", ItemSODBOM.fbompart);
oCommand.Parameters.Add("@fsono", ItemSODBOM.SONO);
oReader = oCommand.ExecuteReader();//Here I am getting error

View 3 Replies

AJAX :: Sys.webforms.pagerequestmanager Is Null Or Not An Object

Apr 13, 2010

I am getting following error "sys.webforms.pagerequestmanager is null or not an object" in my login page.login page contains script manager tag at start and Ajax CollapsiblePanelExtender n page.

I recently converted my VS 2005 project code to VS 2008.My old code is running fine.

View 3 Replies

AJAX :: Use DynamicPopulateControl & PageRequestManager.add_endRequest To Add A Product

Mar 8, 2010

I'm trying to use a DynamicPopulateExtender to add a product to the cart and then report back a success/failure-message to a div. After the request has finished, i'd also like to trigger an update of an UpdatePanel on the page. But there is a problem: To ensure that the div is visible only a short time after the request has finished, and to reload of the UpdatePanel, I need to know when the request has finished - and it seems that the DynamicPopulateControl for some reason doesn't trigger the PageRequestManager EndRequest-event. I've registered for the events with this code, and I've made sure that the code that registers the events run like it should. But neither CartBeginRequest nor CartEndRequest are ever called:

function pageLoad(sender, args){

View 1 Replies

ADO.NET :: Getting Error That ExecuteReader: Connection Property Has Not Been Initialized?

Jan 24, 2011

protected void Button1_Click(object sender, EventArgs e)
{
SqlCommand cmd;

[code]...

I am getting error that ExecuteReader: Connection property has not been initialized

View 11 Replies

Connection String Property Has Not Been Initialized Error

Aug 1, 2012

I am getting above mentioned error when I try to run the following code:

Private strConnString As String = ConfigurationManager.ConnectionStrings("conString").ConnectionString
Private con As New SqlConnection(strConnString)
Private pID As Integer
'FIRST SECTION
Dim query As String = "query"
Dim cmd As New SqlCommand(query)

[Code] .....

The error is coming from the second SQL cmd but if I comment out the first section; the second section runs fine.

I must have made another basic error but I just can't figure out what it is.

View 1 Replies

Data Controls :: Connection String Is Not Initialized Error

Sep 30, 2013

public class DataClass{    public DataClass()    {    }    /// <summary>   
///  return rows depend on position    ///  if you need 10th to 20th you need to pass start=10 and end=20   
/// </summary>    /// <param name="start">database start position of one row</param>   
/// <param name="next">database end position of one row</param>   
/// <returns></returns>    public string GetAjaxContent(int start, int end)    {          

[code].....

When I'm trying to develop the unlimited scrolling in datalist i have an error like connection string not initialized I checked and rechecked.

View 1 Replies

AJAX :: Sys.webforms.pagerequestmanager Is Null Or Not An Object After Called From Outlook 2010

Aug 5, 2010

I am getting "Sys.webforms.pagerequestmanager is null or not an object" error when calling the webpage from outlook for some client machines. In some machines it is working fine.

View 5 Replies

AJAX :: Run A Function Associated With Custom Control After It Is Initialized?

Mar 31, 2010

How do I run a function associated with my custom control after it is initialized? So for example, after the control has initialized (ie is loaded) I need to finalize some properties. But since it is composed of a number of other controls, I need to know all the controls are present. I've tried add_load but I can't seem to get the context right to see my contol's specific functions. If I place the onLoad metod in the main class (javascript) definition, the contol id dosen't exist yet, same for in the prototype.

Since the control id dosen't exist yet I need to wait for the load event but now i'm in a chicken and egg problem. How do I create a method of my control class and call it "after" initilization? Seems like a simple question but it hasn't been so easy to find an answer.

View 2 Replies

C# - Remove All EndRequest Handlers In PageRequestManager?

Oct 4, 2010

How to remove all endRequest handlers in PageRequestManager?

View 1 Replies

JQuery In UpdatePanel Wrapper For PageRequestManager.getInstance().add_endRequest

Mar 18, 2011

When jQuery is applied to elements in an UpdatePanel, when the UpdatePanel refreshes, the jQuery is not applied to the newly injected HTML. This issue is resolved by using

Sys.WebForms.PageRequestManager.getInstance().add_endRequest() to register a function to be called when the AJAX request is complete: I've written a function that registers the function with add_endRequest, and also calls it at the same time:

Async.RegisterAndRun = function(callback) {
//register function to be run when an update panel request is complete
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(callback);
//also run the function right now.
callback();
};

Now all we need to call is Async.RegisterAndRun(AddFancyjQueryToMyHTML); or
Async.RegisterAndRun(function(){
AddFancyjQueryToMyHTML();
AddMoreFancyjQueryToMyHTML('with', 'args');
});

Currently it does what I need it to, and I never need to explicitly call add_endRequest which is nice.

View 2 Replies

Connection Property Has Not Been Initialized

Dec 27, 2014

In some posts I have read on other forums, those with database connection problems (I am thinking about Access) sometimes get the error: 'Connection property has not been initialized' which might translate as 'you have not kick-started your connection'. One reason for that, according to a number of replies I have come across, is that 'you have not set the connection property of the command object' ('you have not told command how to connect').

So would something like this:

Code:
Dim conn As New OleDbConnection
Dim OleDbConnection As New OleDbConnection
Dim cmd As New OleDbCommand
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|myDatabase.mdb;"
conn.Open()
cmd = New OleDbCommand("SELECT strName FROM school WHERE strName=@strName", conn)
cmd.Parameters.AddWithValue("@strName", UserName.Text)
cmd.Connection = conn
cmd.ExecuteNonQuery()
conn.Close()

a) initialise the connection property and b) set the connection property of the command object?

View 7 Replies

Command Text Property Has Not Been Initialized?

Sep 16, 2010

I have been looking through the event viewer on our server and can see quite a few people with this error but I can't replicate this myself but it is causing issues for people viewing our website is there anyway I can "initialize" Command Text property?

UPDATE

So I have this query

datelistquery = "SELECT DISTINCT property_id, ' - Sleeps ' + cast(number_slept as varchar) as combsleeps, number_slept FROM openquery ("+Application("hpbDsrc")+",'SELECT property_id, number_slept FROM web_details WHERE part_full_flag = ''F'' AND location = ''"&Session("TenChosenLocCode")&"'' AND property_id = ''"&Session("passedPropId")&"'' AND pets_yn like ''"&Session("TenPets")&"'' AND number_slept >= ''"&Session("TenAdults")&"'' AND year_week = ''"&Session("TenHolStDateHP1")&"'' AND on_hold = ''NO'' AND booked = ''NO'' ') ORDER BY number_slept, property_id"

So should I put at the start sqlCommand.CommandText(datelistquery) = "Select Distinct...."

View 2 Replies

Initialized From A Static .js File Using A Selector?

Mar 23, 2011

I'm using jQuery tabs, which are initialized from a static .js file using a selector:

$()
.ready(function () {
$('.jqTabsStandard').tabs();
});

I'm using ASP.NET (not that it makes a difference I think), but when I click a button in one of the tabs, is there a way I can re-select that tab when the page reloads. I was thinking of sticking the tab section in an UpdatePanel. I was hoping there's a way I could trigger the tab to reselect.

View 2 Replies

DataSource Controls :: The ConnectionString Property Has Not Been Initialized?

May 26, 2010

i am trying to call a SP from SQL Server in asp.net app, but it keep crashing every time it hit

'cmd.Connection.Open();' ,,, it give me this message

"The ConnectionString property has not been initialized "

[Code]....

[Code]....

View 2 Replies

Controls Initialized With Their Design Time Values?

Jan 19, 2010

Am I right in assuming that only after controls on Master page are merged into the control tree for the Page, can controls ( both those in Master page and in a content Page ) be initialized with their declarative values ( values set during design time)? b) If my above assumption is correct, then these controls cannot be initialized with their design-time values during Page.PreInit, since during Page.PreInit event stage we're still able to dynamically set a Master page?! So if that is the case, when are controls initialized with their declarative values? During Init event orâ€

View 1 Replies

Web Forms :: Find The Page Where QueryString Is Set (initialized)?

Apr 8, 2013

i use  this codeRequest.QueryString("amir")How do you know which page has been initialized in the QueryString.

View 1 Replies

Custom Server Controls :: Base Not Initialized - Missing Something?

Aug 31, 2010

I have an ASP.net control that contains a grid (protected member variable). Grid is populated from a function in the control. I have derived a new user control from this control without any control in it. I added additional functionality to populate grid and called base class function to do further operation on the grid. When I run my code, I get the null reference exception on grid object in the base control. I missing something in control inheritance? at what point do inner controls get created?

View 1 Replies

C# - Connection Property Hasn't Been Initialized While Running Application From IIS

Apr 4, 2011

I have one intranet based application.I have set windows authentication for it in Web.config as well as from IIS settings. While running my application through the source code, it works fine but while running from directly IIS then its giving me:

"Connection property has not been initialized"

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved