Click here to Skip to main content
15,892,697 members
Home / Discussions / C#
   

C#

 
GeneralChange License URL using key info Pin
gupta vaibhav18-Sep-04 1:50
gupta vaibhav18-Sep-04 1:50 
Generallink database Pin
pupuboy18-Sep-04 1:14
pupuboy18-Sep-04 1:14 
GeneralRe: link database Pin
VanesaAFESRG18-Sep-04 5:53
VanesaAFESRG18-Sep-04 5:53 
Generalfill web form using a windows form written in c# Pin
cemlouis17-Sep-04 23:37
cemlouis17-Sep-04 23:37 
GeneralRe: fill web form using a windows form written in c# Pin
sreejith ss nair17-Sep-04 23:41
sreejith ss nair17-Sep-04 23:41 
GeneralRe: fill web form using a windows form written in c# Pin
cemlouis17-Sep-04 23:53
cemlouis17-Sep-04 23:53 
GeneralRe: fill web form using a windows form written in c# Pin
sreejith ss nair17-Sep-04 23:58
sreejith ss nair17-Sep-04 23:58 
GeneralRe: fill web form using a windows form written in c# Pin
cemlouis18-Sep-04 5:29
cemlouis18-Sep-04 5:29 
Hi,

Thank you for your interest, anyway here is the link: http://www.stratejiparki.com/name.php[^] When you wrote and submit something it displays what you had written... I made a form and put a textbox, button, label on it. Then I made the button's click function like below:

<br />
private void button1_Click(object sender, System.EventArgs e)<br />
{<br />
	// Download the data to a buffer.<br />
	WebClient client = new WebClient();<br />
	// Upload some form post values.<br />
	NameValueCollection form = new NameValueCollection();        <br />
	form.Add("email", textBox_email.Text.ToString());        <br />
	Byte[] responseData = client.UploadValues("http://www.stratejiparki.com/name.php");        <br />
<br />
	HttpWebRequest webRequest = (HttpWebRequest) WebRequest.Create("http://www.stratejiparki.com/name.php");<br />
	// ask the web request for a webResponse encapsulating<br />
	// that page<br />
	HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse( );<br />
	// get the streamReader from the response<br />
	StreamReader streamReader = new StreamReader(webResponse.GetResponseStream( ), Encoding.ASCII);<br />
	string outputString;<br />
	outputString = streamReader.ReadToEnd( );<br />
	streamReader.Close( );<br />
	label1.Text = outputString;<br />
}<br />


The thing that I want is to write a string to the textbox on windows form than press the button. The textbox's text must go the form on www.stratejiparki.com/name.php then the windows form takes the data on showname.php and write to the label on windows form...

Thank you,
Cem Louis
GeneralCreating Access database in runtime Pin
janigorse17-Sep-04 22:36
janigorse17-Sep-04 22:36 
GeneralRe: Creating Access database in runtime Pin
Vasudevan Deepak Kumar18-Sep-04 1:53
Vasudevan Deepak Kumar18-Sep-04 1:53 
GeneralUsing Web Services from Java Pin
sacoskun17-Sep-04 22:22
sacoskun17-Sep-04 22:22 
QuestionHow to make line limit to input string in Textbox control. Pin
Anonymous17-Sep-04 13:48
Anonymous17-Sep-04 13:48 
AnswerRe: How to make line limit to input string in Textbox control. Pin
Jay Shankar17-Sep-04 17:06
Jay Shankar17-Sep-04 17:06 
GeneralRe: How to make line limit to input string in Textbox control. Pin
sacoskun17-Sep-04 22:25
sacoskun17-Sep-04 22:25 
GeneralRe: How to make line limit to input string in Textbox control. Pin
Jay Shankar18-Sep-04 0:00
Jay Shankar18-Sep-04 0:00 
GeneralRe: How to make line limit to input string in Textbox control. Pin
Anonymous18-Sep-04 8:00
Anonymous18-Sep-04 8:00 
Questionhow to read utf8 string from mysql and save to a xml file? Pin
niqing17-Sep-04 12:42
niqing17-Sep-04 12:42 
GeneralDataGrid Pin
ImanMahmoud17-Sep-04 10:01
ImanMahmoud17-Sep-04 10:01 
GeneralRe: DataGrid Pin
Heath Stewart17-Sep-04 10:46
protectorHeath Stewart17-Sep-04 10:46 
GeneralRe: DataGrid Pin
ImanMahmoud17-Sep-04 11:45
ImanMahmoud17-Sep-04 11:45 
GeneralRe: DataGrid Pin
sreejith ss nair17-Sep-04 23:39
sreejith ss nair17-Sep-04 23:39 
QuestionHow to specify the default Toolbox Tab for a custom control Pin
shark9265117-Sep-04 9:51
shark9265117-Sep-04 9:51 
AnswerRe: How to specify the default Toolbox Tab for a custom control Pin
Heath Stewart17-Sep-04 10:42
protectorHeath Stewart17-Sep-04 10:42 
GeneralEasiest way to load this Pin
Joel Holdsworth17-Sep-04 9:44
Joel Holdsworth17-Sep-04 9:44 
GeneralRe: Easiest way to load this Pin
Heath Stewart17-Sep-04 10:28
protectorHeath Stewart17-Sep-04 10:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.