473,395 Members | 2,079 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,395 software developers and data experts.

How to commit the Form use Winform App?

example: this is the form

<FORM name=form1 action=http://www.abc.com/commit method=post>
<INPUT type=hidden value=1 name=cm>
<TEXTAREA id=spText name=spText>abcdefg,something</TEXTAREA>
</form>

how to submit the Form in Winform£¿

Thank U for any help
Aug 12 '06 #1
2 1393
eking,
Simplified example using WebClient class:
WebClient client = new WebClient();
NameValueCollection form = new NameValueCollection();
form.Add("cm", "1");
form.Add("spText", "abcdefg,something");
byte[] responseData = client.UploadValues("http://www.abc.com/commit",
form);

Cheers,
Peter

Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"eking" wrote:
example: this is the form

<FORM name=form1 action=http://www.abc.com/commit method=post>
<INPUT type=hidden value=1 name=cm>
<TEXTAREA id=spText name=spText>abcdefg,something
Aug 12 '06 #2
Thank you ,Let me try:)

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comдÈëÏûÏ¢
news:0B**********************************@microsof t.com...
eking,
Simplified example using WebClient class:
WebClient client = new WebClient();
NameValueCollection form = new NameValueCollection();
form.Add("cm", "1");
form.Add("spText", "abcdefg,something");
byte[] responseData = client.UploadValues("http://www.abc.com/commit",
form);

Cheers,
Peter

Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"eking" wrote:
example: this is the form

<FORM name=form1 action=http://www.abc.com/commit method=post>
<INPUT type=hidden value=1 name=cm>
<TEXTAREA id=spText name=spText>abcdefg,something

Aug 13 '06 #3

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

Similar topics

11
by: Markus Breuer | last post by:
I have a question about oracle commit and transactions. Following scenario: Process A performs a single sql-INSERT into a table and commits the transaction. Then he informs process B (ipc) to...
0
by: samlee | last post by:
Hi All, I'm learning how to write C# using reflection, but don't know how to code using reflection this.Controls.Add(this.label1); Could anyone help, Thank in advance. ...
3
by: Francesc | last post by:
Hi, After some years programming libraries and web based applications I'm trying to program my first not-silly windows application (something similar to an editor but just to annotate text...
5
by: Drew | last post by:
I have a user control written in C#. This user control uses some of my mixed mode C++ libraries. My user control is currently residing on a .NET Windows Form. Everything works nicely. Now I am...
24
by: ej1002 | last post by:
Hi I have developed a Windows Application(C# Windows Form) which will get the IFrame Source of the page it is navigating using Webbrowser Control. Now I want do this in ASP.Net web application(C#...
4
by: Simon Tamman {Uchiha Jax} | last post by:
Scenario: Two System.Windows.Forms: Form1 and Form2. Form1 is displayed, Form2 is hidden. At this juncture, is it possible to take the graphics from Form2 and output that to Form1's display...
1
by: Jason Richmeier | last post by:
I am experiencing some unexpected behavior with the Form Load event in a Windows application. Hopefully, someone can explain why this behavior is occurring. In my application, I have a form...
0
by: Gordon | last post by:
Hi; Can you add a column of button controls to a winform datagrid ? I have a form with three independant grids. I would like to add buttons i.e. update, add buttons at the end of each row....
0
by: eking | last post by:
example: this is the form <FORM name=form1 action=http://www.abc.com/commit method=post> <INPUT type=hidden value=1 name=cm> <TEXTAREA id=spText name=spText>abcdefg,something</TEXTAREA> </form>...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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...
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...

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.