the client code:
parent.document.frames("calframe").document.calendarForm.calendarTextBox1.va
lue=someValue;
parent.document.frames("calframe").calendarForm.calendarTextBox2.value=someV
alue;
is executing what is refered to as "cross-frame scripting" and is being
denied by the users security setting.
-- bruce (sqlwork.com)
[quoted text, click to view] "tony" <myemail@mail.com> wrote in message
news:8DF26D63-C770-43BA-9ABC-3A56E0B47C63@microsoft.com...
> Hi Luke,
> Here is more detail about the problem:
> both page: main.aspx and calendar.aspx are in the same virtual and
physical folder .
>
> C: ... .... wwwroot --> folderParent--> folderChild
>
> 'main.aspx' and 'calendar.aspx' are in folder 'folderChild'
>
> main page structure:
>
> <%@ Page Language="vb" AutoEventWireup="false" Codebehind="main.aspx.vb"
Inherits="myProject.main" %><html>
> ... .... ..... (ususal html tag & code)
>
> <IFRAME SRC="calendar.aspx"
STYLE="DISPLAY:none;Z-INDEX:100;WIDTH:100px;POSITION:absolute;HEIGHT: 100px"
ID="calframe" ></IFRAME><form method="post" runat="server">
[quoted text, click to view] > ... .... ..... (some html code)
> <IMG onclick="PositionCalendar();" src="cal.gif" >
> ... .... ..... (some html code)
> </form><script language="javascript">
> function PositionCalendar(){
> ( some javascript code to position the calendar
(IFrame) in a specified position)
> ... .... ..... ......
> (and those last 2 lines to set some control on
the calendar to some values):
>
parent.document.frames("calframe").document.calendarForm.calendarTextBox1.va
lue=someValue;
[quoted text, click to view] >
parent.document.frames("calframe").calendarForm.calendarTextBox2.value=someV
alue;
[quoted text, click to view] > }
> </script></html>
>
>
>
> Calendar.aspx structure:
>
> <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Calendar.aspx.vb" Inherits="myProject.Calendar" %><html>
> ... .... .....
> <form id="calendarForm" method="post" runat="server"><input type=text
name='calendarTextBox1'><input type=text
name='calendarTextBox2'><asp:Calendar id=...... .... ....
[quoted text, click to view] >
> ... .... ..... (some usual html tag and code)
>
> </form></html>
>
>
> and here what is happening:
> when 'main.aspx' page load, ('calendar.apx' is supposed to load
automaticaly since it's contained in an IFrame on main.aspx), at this point,
no error happens and the status bar of IE 6.0 does not display any error.
[quoted text, click to view] > When I click on the image that position the calendar on the page, make it
visible, and in the same time, write some values on 'calendar.aspx' , IE
status bar display 'Error occured'.
[quoted text, click to view] >
> Now,
> some end users do not get this error and the IFrame get visible on their
page and every thing work fine, while with some other user, the IFRAME don't
get visible on their page and IE status bar display the mentioned error.
[quoted text, click to view] >
> If I try to step through the code on the USER MACHINE THAT GET THE ERROR,
through ... ... Break at Next statement ... ...., when I step through each
line of code, every thing works fine and no error is generated at all, but
if I let IE run without debugging, the IFRAME do not get visible and the
error happens again.
[quoted text, click to view] >
> When I click The error in the status bar for more detail, it only says :
'Access denied'.
> I beleived that the error happens when 'main.aspx' try to write someValues
on 'calendar.aspx', therefore I granted full control to 'ASPNET' and
'EVERYONE' account, on 'folderParent' level and 'folderChild' level, but
that didn't solve the problem.
[quoted text, click to view] >
> And I'm wondering, if it's a permissions problem, why some users have this
error and some others not ???
>
> Thank you for your help
>