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 October 10th, 2006, 10:51 AM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default data from HTML grid to database

Hi all,
I'm a very beginner and I've the problem I describe below:
I've to insert data from editable grid HTML(dinamically created by a search) to another SQL table.
Do you have idea how to do it? I'm using ASP 3.0 and SQL Server 2000.

Thank you in advanced

Rita

 
Old October 11th, 2006, 09:39 AM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

:)I thak you for your suggestion, but could you plase send me the link where to find information?

Thank you
Rita

 
Old October 11th, 2006, 09:42 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

What do you mean by an editable grid? You create an HTML table on the fly and display the data? I don't understand what you mean.

--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
 
Old October 11th, 2006, 10:50 AM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi all,
I didn't ask you to do it for me, but only to say if it's possible in ASP 3.0.
I've to realize an editable grid (where the number of the fields can change because it's a result of a search) and based these editable values I've to update some fields in table.
I'm answering if it's possible to realize it.
I hope it's clear.

Thank you

riru

Quote:
quote:Originally posted by dparsons
 What do you mean by an editable grid? You create an HTML table on the fly and display the data? I don't understand what you mean.

--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
 
Old October 11th, 2006, 10:56 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

So what you are doing is creating a field dynamically based on the result set of a search query. Yes it is easy to do, all you would have to do is use a Request.Form(<dyanmic textbox>) to work with the data.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
 
Old October 13th, 2006, 08:23 AM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your suggestion

I'll try

Rita

 
Old October 13th, 2006, 10:09 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Hi,

I have done what you're looking for many times. Depending on exactly how you are generating your fields there are a few different ways to do it. Could you explain a little more about what is the data in the search, how you're hitting the database and depending on what you find in your search, how you will be saving the data, in one column, several columns, etc.

Whatever you're doing though, you will have to loop through your search results and use some kind of key to identify each text box that you generate dynamically. I'm assuming you're generating text boxes in the "HTML grid". But I can't tell for sure from your post.

Thanks,
Richard






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to sort data in a data grid? zaheerabbas.sk ASP.NET 1.0 and 1.1 Basics 3 April 10th, 2007 02:37 PM
Export data from data grid to excel pomoc VB.NET 2002/2003 Basics 0 December 16th, 2005 03:11 PM
Export data from data grid to Excel pomoc Visual Basic 2005 Basics 0 December 16th, 2005 02:56 PM
trying to load db data into data grid itsajourney Beginning VB 6 2 June 7th, 2005 12:05 PM
how to print html data from access database method Classic ASP Databases 2 March 11th, 2005 12:51 PM





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