Showing posts with label website. Show all posts
Showing posts with label website. Show all posts

Monday, March 26, 2012

Access Denied

Not sure if this is the correct forum so sorry if it needs moving...

I have a written a plugin for a client that they have embedded in their website using a simple IFRAME

Everything was been working fine until I added a really simple Ajax control.

The page display fine and the ajax actions and other controls all work as expected.

But if a user clicks on any link on the page i get an 'Access Is Denied' error.

When I debug I am directed to the ScriptResource.axd and the line 5959:

'var offsetL = w.screenLeft - top.screenLeft - top.document.documentElement.scrollLeft + 2;'

I am aware of the cross domain issue and have added:

'Response.AddHeader("P3P","CP=""CAO PSA OUR""")'

..to my code but I cannot get around this error.

I can continue by choosing not to debug but I want fix the problem.

Anyone got any ideas what the problem is?

Thanks for any help

Geoff

I am having the same problem, and cannot figure out how to correct. I have researched it on and off for weeks. Any help on this topic on this issue would be great.

Wayne


I am having the same problem, and cannot figure out how to correct. I have researched it on and off for weeks. Any help on this topic on this issue would be great.

Wayne


Hi Geoff,

Please refer to these entries:

http://blogs.msdn.com/delay/archive/2007/02/05/safely-avoiding-the-access-denied-dialog-how-to-work-around-the-access-denied-cross-domain-iframe-issue-in-the-ajax-control-toolkit.aspx

http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx

Hope this helps.


Whether error that you are facing in IE or Mozilla ?

Because some issues will be there with Mozilla....

Sometimes, You have to add your website in Trusted Site zone...


Hi All,

Many thanks for the responses.

The solution was as Raymond suggested - many thanks!Smile

The link:

http://blogs.msdn.com/delay/archive/2007/02/05/safely-avoiding-the-access-denied-dialog-how-to-work-around-the-access-denied-cross-domain-iframe-issue-in-the-ajax-control-toolkit.aspx

..fixed it for me.

Wayne - If you are having the same problem check out the above link.

All the best

Geoff

Saturday, March 24, 2012

A Small Conceptual Problem

Hi all

I am planning to make a website in the new AJAX ASP. One of my main design goals is that everything should be under one single page i.e even new pages appear in the same window without refreshing the page.

e.g. There is a link on default.aspx called Page2 which redirects it to Page2.aspx. There is also a master page which is connected to both these pages

now i want that when Page2 is clicked, without refrshing the whole page Page2.aspx appears in the place where the contents of default.aspx were, the master page remaining there all the time.

I am not able to figure out how to do this.. Plzz someone give me directions

Thanx

Hi,

I think it would not work out. Because, you are trying to access totally different page. :(

But to have some try and some hacks, try to put your ContentPlaceHolder control inside the UpdatePanel. :)

This might show you AJAX like feel.

Wot says? Let me know, if you get the results as expected.

Mayur Tendulkar

Microsoft Student Partner

Wednesday, March 21, 2012

A 101 question

I'm new to the MS Ajax library. I'm developing a .NET 2.0 website. I want to be sure I'm using the latest verion of the MS Ajax library and tool kit. Should I use v1.0 of both the library and toolkit or version 3.5 of each?

Thank you.

hello

you just need to have V1.0

in the future , if there is a new version,you need to replace the Dlls.

also there is no 3.5 version, if you mean the .Net 3.5 , then yes it contains the same Ajax version (1.0) !!


Thank you for the clarification.