Post Form using C# -


i need post data other website using c#.

<form action="http://localhost:2180/prepdoc.aspx" method="post" target="my_frame" >     <input type="text" name="sometext" value="some text" />     <input type="submit" runat="server" /> </form> <iframe id="myiframe" name="my_frame" runat="server" > 

this working fine need using c#.

can 1 guide me before trying post data using onclick button code takes prepdoc page dont want .

httpresponse httpresponse = httpcontext.current.response; httpresponse.clear();  httpresponse.write("<html><head></head>"); httpresponse.write(string.format(     "<body onload=\"document.{0}.submit()\">",     "frmcart")); httpresponse.write(string.format(     "<form name=\"{0}\" method=\"{1}\" action=\"{2}\" target=\"my_frame\">",      "frmcart",     "post",     "http://localhost:2180/prepdoc.aspx")); httpresponse.write("</form>"); httpresponse.write("</body></html>");  httpresponse.end(); 

i want on default page (caller page) , in iframe. appreciated.

a resource page:

http://msdn.microsoft.com/en-us/library/6c3yckfw(v=vs.100).aspx

there can find code snippets, too. enjoy.

greetings johnny


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -