Immediate download Beginning Expression Web 1st Edition Zak Ruvalcaba ebooks 2024
Immediate download Beginning Expression Web 1st Edition Zak Ruvalcaba ebooks 2024
com
https://ebookname.com/product/beginning-expression-web-1st-
edition-zak-ruvalcaba/
OR CLICK BUTTON
DOWLOAD EBOOK
https://ebookname.com/product/cgi-perl-web-warrior-series-1st-edition-
diane-zak/
ebookname.com
https://ebookname.com/product/microsoft-expression-web-3-in-depth-1st-
edition-michael-miller/
ebookname.com
https://ebookname.com/product/special-edition-using-microsoft-r-
expression-web-jim-cheshire/
ebookname.com
https://ebookname.com/product/careers-as-a-paralegal-and-legal-
assistant-1st-edition-g-s-prentzas/
ebookname.com
Social Theory in the Real World 1st Edition Dr Steven
Miles
https://ebookname.com/product/social-theory-in-the-real-world-1st-
edition-dr-steven-miles/
ebookname.com
https://ebookname.com/product/the-logic-and-the-art-of-memory-paolo-
rossi/
ebookname.com
https://ebookname.com/product/signals-and-systems-second-edition-i-j-
nagrath/
ebookname.com
https://ebookname.com/product/lyco-of-troas-and-hieronymus-of-rhodes-
text-translation-and-discussion-w-w-fortenbaugh/
ebookname.com
The English Mummers and Their Plays Traces of Ancient
Mystery Alan Brody
https://ebookname.com/product/the-english-mummers-and-their-plays-
traces-of-ancient-mystery-alan-brody/
ebookname.com
73155ffirs.qxd 1/24/07 9:07 PM Page iii
Beginning
Expression®Web
Zak Ruvalcaba
73155ffirs.qxd 1/24/07 9:07 PM Page ii
73155ffirs.qxd 1/24/07 9:07 PM Page i
Beginning
Expression®Web
73155ffirs.qxd 1/24/07 9:07 PM Page ii
73155ffirs.qxd 1/24/07 9:07 PM Page iii
Beginning
Expression®Web
Zak Ruvalcaba
73155ffirs.qxd 1/24/07 9:07 PM Page iv
Beginning Expression®Web
Published by
Wiley Publishing, Inc.
10475 Crosspoint Boulevard
Indianapolis, IN 46256
www.wiley.com
Copyright © 2007 by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-0-470-07315-5
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
Library of Congress Cataloging-in-Publication Data is available from the publisher.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form
or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as
permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior
written permission of the Publisher, or authorization through payment of the appropriate per-copy
fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax
(978) 646-8600. Requests to the Publisher for permission should be addressed to the Legal Department,
Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355,
or online at http://www.wiley.com/go/permissions.
For general information on our other products and services please contact our Customer Care
Department within the United States at (800) 762-2974, outside the United States at (317) 572-3993,
or fax (317) 572-4002.
Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related
trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates,
in the United States and other countries, and may not be used without written permission. Microsoft
and Expression are registered trademarks of Microsoft Corporation in the United States and/or other
countries. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is
not associated with any product or vendor mentioned in this book.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print
may not be available in electronic books.
73155ffirs.qxd 1/24/07 9:07 PM Page v
I would like to dedicate this book to my wife, Jessica; my daughter, Makenzie; my son,
Zaven; and the newest addition to our family, my son, Zayden, for putting up with
my many faults. I love my family more than anyone can possibly know.
73155ffirs.qxd 1/24/07 9:07 PM Page vi
73155ffirs.qxd 1/24/07 9:07 PM Page vii
Credits
Senior Acquisitions Editor Vice President and Executive Group Publisher
Jim Minatel Richard Swadley
Acknowledgments
Writing a book is a tremendous effort and takes dedication and patience from all who are involved. A
sincere “Thank you” to my Acquisitions Editor, Jim Minatel, for being on top of this book and for ensur-
ing that Beginning Expression Web is one of the first Expression Web books to market. I’d also like to thank
Kevin Shafer, Tim Tate, Spike Xavier, and Greg Beamer for their diligence toward making this book a
success.
73155ffirs.qxd 1/24/07 9:07 PM Page xii
73155ftoc.qxd 1/25/07 1:39 PM Page xiii
Contents
Acknowledgments xi
Introduction xxi
Contents
Working with Lists 43
Highlighting and Setting the Text Color 45
Applying Borders 47
Inserting a Horizontal Line 49
Checking the Spelling of a Web Page 50
Previewing Your Web Page in the Browser 53
Summary 56
Exercise 56
xiv
73155ftoc.qxd 1/25/07 1:39 PM Page xv
Contents
Using Interactive Buttons 120
Managing Web Site Hyperlinks 124
Summary 126
Exercise 127
xv
73155ftoc.qxd 1/25/07 1:39 PM Page xvi
Contents
Nesting Layers 212
Adding Borders and Shading to Layers 214
Deleting a Layer 217
Designing Table-less Web Sites by Using Layers and CSS 218
Designing Layers Using a Style Sheet 218
Inserting DIV Tags 223
Working with Contextual Selectors 226
Summary 227
Exercise 229
xvi
73155ftoc.qxd 1/25/07 1:39 PM Page xvii
Contents
xvii
73155ftoc.qxd 1/25/07 1:39 PM Page xviii
Contents
Chapter 13: Validating User Input 371
Client-Side Versus Server-Side Validation 372
Using Validation Controls 375
The RequiredFieldValidator Control 376
The CompareValidator Control 378
The RangeValidator Control 380
The ValidationSummary Control 382
The RegularExpressionValidator Control 383
The CustomValidator Control 385
Summary 387
Exercise 387
xviii
73155ftoc.qxd 1/25/07 1:39 PM Page xix
Contents
Form and Scripting Tests 443
Table and Frame Tests 444
Multimedia and Applet Tests 445
Other Accessibility Tests 446
Summary 447
Index 449
xix
73155flast.qxd 1/24/07 9:08 PM Page xx
73155flast.qxd 1/24/07 9:08 PM Page xxi
Introduction
Ten years ago, when I used FrontPage for the first time, I was amazed at how far ahead of its time the
program was. The ability to work with tables, visual formatting, styles, and pinpoint accurate designs
truly amazed me. I was a skeptic when it came to visual editors, and preferred Notepad whenever
possible. FrontPage changed that in me, and made me look at Web development in a whole new light.
Still, many considered FrontPage a simple visual editor that accomplishes little but aid in the development
of static Web pages. The mindset is that visual editors lack the true complexity that it takes to create rich
and powerful Web applications that encompass client-side technologies such as HTML, CSS, and
JavaScript, while leveraging server-side technologies such as ASP.NET.
Enter Expression Web. As FrontPage’s successor, Expression Web obliterates that stigma by captivating
the developer in a vast, intuitive, and feature-rich environment. Whether you’re designing a Web site for
personal use, a government institution, or a private organization, Expression Web’s tools are geared to
aiding in the development of feature-rich, accessible, and captivating Web pages.
All of the files required for working with the examples in this book can be downloaded from our Web
site at http://www.wrox.com/dynamic/books/download.aspx.
73155flast.qxd 1/24/07 9:08 PM Page xxii
Introduction
Conventions
To help you get the most from the text and keep track of what’s happening, a number of conventions
have been used throughout the book.
Try It Out
The “Try It Out” section is an exercise you should work through, following the text in the book.
Boxes like this one hold important, not-to-be forgotten information that is directly
relevant to the surrounding text.
Tips, hints, tricks, and asides to the current discussion are offset and placed in italics like this.
❑ Important new terms and important words are highlighted when we introduce them.
❑ Keyboard strokes are shown like this: Ctrl+A.
❑ File names, URLs, and code within the text are shown like this: persistence.properties.
❑ Code is presented in the following two ways:
In code examples, we highlight new and important code with a gray background.
The gray highlighting is not used for code that’s less important in the
present context, or has been shown before.
Project F iles
As you work through the examples in this book, you will need the project files that accompany the book.
The entire set of project files used in this book is available for download at http://www.wrox.com.
Once at the site, simply locate the book’s title (either by using the Search box or by using one of the title
lists), and click the Download Code link on the book’s detail page to obtain all the project files for the book.
Because many books have similar titles, you may find it easiest to search by ISBN; for this book the
ISBN is 9780470073155.
Once you download the files, just decompress them with your favorite compression tool. Alternately, you
can go to the main Wrox code download page at http://www.wrox.com/dynamic/books/download
.aspx to see the files available for this book and all other Wrox books.
xxii
Random documents with unrelated
content Scribd suggests to you:
church incense. Then he pounded some herbs and mixed a liquid
with them, but what the herbs were, no one knew. And with this
mixture he touched the brow and the lips and the hands of the man,
and sprinkled the rest over his insensible form. After this he told
them to keep silence round him for two hours, when he would return
and finish the cure. And so it happened, for in two hours the life
came back to the man, though he could not speak. But strength
came gradually; and by the next day he rose up, and said he had
dreamed a dream, and heard a voice saying to him, “Pull down the
barn, for ill-luck is on it.” Accordingly he gave orders to his men, and
every stick and stone was carried away, and the fairy rath left free
again for the fairies to dance on, as in the olden time, when they
were the gods of the earth, long before men came to dispute their
rights, and take possession of their ancient pleasure grounds—an
indignity no high-spirited fairy could calmly endure. For in their
councils they had decreed that the fairy rath, at least, should be
sacred for all time, and woe to the man who builds his house
thereon. An evil fate is on him and on the house for evermore. Down
it must come, or the evil spell will never be lifted. There is no hope
for it, for the most dangerous and subtle of all enemies is an angry
fairy.
Nor should the paths even be crossed by work of human hand,
which the fairies traverse from one palace to another. Their line of
march must not be impeded. Finvarra and his men would resent
such a gross insult to the royal fairy rights, and severely punish the
audacious and offending mortal. Not even the Grand Jury would be
allowed to interfere, for if they did, every man of them would be
demolished in some way or other by fairy power.
A holy well once lost all its power because a murder had been
committed near it; and another because it was cursed by a priest in
consequence of the immorality that prevailed at the patterns.
The water of the sacred well must never be used for household
purposes—cooking, washing, or the like. But after the well was
cursed by the priest, and the tents were struck, and no pattern was
held there any longer, it lost all its sanctity, and was no longer held
sacred by the people, who began to fill their pails, and carry the
water away home for cooking and household use; while also they all
washed their clothes down at the well, just as if no sanctity had ever
been in the water.
However, one day a woman having put down a pot of water to
boil, found that no amount of fire would heat it. Still it remained ice-
cold, as if just drawn from the well. So she looked carefully into the
pot, and there beheld the Sacred Speckled Trout sailing round and
round quite contented and happy. On seeing this, she knew that the
curse was lifted from the well, and she ran and told the priest. His
reverence having seen the Sacred Trout with his own eyes, ordered
it to be carried back to the well, the water of which at once regained
all its sacred powers by the blessing of the priest; and he gave the
people leave thenceforth to hold their pattern there, so as they
behaved themselves like decent, God-fearing Christians for the
future. But the water was not allowed to be carried away any more
to their houses for household purposes; the desecration of the holy
water of a sacred well being strictly forbidden as dangerous and
unlucky.
LEGEND OF NEAL-MOR.
There is a great hole or well near the river Suir, always filled with
water, whose depth no man has yet fathomed. Near it is a castle,
which in old times belonged to a powerful chief called Neal-mor. One
day while his servants were saving the hay, a violent tempest of
wind and rain came on, which quite destroyed the crop. Then Neal-
mor was filled with rage, and he mounted his horse and drew his
sword, and rode forth to the field; and there he challenged the Lord
God Himself to battle. And he swung his sword round his head and
struck at the air, as if he would kill and slay the Great Invisible Spirit.
On which suddenly a strange thing happened, for a great whirlwind
arose and the earth opened, and Neal-mor, still astride on his horse
and with his sword in his hand, was lifted high up into the air and
then cast down alive into the great hole, called Poul-mor, which may
be seen to this day, and the castle is still standing by the margin. But
no trace of Neal-mor or his steed was ever again beheld. They
perished utterly by the vengeance of God.
But some time after his disappearance, a rude stone figure seated
on a horse, was cast up out of the earth; and then all men knew the
fate of the terrible chief who had braved the wrath of God, for here
was his image and the sign of his destruction. The stone figure is
still preserved at the castle, and tradition says that if it were
removed, the whole castle would crumble to pieces in a single night
and be cast into the Poul-mor.
KIL-NA-GREINA.
Tober Kil-na-Greina (the well of the fountain of the sun) was
discovered only about eighty years ago, by a strange chance in the
County Cork.
The land was a desolate marsh, no one built on it, and nothing
grew on it or near it. But a large grey stone lay there, with a natural
hollow in the centre that would hold about a gallon of water, and
close by were the remains of an old pagan fort.
One day, the farmer who owned the land carried off this great
grey stone to use as a drinking trough for his cattle. But not long
after all the cattle grew sick, and then all the children sickened, so
the farmer said there was ill luck in the business, and he carried
back the stone to its old place, on which all the household recovered
their health. Thereupon the farmer began to think there must be
something wonderful and mysterious in the locality, so he had the
marsh thoroughly drained, after which process they came upon an
ancient stone circle, and in the midst was a well of beautiful fresh
water. Some people said there was writing on the stones, and
strange carvings; but it was generally believed to be a Druid temple
and oracle, for there was a tradition that a woman called the Ban-
na-Naomha (the nymph of the well) had once lived there—and that
she had the gift of prophecy, and uttered oracles to those who
sought her at the shrine by the well; and there was a little wooden
image of her, also, that used to speak to the people—so it was said
and believed. It is certain, however, that a pagan temple once
existed there, for which reason St. Patrick cursed the land and
turned it into a marsh, and the well was hidden for a thousand
years, according to St. Patrick’s word.
On the discovery of the well the whole country flocked to it for
cures. Tents were erected and a pattern was organized, which went
on for some years with great success, and many authentic instances
are recorded of marvellous miracles performed there.
The ritual observed was very strict at the beginning, three
draughts of water were taken by the pilgrims, the number of drinks
three, the number of rounds on their knees were three, thus making
the circuit of the well nine times. After each round the pilgrim laid a
stone on the ancient altar in the Druid circle, called “the well of the
sun,” and these stones, named in Irish “the stones of the sun,” are
generally pure white, and about the size of a pigeon’s egg. They
have a beautiful appearance after rain when the sun shines on them,
and were doubtless held sacred to the sun in pagan times. The
angels will reckon these stones at the last day, but each particular
saint will take charge of his own votaries and see that the stones are
properly counted, for each man will receive forgiveness according to
their number.
But gradually the revelry at the pattern gave occasion for so much
scandal, that the priest denounced the well from the altar, along with
all the wickedness it fostered and encouraged. Still the people would
not give up the pattern, and the drinking, and dancing, and
gambling, and fighting went on worse than ever, until one day a man
was killed. After this a curse seemed to have fallen on the place. The
well lost all its miraculous powers, no cures were effected; the
maimed, the halt, and the blind prayed before it, and went the
rounds, and piled the stones as usual, but no help came, and worst
sign of all, a great pagan stone on which a cross had been erected,
fell down of its own accord, and the cross lay shattered on the
ground. Then all the people knew that the curse of blood and of St.
Patrick was indeed over the well; so it was deserted, and the tents
were struck, and no pattern was ever held there any more, for the
virtue of healing had gone from “the fountain of the sun,” and never
has come back to it through all the years.
Even the Ban-Naomha, the nymph of the fountain, who used to
manifest herself occasionally to the regenerate under the form of a
trout, disappeared at the same time, and though she may be heard
of at other sacred wells, was never again seen by the devout
pilgrims who watched for her appearance at the Tober-kil-na-Greina.
SACRED TREES.
The large old hawthorns, growing singly in a field or by an ancient
well, are considered very sacred; and no one would venture to cut
them down, for the fairies dance under the branches at night, and
would resent being interfered with.
There is a Holy Stone in an island of the Shannon, called St.
Patrick’s Stone. It is shadowed by an aged hawthorn, the perfume of
which can be scented far off on the mainland in the flowering
season. At the top of this stone is a large hollow, always filled with
water by the rain or the dew, which is kept from evaporation by the
heavy shadows of the branching hawthorn. It is believed that the
water of this hollow has great healing power, and sometimes when a
patient is brought from a distance, a rude stone shed is built under
the tree, and there he is laid till the cure is completed by the water
of the Holy Stone. On leaving he ties a votive offering to the tree,
which is always covered with these memorials of gratitude.
In autumn the people go to bewail the dead at St. Patrick’s Stone;
and the mournful Irish chant may be often heard rising up in the still
evening air with weird and solemn effect.
TOBER-NA-DARA.
Tober-na-Dara (the well of tears) was so called because it
overflowed one time for a mile round, from the tears of the Irish
wives and mothers who came there to weep for their fallen kindred,
who had been slain in a battle, fighting against Cromwell’s troopers
of the English army.
LOUGH NEAGH.
Wonderful tales are related about the formation of Lough Neagh;
and the whole country round abounds with traditions. One of them
affirms that the great Fionn Ma-Coul being in a rage one day, took
up a handful of earth and flung it into the sea; and the handful was
of such a size that where it fell it formed the Isle of Man, and the
hollow caused by its removal became the basin of the present Lough
Neagh.
Another legend is that a holy well once existed in the locality,
blessed and sanctified by a saint with wonderful miraculous powers
of healing; provided that every patient on leaving, after cure,
carefully closed the wicket-gate that shut in the well. But once,
however, a woman having forgotten this information, left the gate
open, when instantly the indignant waters sprang from their bed and
pursued the offender, who fled in terror before the advancing waves,
until at last she sank down exhausted, when the waters closed over
her, and she was no more seen. But along the track of her flight the
waters remained, and formed the great lake now existing, which is
exactly the length the woman traversed in her flight from the angry
spirit of the lake.
Mysterious influences still haunt the locality all round Lough
Neagh; for it is the most ancient dwelling-place of the fairies, and
when they pass at night, from one island to another, soft music is
heard floating by, and then the boatmen know that the fairies are
out for a pleasure trip; and one man even averred that he saw them
going by in the track of the moonbeam, a crowd of little men all
dressed in green with red caps, and the ladies in silver gossamer.
And he liked these pretty creatures, and always left a little poteen
for them in the bottle when he was on the island. In return for which
attention they gave him the best of good luck in fishing and in
everything else; for never a gauger came next or nigh his place
while the fairies protected him, and many a time they led the gauger
into a bog, and otherwise discomfited him, when he and his men
were after a still.
So the fisherman loved his little friends, and they took great care
of him; for even in the troublous times of ’98, when the wreckers
were all over the country, they did him no harm; though indeed the
same wreckers knew where to find a good glass of something when
they came his way, and he always gave it to them with a heart and a
half; for didn’t they tell him they were going to free Ireland from the
Sassenach tyranny.
Down deep, under the waters of Lough Neagh, can still be seen,
by those who have the gift of fairy vision, the columns and walls of
the beautiful palaces once inhabited by the fairy race when they
were the gods of the earth; and this tradition of a buried town
beneath the waves has been prevalent for centuries amongst the
people.
Giraldus Cambrensis states, that in his time the tops of towers,
“built after the fashion of the country,” were distinctly visible in calm,
clear weather, under the surface of the lake; and still the fairies
haunt the ruins of their former splendour, and hold festivals beneath
the waters when the full moon is shining; for the boatmen, coming
home late at night, have often heard sweet music rising up from
beneath the waves and the sound of laughter, and seen glimmering
lights far down under the water, where the ancient fairy palaces are
supposed to be.
A HOLY WELL.
On the north side of Lough Neagh there is still a holy well of great
power and sanctity. Three ancient white-thorn trees overshadow it,
and about a mile distant is the fragmentary ruin of a wooden cross,
erected in the olden time to mark the limit of the sacred ground.
It was the custom up to a recent date for the pilgrims to go round
this well thirteen times barefoot on the 27th of June, drink of the
water, wash in it, and then, holding themselves freed from all past
sin, return to the old worldly life, and begin again after the usual
fashion the old routine of business or pleasure, or reckless folly,
conscious that they could come once more the following year and
clear off all the accumulated stains of an ill life by a lavation in the
holy well.
A number of yellow crystals are found near, which the people say
grow in the rocks in one night upon Midsummer Eve. And these
crystals have power to avert all evil and bring luck and blessing to a
house and family, and certain words are said while gathering them,
known only to the adepts. The crystals are, however, very plentiful,
and are found scattered for a space of two miles round the well, and
in the crannies of the rocks. When burned in a crucible they become
pure lime in one hour, and the powder ferments with spirits of vitriol;
yet the waters of the well when analyzed present no appearance of
lime.
At one time an effort was made to change the name of Lough
Neagh to Lough Chichester, in honour of the Lord Deputy, Sir Arthur
Chichester, but the Irish would not accept the new baptism, and the
old name still remains unchanged.
A SACRED ISLAND.
At Toome Island there is the ruin of an ancient church, where the
dead walk on November Eve. It is a solemn and sacred place, and
nothing is allowed to be taken from it; neither stone nor branch of
the shadowing trees, for fear of angering the spirits. One day three
men who were on the island cut down some branches of an elder-
tree that grew there to repair a private still, and carried them off in
their boat; but when just close to the shore a violent gust of wind
upset the boat, and the men were drowned. The wood, however,
floated back to the island, and a cross was made of it which was
erected on the beach, to commemorate the fate of the doomed
men.
It is recorded, also, that a certain stone having been taken away
by some masons from the ancient ruin, to build into the wall of the
parish church, which they were erecting in the place, the water in
the town well suddenly began to diminish, and at last dried up, to
the great consternation and terror of the inhabitants, who were at
their wits’ end to know the cause; when luckily an old woman of the
place dreamed a dream about the abduction of the stone, which
gave the solution of the mystery.
At once the people took the matter into their own hands, and they
went in a body and cast down the wall till they came on the stone,
which was then placed in a boat, and carried back with solemn
ceremonial to the island, where it was replaced in its original site,
and, immediately after, the water flowed back again into the well,
and the supply became even more copious than ever.
LOUGH FOYLE.
Lough Foyle means the borrowed lake, for in old times there were
two weird sisters dwelling beyond the Shannon, who were skilled in
necromancy. And the elder sister said to the younger—
“Give me the loan of your silver lake, for I have none; and I
promise to restore it to you next Monday.”
So the younger, being good-natured, rolled up the lake in a sheet
and despatched it over hills and dales to her sister. But when the
time came for return, the elder sister, being deceitful and cunning,
made answer to the messenger sent for it—
“Truly, I said Monday, but I meant the Day of Judgment. So I shall
keep the lake till then.”
And the lake therefore remains in her country to this day, while
the great hollow whence it was taken can still be seen in Connaught,
bare and barren, waiting for the waters that never will return.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookname.com