473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Passing data to a web page

I am new to .NET and I'm trying to move data from a local database to a
remote database. The only way to access the remote database is through a
web server. What I want to do is pull the records I need from my local
database and pass them to a web page which will loop through the records and
call a stored procedure on the remote database to insert them into a table .
I am using VB 2005 and SQL Server 2000. I have worked out the first part
where I pull the records I need from the local database in the code below.

Dim testConn As SqlConnection = New SqlConnection("Data
Source=DBLocalTest;integrated security=sspi;initial Catalog=pubs;")

Dim testCMD As SqlCommand = New SqlCommand("SPTest", testConn)

testCMD.CommandType = CommandType.StoredProcedure

Dim adapter As New SqlDataAdapter(testCMD)

Dim newDataset As New DataSet()

adapter.Fill(newDataset)

testConn.Close()

Dim xmldocument2 As New XmlDataDocument(newDataset)

I have the records in an XLMDataDocument now and what I want to do is pass
them over the web to a web page. This is where I'm stuck. How would I go
about passing the XLMDataDocument to a web page? Is putting the data in a
XLMDataDocument the right way to ready it for trasport to the web page?
Would this web page be considered a Web Service?

Any help would be appreciated.
Mar 10 '06 #1
1 1238
"rocky20" <go********@hotmail.com> wrote in message
news:e5**************@TK2MSFTNGP09.phx.gbl...

I have the records in an XLMDataDocument now and what I want to do is pass
them over the web to a web page. This is where I'm stuck. How would I go
about passing the XLMDataDocument to a web page? Is putting the data in a
XLMDataDocument the right way to ready it for trasport to the web page?
Would this web page be considered a Web Service?


Hi rocky20,

you do not have to convert the Dataset to XMLDocument. Just serialize the
Dataset to XML and pass it as a string. On the other side you can
deserialize the string to Dataset object backforwards.

Regards,

--
Martin Kulov
http://www.codeattest.com/blogs/martin

MCT
MCSD.NET Early Achiever
Mar 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Paul | last post by:
I want to use sessions to cover myself in case the user switches off cookies so I am passing the session ID manually through a hidden input field. This is what I have so far. index.php page...
1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
1
by: Kevin Lyons | last post by:
Hello, I am trying to get all of my form elements passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html to the following URL:...
5
by: Jack | last post by:
Hi, I need to pass multple variables in a link in order to go to a asp page with the two varables. The following are the values of the variables using response.write: <%'Response.Write Mypage...
27
by: Oscar | last post by:
I am looking for a way to pass an ADO recordset that has been retrieved in an ASP page to another HTML-page. Is there someone who can provide me with a small sample or a link to see how this is...
3
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
5
by: Rod | last post by:
I've written 2 ASP.NET applications (I've worked on one with a team and another by myself). In my ASP.NET pages, when saving data to a backend database I've done it by using the click event of a...
7
by: Smokey Grindle | last post by:
For a website that has users logged into it using sessions, its it best to pass data between pages in session variables or through query strings?
4
by: moondaddy | last post by:
I have a htm page where I need to pass some data to an aspx page as a means of sending data to the database. I don't need to see the aspx page so I was going to put it in a hidden iframe. This...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.