Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services 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, 2003, 05:00 AM
Registered User
 
Join Date: Aug 2003
Location: Firozabad, U.P., India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data list binding

hello,
I am facing some prob while binding dataset to datalist with the help of following code

Private Sub GetNewLocationInformation()
        dlNewLocationInformation.DataSource = dsResult.Tables(0)
        dlNewLocationInformation.DataBind()
    End Sub


Probelem is that my some row in this dataset have null values So its giving the error " Cast from DBNull to type string is not valid"

pleae solve it

Thanks and Regards,
Alok Gupta
Software Engineer,
Infosys Technologies Ltd




Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Binding - Editing GridView Row Data desk_star BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 7 December 30th, 2007 11:07 AM
Binding a combo box to update a list view Amethyst1984 General .NET 0 February 28th, 2006 03:04 PM
Binding a DataReader To A List Box testsubject ADO.NET 3 December 21st, 2005 06:41 AM
Binding to Filtered Data (or Data subsets) gdbjohnson C# 8 August 27th, 2004 01:59 PM
Data Binding to List Controls dejawoo ASP.NET 1.0 and 1.1 Professional 2 July 3rd, 2004 10:54 PM





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