W
Wee Bubba
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.
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.