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 April 1st, 2004, 06:31 AM
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to charoenrit
Default Can't insert data into database

Hello
  actually i try to do a database program using asp.net the problem with me is i'm using access as database and when i'm try to insert new record into database it showing the error as "Operation must use an updatable query". and my code is:


private sub button1_click(Byval sender as system.object, byval e as system.eventargs) handles button.click

dim cn as oledbconnection
dim cmd as oledbcommand
dim da as oledbdataadapter

cn=new oledbconnection("provider=microsoft.jet.oledb.4.0; data source=d:\tong\last.mdb")

cmd.commandtext="insert into master values(" & textbox1.text & ",'" & textbox2.text "')"
cmd.connection=cn
try
cn.open()
cmd.executenonquery()
catch ex as exception
response.write(ex.message)
finally
cn.close()
end try
end sub

please suggest solution for this problem to me
thanks
Tong



 
Old April 1st, 2004, 10:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Try giving ASPNET user write permissions to the 'tong' folder.

 
Old April 4th, 2004, 06:49 AM
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to charoenrit
Default

Thank you!!!! i got that solution







Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert a value into database? [email protected] VB.NET 13 September 21st, 2006 10:38 AM
INSERT Data to SQL Database Lofa ASP.NET 1.0 and 1.1 Basics 1 February 22nd, 2006 03:09 AM
Can't insert into database chrscote Classic ASP Databases 1 June 15th, 2005 04:07 AM





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