Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 5th, 2010, 03:59 PM
Registered User
 
Join Date: Aug 2010
Location: Cary, NC
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #2 (permalink)  
Old August 5th, 2010, 05:05 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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
__________________
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!
Reply With Quote
  #3 (permalink)  
Old August 6th, 2010, 08:41 AM
Registered User
 
Join Date: Aug 2010
Location: Cary, NC
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #4 (permalink)  
Old August 6th, 2010, 12:12 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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
__________________
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!
Reply With Quote
  #5 (permalink)  
Old August 12th, 2010, 04:44 PM
Registered User
 
Join Date: Aug 2010
Location: Cary, NC
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
  #6 (permalink)  
Old August 12th, 2010, 06:31 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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
__________________
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!
Reply With Quote
  #7 (permalink)  
Old August 18th, 2010, 01:09 PM
Registered User
 
Join Date: Aug 2010
Location: Cary, NC
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default HeaderLink class

Hi Imar,

On page 197 of your book, under step 3, the class "HeaderLink" is declared as a part of
Code:
<div id='Header'>
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
Reply With Quote
  #8 (permalink)  
Old August 18th, 2010, 02:42 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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
__________________
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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 9 - Validating user Imput (p304) SouthendSupporter BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 March 9th, 2010 05:24 AM
Validating Input from a Datasheet using VBA digby_dog Access VBA 1 October 6th, 2008 10:35 AM
validating input bukky VBScript 1 April 1st, 2004 04:30 AM
validating user input hosefo81 Javascript How-To 12 March 3rd, 2004 09:32 AM
Validating user input stu9820 VB.NET 2002/2003 Basics 2 January 15th, 2004 12:51 PM



All times are GMT -4. The time now is 02:57 PM.


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