473,397 Members | 1,960 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,397 software developers and data experts.

how do i emulate a http POST using C#

I need to POST some hidden fields to a page, which i need to load in the
browser window..
i've tryed writting out the hidden fields and doing a
response.redirect/response.transfer but these don't send accross the hidden
fields....

so my question really is how do i send hidden fields and transfer to a page
(where they can be picked up from)?

Thanks a million in advance

Mike
Nov 16 '05 #1
2 1947
If you want to do a post, look at the WebRequest class.

If you are trying to make the browser do that, then the browser will need to
initiate the post (inc. getting users permission if needed).

-Michael
MVP

"Mike" <scul[nospam]li****@hotmail.com> wrote in message
news:Q%*****************@news-binary.blueyonder.co.uk...
I need to POST some hidden fields to a page, which i need to load in the
browser window..
i've tryed writting out the hidden fields and doing a
response.redirect/response.transfer but these don't send accross the
hidden
fields....

so my question really is how do i send hidden fields and transfer to a
page
(where they can be picked up from)?

Thanks a million in advance

Mike


Nov 16 '05 #2
You can also use the XMLHTTP object from client side script. It can
programmatically do from the client, what WebRequest can do from the server.

"Michael Giagnocavo [MVP]" <mg*******@Atrevido.net> wrote in message
news:u2**************@TK2MSFTNGP10.phx.gbl...
If you want to do a post, look at the WebRequest class.

If you are trying to make the browser do that, then the browser will need to initiate the post (inc. getting users permission if needed).

-Michael
MVP

"Mike" <scul[nospam]li****@hotmail.com> wrote in message
news:Q%*****************@news-binary.blueyonder.co.uk...
I need to POST some hidden fields to a page, which i need to load in the
browser window..
i've tryed writting out the hidden fields and doing a
response.redirect/response.transfer but these don't send accross the
hidden
fields....

so my question really is how do i send hidden fields and transfer to a
page
(where they can be picked up from)?

Thanks a million in advance

Mike

Nov 16 '05 #3

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

Similar topics

10
by: Rithish | last post by:
I want to emulate paging in an HTML document. something like, ------------------------- | | | <DIV> | | | | <TABLE></TABLE>...
12
by: tomasio | last post by:
Dear Group, I managed to simulate framelike behaviour in mozilla-based browsers by now, but it doesn't work out with Internet Explorer 6. Could someone glance through the code on the...
61
by: /* frank */ | last post by:
I have to do a homework: make a CPU simulator using C language. I have a set of asm instructions so I have to write a program that should: - load .asm file - view .asm file - do a step by step...
2
by: Mike | last post by:
I need to POST some hidden fields to a page, which i need to load in the browser window.. i've tryed writting out the hidden fields and doing a response.redirect/response.transfer but these don't...
2
by: Andre-John Mas | last post by:
Hi, I am trying to create a web page that has three sections: header, left frame and right frame: --------------------------- | | --------------------------- | ...
7
by: C a r l o s A n t o n i o | last post by:
Hello, I have to submit a file via HyperTerminal using my PC's internal modem on a daily basis. Does anybodoy know how to accomplish this in VS2005? Any language is good, VB preferred. ...
11
by: Andrus | last post by:
I'm implementing entity object which should populate its properties from database when property is first referenced. In RDL reports I use object properties like MyObject.MyProperty MyObject...
8
by: Giovanni R. | last post by:
Take a look at this code (you can execute it): error_reporting(E_ALL); function byVal( $v) {} function byRef(&$v) {} print '<pre>'; byVal ($first); // gives a notice
14
by: Eugeny Myunster | last post by:
Hello all, How can i emulate sizeof() only for integers?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
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...
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.