473,597 Members | 2,459 Online
Bytes | Software Development & Data Engineering Community
+ 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.setRequ estHeader "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 1425
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_auth or_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_autho r_plug>
----------------------------------------------

"Allan Cammish" <al**********@h otmail.com> wrote in message
news:f9******** *************** ***@posting.goo gle.com...
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.setRequ estHeader "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
3042
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 that generated by PHPdocs. Can anyone show me some sample code? I'm mostly interested in how other people set up their software - what objects call what objects? What are other programmers doing in their web projects? Is it common for people to...
3
2919
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
3027
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 but I am not sure how to do create a db, tables and fields as a local mdb. Any help or pointers to where I can find example code on this much appreciated. Thanks John
8
2000
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 words one would use to look for it. First, in broad philosophical terms, code actually -is- data. Code is the data that's fed into a compiler, interpreter, or microprocessor that tells it what to do. Code execution is, then, just a form another...
1
1761
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 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...
3
1331
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 fine. But I'm getting the result as one string. I know the field names that are actually returned. Is there a way to return the value of each field instead of the whole string? Request.Form(fieldname) doesn't seem to work here.
0
1608
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. See http://sourceforge.net/project/showfiles.php?group_id=93603 to download. The xFeed example application of the
4
2048
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 assigned the action to each button on Page_Load event: Me.ibPayWM.Attributes.Add("onclick", "noPostBack('https://merchant.webmoney.ru/lmi/payment.asp');") Me.ibPayRx.Attributes.Add("onclick",
0
7893
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8259
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5436
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3889
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3932
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2408
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 we have to send another system
1
1495
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1243
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.