Showing posts with label current. Show all posts
Showing posts with label current. Show all posts

Wednesday, March 28, 2012

Extended class and debug="false"

Does anybody know why the initalizeBase() function fails to extend the current class with the base-class's methods when debug is set to false?

It seems that when in debug mode you are allowed to do this use the parent class' initializeBase function in the constructor. This causes an error with debug=false.

By using the subclass's own initalizeBase, this all works like a charm.

Wednesday, March 21, 2012

Error: There is no source code available for the current location

Hi all,

I'musing iFrame on parent form (not master page) where I'm opening my other forms (child forms). I'hvused ScriptManager and UpdatePanels on both the forms i.e. on parent and on child. When I clicked on the child form(inside iFrame) an error occurred - 'There is no source code availablefor the current location.' and nothing went further. If I removeScriptManager from child form it won't give anyerror, of course I can't use UpdatePanel and AJAX's any control on the child form.

The error is not consistent i.e. if I design another parent and child forms with the same structure error may not occur and if I continue with it then after few pastbacks error will occur. I tried to debug it where I went to one function in Resource.axd:

---

Sys.UI.Point = function Sys$UI$Point(x, y) {

/// <paramname="x" type="Number"integer="true"></param>

/// <paramname="y" type="Number"integer="true"></param>

/// <fieldname="x" type="Number"integer="true"></field>

/// <fieldname="y" type="Number"integer="true"></field>

var e =Function._validateParams(arguments, [

{name:"x", type: Number, integer: true},

{name:"y", type: Number, integer: true}

]);

if(e)throw e;

this.x = x;

this.y = y;

-----

where e.message = "Sys.ArgumentOutOfRangeException: Value must be an integer. Parameter name: x Actual value was NaN."

If anybody had faced the same prob and has the solution please reply.

Thanx.

i also have the exact same problem but only with in a frame,

but my page is inside a normal frame, when my page is opened directly without the frame it works fine.

this error must be new to 1.0 cause i just upgraded and am now getting it.

does anybody have a solution? its important am waiting to upgrade live system to ajax 1.0 but this the only new error that i cant find a solution to.

Thanks


But when no set the frame's border to 'no' ,it works fine!

//frameBorder = "none";


I have tried evrything but the problem is still there therefore I'm not using iFrame now. I'm using frameset where I'm not getting this error but if there is anything wrong in my java script functions like syntax error then only it gives the same error 'There is no source code available for the current location'. But after rectifying function it works fine. So there is no headache of the error for me.

I get the same error only in Internet Explorer and only when using an iframe. This is a bug in the Asp.net Ajax client script !!!

You can see the bughere