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 August 20th, 2003, 06:46 AM
Authorized User
 
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spraveens
Default query regarding recordset

Hi iam doing a project of asp and access ,Iam using a dsn less
connection.I would like to know How to bring the values of a recordset into a text field.while updating a record I want the previous value inside the text box.I dont know how to do it .
Kindly help...'

praveen....
 
Old August 20th, 2003, 07:27 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

  • Which bit are you stuck on:
  • connecting to database?
  • getting records back?
  • writing value into text box?
  • updating record?
can you show us what you've got so far?

rgds
Phil
 
Old August 20th, 2003, 10:18 PM
Authorized User
 
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spraveens
Default

Hello Mr.Phil

             Everything is working perfectly fine(add,del,update etc)
I want to know how to write the value of a record into a text box in a form.
Thank You
S.Praveen
 
Old August 20th, 2003, 10:19 PM
Authorized User
 
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spraveens
Default

Hello Mr.Phil

             Everything is working perfectly fine(add,del,update etc)
I want to know how to write the value of a record into a text box in a form
Thank You
S.Praveen
 
Old August 21st, 2003, 03:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Assuming you already have a recordset of the values you want to write, just do:
Code:
<%
...
Response.Write("<input type='text' value='" & rsName("FieldName").Value & "'>")
...
%>
or
<input type='text' value='<%=rsName("FieldName").Value%>'>
 
Old August 21st, 2003, 06:14 AM
Authorized User
 
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spraveens
Default

Hello sir

        Thankz a lot !!!!!!!!!1

praveen.....

 
Old August 21st, 2003, 06:22 AM
Authorized User
 
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spraveens
Default

Hi Mr.Phil

                Iam Praveen,just finished college Btech I.T. last month
and I have joined an IT company in India,they have given a project to be done by me alone using asp,sql server.although I have a basic knowledge of asp I dont have the high end programming knowledge,so please tell me how and from where I can learn asp,sql etc..
Thank You..
Praveen...

 
Old August 21st, 2003, 08:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

you could try www.w3schools.com for starters, they have tutorials on all sorts of subjects. If you don't like the ones there, search on google for tutorials - there are lots of them out there.

hth
Phil
 
Old August 21st, 2003, 09:18 AM
Authorized User
 
Join Date: Aug 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kaustav Send a message via Yahoo to Kaustav
Default

Sir,
I am an ASP beginner. Well I had a problem when trying to add record to a recordset.
I used the following code to add a new record and received te following error. I am using Win XP an the OS.
set rs = server.createobject(ADODB.Recordset)
rs "GB", strconnect, adopendynamic, adlockoptimistic
' GB is the table and strConnect is the connection string for Ms access 2000
rs.addnew
rs("Name")="Kaustav"
rs.close
set rs=nothing

the Error

The recordset cannot be updated. Database or objet is readonly at rs.addnew

------------------
Kaustav
 
Old August 21st, 2003, 10:16 PM
Authorized User
 
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spraveens
Default

Hello Mr.Phil

              My query is that How do I execute an sql query with a click of an hyper link, for ex: when I click on the link "view all customers" , I want the query "select * from customerinfo" to be executed and the results displayed.How do I do It?:(

Thank You

S.Praveen






Similar Threads
Thread Thread Starter Forum Replies Last Post
asp/Access recordset navigation query murshed Classic ASP Databases 1 April 10th, 2008 01:43 PM
Clone DAO Recordset into ADO Recordset kamrans74 VB How-To 0 March 6th, 2007 11:57 AM
Query from Recordset into another Recordset kamrans74 Pro VB Databases 5 March 5th, 2007 04:17 PM
Convert ADO recordset to DAO recordset andrew_taft Access 1 May 5th, 2004 02:31 PM
code to copy a query recordset to a file Ivan Access VBA 9 October 31st, 2003 06:50 PM





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