Connecting Tech Pros Worldwide Forums | Help | Site Map

Using two frames in one page..

Irfan Akram
Guest
 
Posts: n/a
#1: Nov 19 '05
Hey guys,

Just wondered how we can divide the page in two sections, and use one
section to load a jpeg image, and the other section to add some other
controls to manipulate the jpeg.

Useful feedback will be appreciated.

Thanks,

I.A

Steve C. Orr [MVP, MCSD]
Guest
 
Posts: n/a
#2: Nov 19 '05

re: Using two frames in one page..


Don't use frames. You'll end up with a lot headaches. They usually require
a lot of client side code.
Instead you should usually divide logical sections of your page(s) into user
controls (or custom controls if you want to reuse them between different
projects.)

Here's more info:
http://SteveOrr.net/faq/UserCustom.aspx
http://msdn.microsoft.com/library/de...ebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net



"Irfan Akram" <IrfanAkram@discussions.microsoft.com> wrote in message
news:949D7512-1716-4514-AE5E-C9D096D39928@microsoft.com...[color=blue]
> Hey guys,
>
> Just wondered how we can divide the page in two sections, and use one
> section to load a jpeg image, and the other section to add some other
> controls to manipulate the jpeg.
>
> Useful feedback will be appreciated.
>
> Thanks,
>
> I.A[/color]


Mark Sandfox
Guest
 
Posts: n/a
#3: Nov 19 '05

re: Using two frames in one page..


There are several ways to do this. If you are going to use aspx controls
you will need to interlace some java script to get one page to talk to the
other. With out knowing exactly how you want to accomplish this i do not
know which code you will need.



"Irfan Akram" <IrfanAkram@discussions.microsoft.com> wrote in message
news:949D7512-1716-4514-AE5E-C9D096D39928@microsoft.com...[color=blue]
> Hey guys,
>
> Just wondered how we can divide the page in two sections, and use one
> section to load a jpeg image, and the other section to add some other
> controls to manipulate the jpeg.
>
> Useful feedback will be appreciated.
>
> Thanks,
>
> I.A[/color]


IPGrunt
Guest
 
Posts: n/a
#4: Nov 19 '05

re: Using two frames in one page..


On 15 Feb 2005, "=?Utf-8?B?SXJmYW4gQWtyYW0=?="
<IrfanAkram@discussions.microsoft.com> postulated in news:949D7512-
1716-4514-AE5E-C9D096D39928@microsoft.com:
[color=blue]
> Hey guys,
>
> Just wondered how we can divide the page in two sections, and use one
> section to load a jpeg image, and the other section to add some other
> controls to manipulate the jpeg.
>
> Useful feedback will be appreciated.
>
> Thanks,
>
> I.A
>[/color]

Why not?

And isn't this is an html feature and not really an ASP.NET issue?

-- ipgrunt
bruce barker
Guest
 
Posts: n/a
#5: Nov 19 '05

re: Using two frames in one page..


actually no frames are need. you can just refresh the image.

<table>
<tr>
<td>
<!-- place controls here -->
</td>
<td>
<img id=myimg runat=server>
</td>
</tr>
</table>

another common approach

<table>
<tr>
<td>
<form target=imgFrame method=post action=editimg.aspx >
<!-- place controls here -->
</form>
</td>
<td>
<iframe src="editimg.aspx" name=imgFrame>
</td>
</tr>
</table>

if you want to use a serverside form try this trick:

<form id=mainForm runat=server>

<script>document.getElementById('mainForm').target ="imgFrame";</script>

on postback, the page should only render the modified image

-- bruce (sqlwork.com)


"Irfan Akram" <IrfanAkram@discussions.microsoft.com> wrote in message
news:949D7512-1716-4514-AE5E-C9D096D39928@microsoft.com...
| Hey guys,
|
| Just wondered how we can divide the page in two sections, and use one
| section to load a jpeg image, and the other section to add some other
| controls to manipulate the jpeg.
|
| Useful feedback will be appreciated.
|
| Thanks,
|
| I.A


Irfan Akram
Guest
 
Posts: n/a
#6: Nov 19 '05

re: Using two frames in one page..


Hi Mark,

Basicall I am designing a mrking system. I will load in a jpeg scanned image
of an examination script, i.e. 1 page at a time, in to one part of the page,
and then use the remaining part of the page to have a marking tool for the
examiner to mark the question displayed on the script.

I hope that answers your question, and you can now suggest to me the best
way of achieving it.

Thanks,

I.A

"Mark Sandfox" wrote:
[color=blue]
> There are several ways to do this. If you are going to use aspx controls
> you will need to interlace some java script to get one page to talk to the
> other. With out knowing exactly how you want to accomplish this i do not
> know which code you will need.
>
>
>
> "Irfan Akram" <IrfanAkram@discussions.microsoft.com> wrote in message
> news:949D7512-1716-4514-AE5E-C9D096D39928@microsoft.com...[color=green]
> > Hey guys,
> >
> > Just wondered how we can divide the page in two sections, and use one
> > section to load a jpeg image, and the other section to add some other
> > controls to manipulate the jpeg.
> >
> > Useful feedback will be appreciated.
> >
> > Thanks,
> >
> > I.A[/color]
>
>
>[/color]
Closed Thread