Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 3rd, 2010, 01:47 AM
Authorized User
 
Join Date: Dec 2009
Posts: 63
Thanks: 18
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Wilfredo Rosado
Default Build errors

I get a warning message in my VWD shown below:

Warning 1
The class or CssClass value is not defined.
h:\Visual Studio 2008\WebSites\Site\Controls\ContactForm.ascx
line:178 column:17


If I just preview Contact.ascx in browser, it seems to run with just a minor difference than the book's example, The please wait... comes out at bottom of screen and the PleaseWait.gif is displayed on top of screen. Below is the part of the code that is giving warning:

Code:
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
  <ProgressTemplate>
    <div class="PleaseWait"> --Note: This is line 178...PleaseWait has green squiggly line under it.
      Please Wait...
    </div>
  </ProgressTemplate>
</asp:UpdateProgress>
Below is the code entered into the Monochrome.css:

Code:
.PleaseWait
{
  height: 32px;
  width: 700px;
  background-image: url(Images/PleaseWait.gif);
  background-repeat: no-repeat;
  padding-left: 40px;
  line-height: 32px;
}
Any ideas?
Fred
 
Old January 3rd, 2010, 06:38 AM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Default

do you have added a link to that style

put your class in StyleSheet.css file and then add this code to your page (in head part)

<link href="StyleSheet.css" rel="stylesheet" type="text/css" />

if you have done this and problem does not solved you can rebuild your project and close VWD and open it again
 
Old January 3rd, 2010, 06:50 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Fred ,

The warning is not a problem; VS simply doesn't know that the UC is used in a page where the Monochrome theme is applied so it can't find references to the various styles. At run-time everything comes together and then it works as expected. You can safely ignore the warning.

With regard to the location, are you sure your CSS and HTML for the page is in order? The width of PleaseWait is larger than its parent (700) so maybe the div just wraps to the next line? Try decreasing it to 500 as shown in the book.

Hope this helps.

Cheers,

Imr
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old January 3rd, 2010, 02:36 PM
Authorized User
 
Join Date: Dec 2009
Posts: 63
Thanks: 18
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Wilfredo Rosado
Red face Build errors

Hi Imar,

I originally had it at 500 as the book stated and it was doing the same thing. I just now tried it at 400, but the same results. I captured the screen, but I have no way of getting it to you so you can see what is happening.

I will try to describe it. Apparently, the words "Please wait..." show up at the left side of the footer area, while the PleaseWait.gif image shows up at the top of cpContentMain area on the left side and behind the words "Get in Touch with Us". It eventually sends the email and then times out, taking me to the page where it displays "Message sent". I do recieve the email with all the content on it.

My undrstanding from the book is that the PleaeWait.gif image shows up at bottom of cpContentMain with the words "Please wait..." immediately to its right.

Well this is not a big issue right now as I am only experimenting, but would like to eventually know how to properly correct this for future endeavors.

Thanks,
Fred
 
Old January 3rd, 2010, 05:46 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Fred,

You can send me a message at my personal web site (at http://imar.spaanjaars.com/). I'll reply so you know my e-mail address. If you then send me a zipped copy of the site, I'll take a look and let you know what the problem is.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird Build Errors Aaron Edwards ASP.NET 2.0 Basics 1 November 2nd, 2007 03:04 AM
Build Errors..Not Sure What to Do?? jazzcatone ASP.NET 2.0 Basics 2 March 8th, 2007 02:24 PM
VC++ Build Errors, Help!!!!!!!!! gothicpurple Visual C++ 0 August 29th, 2006 06:35 PM
build errors in vc++ angel188 Visual C++ 0 June 6th, 2006 06:41 AM
Please Help! Build errors motsam BOOK: ASP.NET Website Programming Problem-Design-Solution 2 February 29th, 2004 10:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.