Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 3rd, 2003, 04:50 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default

hi Hovik... now i cant update again... arghhhhh

i insert a new row, n put "Nil" words for those columns r not available yet, after few pages, i want to update some of the columns,but it dint update the value...... here is my command :
the 1st 1 is the command in my aspx page, n the 2nd 1 is MySQL's contain....

dim MySQL as string = "UPDATE ServiceInfo SET TimeOut='a' , FollowUp='a' WHERE TimeIn= '" & Request.Cookies("TimeIn").Value & "' "

UPDATE ServiceInfo SET TimeOut='a' , FollowUp='a' WHERE TimeIn= '9/3/2003 5:18:25 PM'

any idea to share...? im sure the TimeIn's Value is the same... i tried dont put NIL for columns when i insert a new row, then update it, it still cant........
thanks

best regard
life's Ng

 
Old September 3rd, 2003, 05:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

believe me I confused! plz send ur Table script to see what u want & what can I do?!

Always:),
Hovik Melkomian.
 
Old September 3rd, 2003, 08:12 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default

sorry sir, here is the code:
 Sub btNPest_Click(sender As Object, e As EventArgs)
    if Page.IsValid
         dim Conn as new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & server.MapPath("../Data/PestBusters-"+Request.Cookies("CustID").Value+".mdb"))
      ' response.write(request.Cookies("CustID").value)
         dim MySQL as String= "UPDATE ServiceInfo SET DbShow='off' WHERE TimeIn= '"& Request.Cookies("TimeIn").Value &"' "
         response.write(MySQL)
         dim objCmd as New OleDbCommand(MySQL,Conn)
         Conn.Open()
         objCmd.ExecuteNonQuery()
         Conn.Close()
    end if

it a simple update method.... i just want to update a column in a table, DbShow is a textfield column.

best regard
life's Ng


 
Old September 3rd, 2003, 09:29 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default

hi , it can work alrd, thanks!!! its becoz the TimeIn is different, when i insert a new row at the previous page, it auto post back when i select the dropdownlist n the cookies value changed few second... i dint relize it.... now i change the auto post back n its working le~~~ thanks sir... sorry to disturb u.

best regard
life's Ng






Similar Threads
Thread Thread Starter Forum Replies Last Post
pls help me.. nilusharief003 ASP.NET 2.0 Professional 5 December 4th, 2008 08:05 AM
help pls.. heera BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 October 20th, 2007 05:25 PM
trigger to insert current date on insert kev_79 SQL Server 2000 3 January 23rd, 2006 05:58 PM
ASP.Net Single Single-on with Oracle Application S guhanath Oracle 0 October 6th, 2004 05:05 AM





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