Wrox Programmer Forums
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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 September 4th, 2008, 02:06 PM
Authorized User
Join Date: Jun 2008
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Not Null for string datatype

I had string datatype with not Null in a table.
At page level i used to put requiredfield validation for null type string.
But in one edit page i forget to put validation.while editing record It has not given me error as integer or datetime gives for Not null field and acceted blank as data.Now even i edit with any data it is not accepting any data and showing blank field only.I found it is strange.
So How could i do programming for checking not null value for string of edit page.
even i am using below coding it does not give message
if txtbox.text = "" then
lbltxtbox.text = "could not blank"
instance.propertyname = txtbox.text
end if

Old September 5th, 2008, 09:07 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi snbelani,

Is this related to the book ASP.NET 2.0 Instant Results? If so, can you specify chapter and / or page number?

If not, I think you're better off posting in a different category here at p2p.wrox.com. If you do, please try to ask a better question and provide more information. It's not really clear to me what you are asking.

BTW: Did you ever resolve the issue with the BugBase menu.



Imar Spaanjaars
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert NULL to String for Concatenation? Ron Howerton SQL Language 5 September 23rd, 2006 05:54 AM
Display 0 currency as Null String echovue Access 5 August 11th, 2005 02:33 PM
Difference between null and empty string shoakat Classic ASP Databases 4 September 10th, 2004 11:40 AM
search for null /String.Empty in Active Directory georgeh C# 1 October 16th, 2003 08:09 AM

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