473,626 Members | 3,247 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="vie wer.aspx.vb"
Inherits="Image Viewer.viewer"% >
<%@ Register TagPrefix="imag e" TagName="main" Src="image_main .ascx" %>
<%@ Register TagPrefix="imag e" TagName="nav" Src="image_nav. ascx" %>
<%@ Register TagPrefix="imag e" TagName="thumb" Src="image_thum b.ascx" %>
....and then I have a table
<table>
<tr><td colspan=2><imag e:nav id="imgNav"
runat="server"> </image:nav></td></tr>
<tr>
<td><image:thum b id="imgThumb" runat="server"> </image:thumb></td>
<td><image:ma in 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 "DisplayIma ge" 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 "DisplayIma ge" 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 1096

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

Similar topics

1
2256
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 website I have taken over uses two frames. The left hand side is always a navigation frame with the righthand side of the screen always being the target. I developed a main web page where login takes place and if successful a session variable...
14
2140
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 Frame (File LeftEx8_2.html) a series of buttons, which when clicked prompt the user to enter information for background color, text color, link color, title and some text.
7
2309
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 frames, where the two lower ones are within a Frameset within the master Frameset: 1111111111111111111
11
2583
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 these pages using SSL (within their respective frame). However, I would like the 'security lock' at the bottom to be present when the frame (main content frame) is showing a secured page. My hunch is that because the other two frames are not SSL...
3
2405
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 toolbox, I get the following error: There are no components in 'c:\windows\microsoft.net\framework\v1.1.4322\Microsoft.Web.UI.WebControls.d ll" that can be placed on the toolbox. I am using VS.Net 2002. I tried copying the...
1
2442
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 this? The following is the detail error message: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your...
2
3460
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 Gridview_rowdatabound, I am dynamically building hyperlink control based on the values in the other fields. Here is my code for Gridview_rowdatabound. It does work sometimes though.
0
1117
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 Namespace="Microsoft.Web.UI.WebControls" %> <%@ Register TagPrefix="ie" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %> <html> <head>
14
7046
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. I'll appreciate any help/example you can provide. I am using visual studio 2005. Thanks, Mark
0
8203
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8711
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8642
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8368
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8512
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7203
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5576
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2630
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.