 |
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
|
|
|
|

August 5th, 2010, 03:59 PM
|
Registered User
|
|
Join Date: Aug 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Chapter 9 Validating User Input
Hi Imar,
I am enjoying my introduction to ASP.NET using your book.
Operating under Windows 7 and VB 2008 Pro, I have a problem assigning properties to Validator controls. When I enter an '*' as the Text, it erases the ErrorMessage I have assigned the Validator. I can add an '*' manually to the ErrorMessage as it appears in Design View, but it does not operate properly when entered this way.
Am I missing something?
Don Hurlbert
|

August 5th, 2010, 05:05 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
I am enjoying my introduction to ASP.NET using your book.
|
That's good to hear; thank you...
I am not sure I understand the problem. Can you provide a bit more detailed steps?
Imar
|

August 6th, 2010, 08:41 AM
|
Registered User
|
|
Join Date: Aug 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
When assigning the Text and Error Message to a Validator in the Properties Grid, I first type in the Error Message. Then when I type an '*' as the Text, my Error Message is erased.
|

August 6th, 2010, 12:12 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
From where is it erased exactly? From design view or from the properties grid?
The former makes perfect sense, while the latter would be a bug.
Cheers,
Imar
|

August 12th, 2010, 04:44 PM
|
Registered User
|
|
Join Date: Aug 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Disappearing Controls
They disappear from the Design View.
I now have a problem with Server Controls on p. 105. Instead of the Markup code shown on p. 106 and 107, here is what I get when I set up ControlsDemo.axpx:
Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ControlsDemo.aspx.vb" Inherits="Demos_ControlsDemo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
Your Name
<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
<asp:Button ID="btnSubmit" runat="server" Text="Submit Information" />
<br />
<asp:Label ID="Label1" runat="server"></asp:Label>
</div>
</form>
<p></p>
</body>
</html>
I am running with VB 2008 and Windows 7.
Thanks for your help.
|

August 12th, 2010, 06:31 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
That markup looks fine to me.
Where are you checking this? This is how it should look in VWD. The code you see in step 9 on page 106 is from the View Source window in the browser, not in VWD, as explained in that step.
It would be helpful if you provided more info when you post problems like these. My mind skills are a little rusty, so you need to tell me what the problem is and what steps you followed to get there, or it'll be difficult for me to help you ;-)
Cheers.
Imar
|

August 18th, 2010, 01:09 PM
|
Registered User
|
|
Join Date: Aug 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
HeaderLink class
Hi Imar,
On page 197 of your book, under step 3, the class "HeaderLink" is declared as a part of
The class appears again on page 200 in a similar position under step 6.
In both cases, "The class or CssClass value is not defined" pops up when the mouse hovers over "HeaderLink". Can you tell me where this class is defined? I have searched the text and cannot locate an instance.
Thanks again,
Don Hurlbert
|

August 18th, 2010, 02:42 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
The class HeaderLink is defined in Monochrome.css and in DarkGrey.css; the two files that you add to the respective Theme folders in chapter 6.
You can ignore these warnings; Visual Studio just can't find them because they are defined in a theme. They should work fine at run-time.
Cheers,
Imar
|
|
 |