473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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 1340
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
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...
1
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...
2
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....
7
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
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...
1
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...
3
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,...
3
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...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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...
0
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...

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.