Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 June 1st, 2006, 07:07 PM
Registered User
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default displaying parameter value

Hi does anyone know how to display a value in a parameter?

I'm trying to store a value from a form textbox into a mySQL database.

However it seems that i'm getting an error saying i'm passing a null value even after i typed something into the textbox, so i'd like to see what is being passed. this is the code:

Dim CustNameParam as New odbcParameter("@CustName", odbcType.Varchar, 50)
CustNameParam.Value = txtName.text
cmd.Parameters.Add(CustNameParam)

i'd like to see what is in the CustNameParam.

Any help?

Thanx!


 
Old June 3rd, 2006, 03:32 PM
Authorized User
 
Join Date: May 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe the problem has occured at this line:
CustNameParam.Value = txtName.text;
Changed the line to
CusNameParam.Value=Convert.ToChar(txtName.text);






Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameter object malfunction - out parameter dash dev C# 2005 6 December 4th, 2007 12:58 PM
Images not displaying Penn_Clark Dreamweaver (all versions) 3 February 21st, 2006 12:59 PM
displaying XML forlorn Classic ASP XML 0 August 19th, 2005 03:16 AM
TIP: Displaying Parameter Values in the Report bsullins BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 December 21st, 2004 12:23 PM
Displaying decimals in C# alfonz ASP.NET 1.0 and 1.1 Basics 3 September 20th, 2004 01:51 PM





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