473,395 Members | 1,558 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,395 software developers and data experts.

best way to dynamically alter page contents and speed

the lower part of my page consists of a dataList along with other
server controls and HTML markup. this is my data display section. the
upper part of my page is a data entry section.

what I want to do is give the user the option of displaying the data
below OR NOT. i.e. I am hoping that if they choose NOT to display the
data in the lower half of the page this will make their data entry
process quicker in the upper half.

what I want to do is say to the user, "If you want to do data entry
quicker then tick this checkbox to disable the data display section"
i.e. the dataList etc. will not be loaded at all so the page
postbacks will be quicker.

I am thinking I need to place my data display code inside a user
control then dynamically load this into a placeholder ONLY if the
page is in edit mode. or can i get away without using user control?

what is the best way to remove the lower half of my page dynamically
if the mode is "insert only"?

any advice much appreciated thanks.

Nov 18 '05 #1
2 1441
A placeholder is one option as is a user control, but an interesting thing I
have found is that just using an HTML Server control, (a DIV marked as
runat="server") will do the same thing.

I have a situation very similar to what you're describing where I use a
datalist to show a list of items and only when they click to edit or add a
new item do I want them to see the data entry form. The data entry form is
in a HTML Server control with visible=false and when they want to see the
data entry form, I just make visible=true.

When visible=false on the DIV, ASP.Net doesn't even render the items. I
have checked the source on the client and it's not even there.

Hope that helps,

Dale

"Wee Bubba" <ma***********@yahoo-dot-com.no-spam.invalid> wrote in message
news:40********@127.0.0.1...
the lower part of my page consists of a dataList along with other
server controls and HTML markup. this is my data display section. the
upper part of my page is a data entry section.

what I want to do is give the user the option of displaying the data
below OR NOT. i.e. I am hoping that if they choose NOT to display the
data in the lower half of the page this will make their data entry
process quicker in the upper half.

what I want to do is say to the user, "If you want to do data entry
quicker then tick this checkbox to disable the data display section"
i.e. the dataList etc. will not be loaded at all so the page
postbacks will be quicker.

I am thinking I need to place my data display code inside a user
control then dynamically load this into a placeholder ONLY if the
page is in edit mode. or can i get away without using user control?

what is the best way to remove the lower half of my page dynamically
if the mode is "insert only"?

any advice much appreciated thanks.

Nov 18 '05 #2
thanks - that does help a lot. i never knew you could make the layer
tags server side either!

Nov 18 '05 #3

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

Similar topics

3
by: Razvan | last post by:
Hello, Can somebody recommend me a Java Script scroller that can scroll an i-frame ? I tried the Tigra scroller (www.softcomplex.com/products/tigra_scroller/) but sometimes it does not...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
2
by: Chad | last post by:
I have a problem that I am desperate to understand. It involves dynamically adding controls to a Table control that is built as a result of performing a database query. I am not looking to...
1
by: Reza Nabi | last post by:
Bakground: I have a webform (LoadCtl.aspx) which loads the user control to a placeholder dynamically based on the ctlName querystring passed in the URL. Webform (LoadCtl.aspx) also passes a...
0
by: Matt Howeson | last post by:
I have a problem with a usercontrol that is dynamically loaded, from a web control and is not restoring it's viewstate properly. Here's the scenario. Within our content management system, I have...
3
by: Robert W. | last post by:
I have a SQL Server table called "ClosedMonths" that contains two pertinent fields: Yearx Monthx 2000 1 2000 2 2000 3 I want to simply query this...
1
by: vj | last post by:
How i can populate all fileds dynamically in jsp page based on contents found in xml file? I have written jsp servlets and java class file. i transferred automatic data from jsp to servlet then to...
0
by: vijendra | last post by:
How i can populate all fileds dynamically in jsp page based on contents found in xml file?I have written jsp servlets and java class file. i transferred automatic data from jsp to servlet then to...
6
by: gilbert.george | last post by:
Hi, I am setting the width of a textarea using the style.width to ensure the textarea is exactly the right width. I want to set the height/rows of the textarea depending on it's contents (so...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
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
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...

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.