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

basic site file org/structure


<given>
When starting a new AJAX Control enabled site, a set of files are created.
These are created -without- a master page.
</given>

To add a master page, I've been adding the master via add-new-item.
However, there is no automajic addition of references etc. to already
existing forms.

Now I have a few options:

- I can rename Default and add a new form named Default checking 'Select
Master', then copy the AJAX stuff out of the original Default and paste into
the new.

- I can go the other way - add the master page structure to the original
Default manually.
I guess it doesn't matter as long as the end result is the same. It seems
really niggly either way ...
Here's the question: Does it make sense to move the AJAX
ToolKitScriptManager to the master page to make it available to all forms,
or should it be added to each form file separately?

Does it even matter?
--



Feb 22 '08 #1
2 1381
it depends. the ajax library is a pretty heavy page hit and can slow down
page loads. if all your pages use it, then it makes sense to put it in the
master. if only a couple pages use the ajax library then only put on those
page. you can also have two master pages, one with and one without.

if its an intranet app bloat is probably ok, but if its an internat app,
then you have to worry about page size. with ajax and viewstate its easy to
get 1-2mb page loads which over a slow dsl may be a 20-30 second download. if
you have an internet site, turn viewstate off.

one trick is if the home page does not use ajax, it can load the script
files in the background so they are cached for the pages that actually need
them.

-- bruce (sqlwork.com)
"BobF" wrote:
>
<given>
When starting a new AJAX Control enabled site, a set of files are created.
These are created -without- a master page.
</given>

To add a master page, I've been adding the master via add-new-item.
However, there is no automajic addition of references etc. to already
existing forms.

Now I have a few options:

- I can rename Default and add a new form named Default checking 'Select
Master', then copy the AJAX stuff out of the original Default and paste into
the new.

- I can go the other way - add the master page structure to the original
Default manually.
I guess it doesn't matter as long as the end result is the same. It seems
really niggly either way ...
Here's the question: Does it make sense to move the AJAX
ToolKitScriptManager to the master page to make it available to all forms,
or should it be added to each form file separately?

Does it even matter?
--



Feb 22 '08 #2
Thanks, Bruce. I hadn't thought of the (now obvious) multi-master option.

Care to go a little deeper on the background load? Maybe a simplistic line
or two of code to get the idea across?

Thanks again!
"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:EF**********************************@microsof t.com...
it depends. the ajax library is a pretty heavy page hit and can slow down
page loads. if all your pages use it, then it makes sense to put it in the
master. if only a couple pages use the ajax library then only put on those
page. you can also have two master pages, one with and one without.

if its an intranet app bloat is probably ok, but if its an internat app,
then you have to worry about page size. with ajax and viewstate its easy
to
get 1-2mb page loads which over a slow dsl may be a 20-30 second download.
if
you have an internet site, turn viewstate off.

one trick is if the home page does not use ajax, it can load the script
files in the background so they are cached for the pages that actually
need
them.

-- bruce (sqlwork.com)
"BobF" wrote:
>>
<given>
When starting a new AJAX Control enabled site, a set of files are
created.
These are created -without- a master page.
</given>

To add a master page, I've been adding the master via add-new-item.
However, there is no automajic addition of references etc. to already
existing forms.

Now I have a few options:

- I can rename Default and add a new form named Default checking 'Select
Master', then copy the AJAX stuff out of the original Default and paste
into
the new.

- I can go the other way - add the master page structure to the original
Default manually.
I guess it doesn't matter as long as the end result is the same. It
seems
really niggly either way ...
Here's the question: Does it make sense to move the AJAX
ToolKitScriptManager to the master page to make it available to all
forms,
or should it be added to each form file separately?

Does it even matter?
--




Feb 22 '08 #3

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

Similar topics

28
by: Me | last post by:
I would like to redesign my existing site into php using classes. I am not the most experienced developer with PHP, and would like to know if anyone can give me some input on a starting point for a...
9
by: Frantisek Fuka | last post by:
This thing keeps bugging me. It's probably some basic misunderstanding on my part but I am stumped. Let's say I have two Python files: file.py and file2.py. Their contents is as follows: ...
3
by: Ben | last post by:
Hi everyone, Now I am using Visual Basic.net to write a program but having some headaches. The situation is as follows: I am using ODBC connection to connect one database( non-SQL server) ,...
18
by: steve | last post by:
I'm trying to create a structure of three pointers to doubles. For which I have: typedef struct { double *lst_t, *lst_vc, *lst_ic; } last_values; I then need to allocate space for...
3
by: sefe dery | last post by:
hi ng, i try to create a asp.net 1.0 website on windows server 2003(Servername: ServerX) with iis 6.0. PROBLEM: The user should login with his windows credentials in basic.aspx and...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
1
by: jim Bob | last post by:
Hi, I can't seem to get my head around a simple DB structure problem... Currently I have DBID LastName FirstName DateOfInterview SitePreference1ID ->SiteTable SitePreference2ID ->SiteTable
1
by: tommak | last post by:
It's a dream of human beings to build machines that can think and behave like human beings. The most important part of of such a machine is an artificial mind that can emulate the cognitive...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.