473,779 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.redire ct/response.transf er 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 1983
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.blueyond er.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.redire ct/response.transf er 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
programmaticall y do from the client, what WebRequest can do from the server.

"Michael Giagnocavo [MVP]" <mg*******@Atre vido.net> wrote in message
news:u2******** ******@TK2MSFTN GP10.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.blueyond er.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.redire ct/response.transf er 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
13681
by: Rithish | last post by:
I want to emulate paging in an HTML document. something like, ------------------------- | | | <DIV> | | | | <TABLE></TABLE> | | | | <TABLE></TABLE> | | |
12
3896
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 Test-Webpages I created and maybe leave me a hint what I have to change to make the CSS-based Layout (1) look like the Frames-based Layout (2)? This is how it looks like:
61
16299
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 simulation - display registers contents I tried to search con google with no success.
2
388
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 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
2
2503
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
1677
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. Thanks. Regards,
11
3971
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 is instance of MyEntity class. There is no MyProperty property in MyObject at design time.
8
2461
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
1722
by: Eugeny Myunster | last post by:
Hello all, How can i emulate sizeof() only for integers?
0
9636
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
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
10306
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10139
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10075
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9931
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...
0
8961
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6727
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
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.