Showing posts with label master. Show all posts
Showing posts with label master. Show all posts

Wednesday, March 21, 2012

Errors while Using MasterPage and AJAX.

Hello,

I Creat a New AjaxEnabled WebSite. Now I take one Master Page. Put My Script Manager On this Page, Now I create Content Page for my Master Page. Now when I place any of Ajax control (for example UpdatePanel) It shows me an Error -- Update Panel is not known element.This can occur if there is a compilation error in website. I am not able to use ajax controls.

Now I go to HTML Source Editing Menu and select different Target Schema For Validation than all controls start working Properly. Now I close my visual studio and reopen my web site that errors apears again and again I have to change Target Schema for Validation.

My real Application caontains over 200 pages. All need to be used with master page. so its very tough for me to handle this. Any one can show me the way how I can overcome this? If I do not use Master page than its working fine but I can not do like this.

Further Currently I m using Windows XP. And this problem is not faced with Windows VISTA.. Than what is the reson behind that?

hello.

are we talking about ide errors or compile time errors? if it's ide errors, then welcome to "the real world" since I've never been able to solve mine while i was using vs 2005 (and even now, in 2008, i do get those kind of errors sometimes)


I also have this problem, but it compiles and runs, so I just don't care about it and try to live with this...


Its IDE Error.. And its fine after I compile and rum my APP

But when I use AutoComplet Cotrol... Then I must remove all errors from all the pages where I have use Auto Complet cotrol. Other wise it will not work after I deploy my web site.


hello again.

hum, i'm not following. can you give more details about that?


Hi,

This can be cause by diffrerent things, please check the following link for more information, thanks:

http://forums.asp.net/p/1038012/1772299.aspx

http://www.msdner.com/forum/thread479164.html

the issue is caused by the permission setting of the current
machine. I think there are some restrictions in the specific folder you
create before. So, after you choose the default creation, the issue has
been resolved.

Best Regards,

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