473,399 Members | 3,106 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.

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 1406
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
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
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
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
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
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
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
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
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
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.