Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 May 4th, 2005, 10:17 AM
Registered User
 
Join Date: May 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kgriffin
Default Inserting text from datagrid into Memo field in c#

Hi,

I am trying to retrieve some text from a datagrid field edit it and place it into
a Memo field in an access data base.

I am using used:
Code:
  string contents = ((TextBox)e.Item.Cells[3]).Text;
and recieve
Code:
  System.InvalidCastException: Specified cast is not valid.
I am presumming the castworks fine for a string into a Text field in a database as that line compiles.

Do I need a different data type to insert into a Memo field?

Any help appreciated


Cheers,
Kev





Similar Threads
Thread Thread Starter Forum Replies Last Post
Set memo field text format via VBA dlipkie Access 1 September 25th, 2008 06:54 AM
Memo Field Brendan Bartley Access 11 December 13th, 2007 04:28 PM
Memo field not displaying meichmann SQL Server ASP 3 August 31st, 2006 11:36 AM
Inserting data into an Access memo field with SQL jhunta VB How-To 3 September 20th, 2005 02:49 PM
Field format from Text to Memo sassenach Classic ASP Databases 0 July 24th, 2003 06:19 AM





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