Hi,
The system that I'm building has some conditions, which will tell me
which page to show at that time.
My first thought was to have a table of controls in my DB, which will
have a column for the path of a control. This way, a web form would
query the table to know which control it has to load.
However, I gave it a second thought, because in theory, one must use
user controls, only when you are going to re-use it somewhere else (not
my case). That is why I need to know, if instead of having user
controls, I should instead use web forms (my DB table would still be
the same, with the path to the web form), and instead of having a web
form which loads the control, I would simply do a Redirect to the web
form that resulted from my query.
I just want to know if my first option of using user controls is poor
design (because, they are not being re-used) and is better to just use
web forms. Or is having user controls, and not re-using them not really
poor design. What do you suggest?
Thanks 1 1184
I've tried the user control approach you proposed before, and I must say it
really didn't work out very well for a variety of reasons.
I'd say you should go for more of a Front Controller design pattern and
redirect the user to the appropriate page based on the current state.
Here's more info: http://msdn.microsoft.com/library/en...asp?frame=true
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Hugo Flores" <hu*********@ge .com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. . Hi,
The system that I'm building has some conditions, which will tell me which page to show at that time.
My first thought was to have a table of controls in my DB, which will have a column for the path of a control. This way, a web form would query the table to know which control it has to load. However, I gave it a second thought, because in theory, one must use user controls, only when you are going to re-use it somewhere else (not my case). That is why I need to know, if instead of having user controls, I should instead use web forms (my DB table would still be the same, with the path to the web form), and instead of having a web form which loads the control, I would simply do a Redirect to the web form that resulted from my query.
I just want to know if my first option of using user controls is poor design (because, they are not being re-used) and is better to just use web forms. Or is having user controls, and not re-using them not really poor design. What do you suggest?
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: CW |
last post by:
I wrote an HTML based chat application. The front end is built entirely on
HTML + javascript. Essentially, I have a hidden frame that's refreshed
frequently and any new messages are displayed in another frame using
document.write. My problem is that since chat screen can be obscured by
other applications/windows, I have no way of informing users that new
messages have arrived other than popping the window to the top using
window.focus....
|
by: James Fortune |
last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't
understand why people who know how to write code to completely replace
a front end do not write something that will automate the code that
implements managing unbound controls on forms given the superior
performance of unbound controls in a client/server environment. I can
easily understand a newbie using bound controls or someone with a
tight deadline. I guess I need...
|
by: New2Access |
last post by:
Access newbie here with what's probably a complicated question. I've
been tasked with developing a simple budgeting application using MS
Access for my UI. I'm not an Access developer by trade but I'm the
only resource available. Currently I have a SQL backend with all the
tables linked into Access. I've written a few queries that will start
to handle the user's needs.
The main form of the app will be a replica of an income statement....
|
by: andy |
last post by:
I have user controls(.ascx) programmed to function as modules on the same
page - default.aspx.
As you would be well aware, default.aspx has the normal html stuff:-
<%@ Page language="c#" codebehind="default.aspx.cs"
inherits="xmlportal.read" autoeventwireup="false"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>.....</HEAD>
<BODY>......</BODY>
</HTML>
|
by: Robert W. |
last post by:
I have a 'Controller' object that manages the interaction between its two
children: a Form and a DataObject. I've written specialized code in the
Controller to control how the Form updates the DataObject and vice-versa.
Normally after the user changes the value of a control, the DataObject is
instantaneously updated (via code in the Controller). But I'm having
problems when say the user enters text into a textbox and then immediately...
| |
by: Steve Booth |
last post by:
I have a web form with a button and a placeholder, the button adds a user
control to the placeholder (and removes any existing controls). The user
control contains a single button. I have done all the usual stuff of
recreating the usercontrol in the Page Init event.
The 'failure' sequence is as follows:
- select web form button to display the user control
- select user control button, event fires
- select web form button to display...
|
by: **Developer** |
last post by:
I have a control called MyPanel that inherits from Panel.
Also a control called MyRTB that inherits from RichTextBox.
They are used on a form as follows:
MyPanel in on the form and MyRTF is placed in MyPanel.
I do this so that the properties of MyRTF and of MyPanel are available to
the form.
|
by: |
last post by:
The problem lies here eval("document.TeeForm.amt.value(S+M)");
S and M suppose to add up and the total suppose to appear on the AMT field
but it didn't. Any help?
============================ CODE
==============================================
|
by: Jonathan Wood |
last post by:
Greetings,
My app displays users in a GridView control. I'd like to have the name field
shown in each row of this control a link that displays another page with
information about that user.
But I'm not sure how to approach this. How would I tell the target page
which user to display? I'd prefer not to pass the user's ID on the URL, and
I don't know when I'd get a chance to set a Session variable.
|
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...
|
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...
| |
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...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |