473,499 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

webcontrols as frames...Help!

I am trying not to use frames in asp.net but this is my problem. I have an
image viewer I am trying to developed. The top portion is the [navigator]
(next, previous page, zoom etc). The left side is [thumbnails] and the rest
is the [main viewer]. I did this same thing in asp with frames no problem.
To learn something I am trying to do it with webontrols. I have 3 controls
and a parent page. Here is the break down.

Parent: (viewer.aspx)
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="viewer.aspx.vb"
Inherits="ImageViewer.viewer"%>
<%@ Register TagPrefix="image" TagName="main" Src="image_main.ascx" %>
<%@ Register TagPrefix="image" TagName="nav" Src="image_nav.ascx" %>
<%@ Register TagPrefix="image" TagName="thumb" Src="image_thumb.ascx" %>
....and then I have a table
<table>
<tr><td colspan=2><image:nav id="imgNav"
runat="server"></image:nav></td></tr>
<tr>
<td><image:thumb id="imgThumb" runat="server"></image:thumb></td>
<td><image:main id="imgMain" runat="server"></image:main></td>
</tr>
</table>

My [image:main] holds all the image properties (imgpage, imgid, imgheight,
imgwidth, stec) so I thought from the [image:nav] if the user wanted to go
to next page I could "get" the current page then "set" by incrementing it
one. The problem is when I click the "next page" button all the properties
of [image:main] get reset. Maybe I am referencing [image:main] wrong from
[image:nav] but I see the [image:main] properties just fine?

[image:main] not only has the properties but it also has a table with one
cell that holds an <img> tag. I have a public sub "DisplayImage" that sets
that tag based on the properties. The page will load just fine the first
time but if I set the properties and then call "DisplayImage" from
[image:nav] the properties are correct and the img tag is correct but
nothing happens, the page loads with the previous image?? It must be a
page_load issue or something. I can only update the img tag from page_load?

To get this to slightly work I took out the nav and thumbnail controls and
placed buttons on the parent. This works ok but I have to hold the
[image:main] in a session variable because again its properties are reset
when I click a parent button. The problem here is the page reloads all the
time and that will suck with my thumbnails. Is there a way to do this like
I am trying or do I need to go back to frames? Thanks in advanced.
Nov 17 '05 #1
0 1082

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2237
by: Dave Smithz | last post by:
Hi there, I have implemented a login sequence using session variables for a PHP/MySQL DB which I took over development. I read some books and this NG and it seemed straight forward. However the...
14
2118
by: TrvlOrm | last post by:
OK. After much playing around, I managed to get my frame page this far.. see code below. BUT...there are still errors with it, and what I would like to have happened is this: 1) On the Left...
7
2290
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
11
2570
by: Jamie Dulaney | last post by:
I'm working on a website that uses frames. Some of the pages that belong in the 'main' frame (not the header (top) or contents (side)) need to be SSL encrypted. I have no problems in invoking...
3
2398
by: CW | last post by:
I have downloaded, built and installed iewebcontrols. I tested the sample application and everything worked just fine. However, when I attempt to add Microsoft.Web.UI.WebControls.dll to the VS.Net...
1
2436
by: Lorenc | last post by:
Recently I am getting this error randomly while working with visual studio ..NET 2003 on a C# project and browsing my application. Everything comes to normal after rebooting. Can someone help on...
2
3454
by: loga123 | last post by:
Hi All, I am using Link Button for DELETE on the gridview. When I click on DELETE link, I get the ArgumentOutOfRangeException. But...it deletes the record from table in the database. On...
0
1106
by: marcyb | last post by:
Can anyone help I am trying to get a WebControl toolbar to work this is my code for a toolbar in visual web developement 2005 express for C# <%@ Page Language="C#" Debug="true" %> <%@ Import...
14
7033
by: Mark | last post by:
Hi Guys, I am very new to ASP.NET world. I need to create three frames. One at the top, one on the left and another on the right side. I don't know how to do it. So please help me with it. ...
0
7132
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.