473,587 Members | 2,568 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

architecture questions re frames, popups and user controls

i started by designing my web page using frames. i had my data entry
form in an upper form and my data rows displaying in a lower frame. i
soon discovered that ASP.NET is not really meant for frames so I
changed this to a single page with both the entry form and the
display rows on it which posts back to itself(an improvement i hope?)
ok my single page also needs to have the ability to search for stuff
as you enter data. I know I can achieve this by implementing buttons
which load popup windows which can post data back to the parent form
using javascript. but is this good practice? or should I be thinking
in terms of user controls.

i.e. if a user clicks a search button should I load a popup window or
should i posting back the page instead? i could post back the page
with a mode value of "edit" which would allow me to dynamically
replace the contents of a placeholder from the 'enter data' user
control to the 'search' user control. hence the user would be on the
same page but with a completely different UI.

i am thinking this would be adhering more to the ASP.NET model but
then I am also thinking that if I do this I would have to store all
my data entry form textfield values in session objects before loading
in the 'search' user control as my form variables would be lost
otherwise. this seems like hassle so in this respect a popup window
seems better.

so should I use popups or should I be thinking about using dynamic
user controls and using post backs instead?

If anyone could give me some advice I would be very grateful as this
argument is crucial to my project's architecture. many thanks.

Nov 18 '05 #1
2 1351
Ditching the frames was a good idea.

Your popup dilemma is more a matter of opinion. I'm not sure you could make
a bad decision here. The only downside of popups is all the popup blockers
that are out there these days. This might give you some tech support
headaches.
The postback idea doesn't seem so bad. It seems like you may be able to
work it so that your controls maintain their own viewstate so you don't have
to manage that. (Perhaps by putting them in a frame that you can make
invisible temporarily.) But even if you did have to manage that, it doesn't
sound like a major chore from the description you've given.

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

"Wee Bubba" <ma***********@ yahoo-dot-com.no-spam.invalid> wrote in message
news:40******** **@127.0.0.1...
i started by designing my web page using frames. i had my data entry
form in an upper form and my data rows displaying in a lower frame. i
soon discovered that ASP.NET is not really meant for frames so I
changed this to a single page with both the entry form and the
display rows on it which posts back to itself(an improvement i hope?)
ok my single page also needs to have the ability to search for stuff
as you enter data. I know I can achieve this by implementing buttons
which load popup windows which can post data back to the parent form
using javascript. but is this good practice? or should I be thinking
in terms of user controls.

i.e. if a user clicks a search button should I load a popup window or
should i posting back the page instead? i could post back the page
with a mode value of "edit" which would allow me to dynamically
replace the contents of a placeholder from the 'enter data' user
control to the 'search' user control. hence the user would be on the
same page but with a completely different UI.

i am thinking this would be adhering more to the ASP.NET model but
then I am also thinking that if I do this I would have to store all
my data entry form textfield values in session objects before loading
in the 'search' user control as my form variables would be lost
otherwise. this seems like hassle so in this respect a popup window
seems better.

so should I use popups or should I be thinking about using dynamic
user controls and using post backs instead?

If anyone could give me some advice I would be very grateful as this
argument is crucial to my project's architecture. many thanks.

Nov 18 '05 #2
thanks steve. what you have said makes sense to me. as this strategy
is going to be the basis for my software architecture, I would just
like to ask a few more questions if that is ok please.

1) I will be keeping all my user controls on the page manipulating
their visible properties depending upon whether user is performing a
search or viewing data etc. Does that sound sensible?

2) As I will be keeping all of my user controls on the same page I
will not have to worry about passing variables from one user control
to another as I will be able to get this information from their
viewstates?

3) I will be able to communicate between different user controls on
the page using event handlers and delegates?

also if you've got any more advice for me I would be very grateful.
thanks for your time.

martin UK

Nov 18 '05 #3

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

Similar topics

5
7544
by: Noozer | last post by:
I've got a WebBrowser control (AxBrowse - VCMAXB.DLL) and I'm having a few difficulties with it. Just looking for a few pointers, not whole solutions here. I've tried looking at the MSDN help files with little success. - When a new window is trying to pop up, how do I determine the target URL? How can I get the page to open in the current...
1
1890
by: Abdullah Kauchali | last post by:
Hi folks, (Need comments if you have done something like this before. Any response would be greatly appreciated.) We've recently been prototyping the idea of completely avoiding the server building the eventual/final HTML for the browsers. So far we've got this: 1. Create separate ASP pages that talk to the COM business components...
2
1809
by: Halldor Isak Gylfason | last post by:
I am faced with the task of porting a client application to a web architecture platform, e.g. to make it browser based. The technology I used was J2EE, e.g. servlets/JSP pages and HTML/javascript. The application I'm talking about is displaying data from database in grids, roughly speaking from 3 tables, that have parent-child relationship...
7
2979
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
3
2459
by: qwerty | last post by:
I´m new to ASP.Net. My workmate has some experience with it. He claimed that in ASP.Net working with frames is much simpler than it was ASP. I asked explanation but he couldn't give me such. (a button inside a-tag with attribute target isn't anything new relating ASP.Net, its same old HTML). He claimed that you could change another page´s...
1
2957
by: SteveComplex | last post by:
I'm currently working on a project developing a web application that makes heavy use of 3rd-party controls, popup windows and frames ( not my design I hasten to add ). Some of the pages make use of several user controls embedded in a tab control. Needless to say that the page size can be somewhat on the large size, including a lot of...
3
313
by: Coffee guy | last post by:
Newbie to web development here: I inherited an eCommerce site that seems oddly designed- There are 15 or so .aspx pages that provide content, input, etc. Each page has a consistent look and feel, banner and logo, buttoms and menulinks across the top bottom and sides. What's odd is each .aspx contains the exact same code (html) for the...
3
4370
by: Raffi | last post by:
Hello, I've been struggling and trying to work around this for a while and have even posted on usenet in the past without any working solutions. I'm posting it again in case someone out there has a solution. I'm working on a web application with an i-frame in the main application window. Inside the i-frame are various dynamic links for...
2
1742
by: Suresh P | last post by:
Hi All, Is there any way other than frames to play music in the background of the website without restart while navigating to different pages of the website. Because, frames will affect the SEO. Is it possible to achieve it via cookies/sessions?
0
7918
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
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...
0
8206
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. ...
0
8340
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...
0
6621
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...
1
5713
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2353
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
0
1185
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.