Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 11th November 2011
Braincode's Avatar
Braincode Braincode is offline
Ceriwis Addicted
 
Join Date: Nov 2011
Posts: 4,638
Rep Power: 20
Braincode mempunyai hidup yang Normal
Default Help ASP.NET

Guys saya mau nanya:



protected void Page_Load(object sender, EventArgs e)

{

String strURL;

String strResult;

WebRequest wbrq;

WebResponse wbrs;

StreamReader sr;



// Set the URL (and add any querystring values)

strURL = "http://192.168.1.164/wfform.php";



// Create the web request

wbrq = WebRequest.Create(strURL);

wbrq.Method = "GET";



// Read the returned data

wbrs = wbrq.GetResponse();

sr = new StreamReader(wbrs.GetResponseStream());

strResult = sr.ReadToEnd();



sr.Close();



// Write the returned data out to the page

Response.Write(strResult);

}




Berdasar coding di atas saya ngambil content dari url http:192.168.bla bla bla yang merupakan web server di tempat laen (jadi ceritanya saya bikin web service gitu)

Nah hasilnya tuh berupa textbox 8 biji, yang jadi masalah saya bingung ngambil value dari textbox textbox tersebut...



kalo bikin biasa kan tinggal "string a = Textbox1.text" kalo yang ini saya ga bisa pake cara serupa...Tolong dibantu yang tahu...link pun boleh..terima kasihhhhh semuanya yang uda rela share...





NB: ini dibikin pake Visual studio 2008, asp.net c#,



thxx....^^





Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 11:09 PM.


no new posts