473,383 Members | 1,984 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,383 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 1943
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?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.