 |
| 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
|
|
|
|

August 20th, 2003, 06:46 AM
|
|
Authorized User
|
|
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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....
|
|

August 20th, 2003, 07:27 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
|
|
- 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
|
|

August 20th, 2003, 10:18 PM
|
|
Authorized User
|
|
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

August 20th, 2003, 10:19 PM
|
|
Authorized User
|
|
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

August 21st, 2003, 03:15 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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%>'>
|
|

August 21st, 2003, 06:14 AM
|
|
Authorized User
|
|
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello sir
Thankz a lot !!!!!!!!!1
praveen.....
|
|

August 21st, 2003, 06:22 AM
|
|
Authorized User
|
|
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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...
|
|

August 21st, 2003, 08:13 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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
|
|

August 21st, 2003, 09:18 AM
|
|
Authorized User
|
|
Join Date: Aug 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

August 21st, 2003, 10:16 PM
|
|
Authorized User
|
|
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |