Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 1st, 2004, 01:06 PM
Registered User
 
Join Date: Aug 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error: Input string was not in a correct format

i have given my code below..i am getting this errpr

Error: Input string was not in a correct format.

Please help me

Dim DBConn, strSQL AsString
DBConn = ConfigurationSettings.AppSettings("appDSN")
Dim scnUser AsNew SqlConnection(DBConn)
strSQL = "select * from DCM_T_UserInformation"
Dim cmd AsNew SqlCommand(strSQL, scnUser)
cmd.CommandType = CommandType.Text
'scnUser = New SqlConnection(DBConn)
Dim sdaUser = New SqlDataAdapter(cmd)
Dim ds AsNew DataSet
sdaUser.fill(ds, "User")
ds.Tables(0).DefaultView.Sort = "IU_UserID"
Dim intRow AsInteger
intRow = ds.Tables(0).DefaultView.Find(txtUserID.Text)
If intRow = -1 Then
str1 = txtUserID.Text
Else
Label1.Text = "new id"
EndIf
Return str1










Similar Threads
Thread Thread Starter Forum Replies Last Post
Input String was not a correct format clem99 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 March 15th, 2008 11:01 AM
input string not in correct format sarah lee ASP.NET 1.0 and 1.1 Basics 10 October 30th, 2006 05:18 PM
Input string was not in a correct format. palleti VB.NET 2002/2003 Basics 2 October 17th, 2006 10:38 AM
Input string was not in a correct format Dwizz VB.NET 2002/2003 Basics 2 April 4th, 2005 11:03 AM
"Input string was not in a correct format." keane Pro VB.NET 2002/2003 1 December 18th, 2004 08:45 PM





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