473,480 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Example code for posting data to ASP.NET?

I have seen some examples of client-side code inside an ActiveX
control posting data back to the server in ASP. I have tried the code
and it works well. However, I need to see how this is done using
ASP.NET & VB.NET 2002 without requiring the .NET Framework to be
installed on the client-side browser.

I am writing a web-based system in ASP.NET & VB.NET 2002 that has to
use a VB6 ActiveX control on the client-side to automate Microsoft
Office products on the client-side and the same ActiveX control must
pass data to the server such as the version numbers of the Office
products that are installed. I am only interested in knowing how to
post back data from the ActiveX control, not how to automate Office.
Methods which I have seen working so far used Microsoft XML 3 with
code such as

XMLHTTP.Open "POST", sPage, False
XMLHTTP.setRequestHeader "PICNAME", "MyPic"

I am only interested in sending text data strings to the server,
probably up to 10. I need to see how the data is received in ASP.NET
2002.

Can anyone point me at example code? I know it can be done but I need
to see examples because the explanations of how it is done just fly
over my head!

Regards

Allan Cammish.
Jul 21 '05 #1
1 1407
In theory, what you do client side has not changed, so your control for
posting data to an ASP page could just as easily post data to an ASPX page.
The same request objects exist in asp.net for disseminating the posted data
as exist in asp, you likely only need to translate the server side part of
the example you already have from asp to asp.net.

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------

"Allan Cammish" <al**********@hotmail.com> wrote in message
news:f9**************************@posting.google.c om...
I have seen some examples of client-side code inside an ActiveX
control posting data back to the server in ASP. I have tried the code
and it works well. However, I need to see how this is done using
ASP.NET & VB.NET 2002 without requiring the .NET Framework to be
installed on the client-side browser.

I am writing a web-based system in ASP.NET & VB.NET 2002 that has to
use a VB6 ActiveX control on the client-side to automate Microsoft
Office products on the client-side and the same ActiveX control must
pass data to the server such as the version numbers of the Office
products that are installed. I am only interested in knowing how to
post back data from the ActiveX control, not how to automate Office.
Methods which I have seen working so far used Microsoft XML 3 with
code such as

XMLHTTP.Open "POST", sPage, False
XMLHTTP.setRequestHeader "PICNAME", "MyPic"

I am only interested in sending text data strings to the server,
probably up to 10. I need to see how the data is received in ASP.NET
2002.

Can anyone point me at example code? I know it can be done but I need
to see examples because the explanations of how it is done just fly
over my head!

Regards

Allan Cammish.

Jul 21 '05 #2

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

Similar topics

6
3028
by: lawrence | last post by:
I've downloaded and am now studying the Eclipse class libary. It looks very elegant and well done. But as I am somewhat new to OO, I'd like to see some example code. Documentation is thin, save...
3
2905
by: srijit | last post by:
Hello, Here is an example code of xml writer in Python+PythonNet, Ironpython and Boo. The codes look very similar. Regards, Srijit Python + PythonNet: import CLR
3
3005
by: John | last post by:
Hi, I am a beginner looking for example code on how to create an access database for a local application. I need to create the database when the app is first installed. I can do it with SQL 2000...
8
1985
by: Steve Jorgensen | last post by:
Hi folks, I'm posting this message because it's an issue I come up against relatively often, but I can't find any writings on the subject, and I haven't been able to figure out even what key...
1
1750
by: David | last post by:
I need C# example code to transfer a file to a PPC storage card. Not sure if this function is part of .net or do I need to call an API or activersync? Thanks
1
285
by: Allan Cammish | last post by:
I have seen some examples of client-side code inside an ActiveX control posting data back to the server in ASP. I have tried the code and it works well. However, I need to see how this is done...
3
1325
by: Peter Afonin | last post by:
Hello, I'm posting the data to another page and reading the results. I'm doing it approximately as described here: http://authors.aspalliance.com/stevesmith/articles/netscrape2.asp It works...
0
1593
by: aaronwmail-usenet | last post by:
xFeed AJAX data publication example code with documentation is available: See http://xsdb.sourceforge.net/xFeed.html for documentation. See http://www.xFeedMe.com for live web page examples....
4
2044
by: Peter Afonin | last post by:
Hello, I have a form with several buttons, and I need to post this data to several different applications. In ASP.NET 1.1 it was quite easy - I just used HTML controls (text or hidden), then...
0
7044
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
7087
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...
1
6741
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
5341
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,...
0
4483
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
182
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.