Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 April 21st, 2010, 01:01 PM
Friend of Wrox
 
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
Default Chapter 9 - Validation question

Hello,

I finished the chapter 9 and i had few questions :)

1- I wanna know if its possible to easily set a gray * asterisk when the form launch so poeple know which fields are required.. then if there is an error the * become red or something..?

2- Also it is possible to show an image instead of a * if there is an error ?

3- Are client side validation are automaticly generated when using validation controls ?

P.S: Also, it is me or the "ControlToValidate" Property aren't in the properties show table in page 306-307 ?

Thanks.

Last edited by Rushino; April 21st, 2010 at 02:53 PM.. Reason: more infos...
 
Old April 23rd, 2010, 11:59 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
1- I wanna know if its possible to easily set a gray * asterisk when the form launch so poeple know which fields are required.. then if there is an error the * become red or something..?
Probably not that easy. A common technique is to place extra asterisks in front of the contorls

Quote:
2- Also it is possible to show an image instead of a * if there is an error ?
Certainly. Take a look at the section titled "Using Images for Your Error Messages" here: http://msdn.microsoft.com/en-us/library/aa479013.aspx

Quote:
3- Are client side validation are automaticly generated when using validation controls ?
Yes, provided that the EnableClientScript property is on, which is the case by default.

Quote:
P.S: Also, it is me or the "ControlToValidate" Property aren't in the properties show table in page 306-307 ?
Nope, you are correct. But take a look at the last sentence before the table:

Quote:
The following table lists the additional properties for the CompareValidator control.
The ControlToValidate property is shared by all validators and is discussed on page 304.

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!
 
Old April 26th, 2010, 03:06 AM
Registered User
 
Join Date: Apr 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Form Authentication Over internet

Can anyone give me solution for login security(Asp.net).

how can i send my user id & password over the internet from browser to web server. I'm using Form Authentication . Without SSL is it possible?
 
Old April 26th, 2010, 03:47 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Cross post. Please see here for replies: Login Security (Form Authentication)

Please don't cross post, and please don't post new topics under existing and unrelated threads.

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
About a question with validation nealwang1019 XML 7 May 7th, 2009 03:52 PM
About a question with validation nealwang1019 BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2 0 May 4th, 2009 10:58 AM
Validation Question mar0364 VBScript 8 July 26th, 2004 02:37 PM
Validation question savoym C# 2 July 19th, 2004 07:23 AM





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