|
-
July 1st, 2007, 03:02 AM
#1
text from program ---> web www
I want that when I write something in textbox in my program and click button in my program, text from program from textbox is showing in web www on example on registering web where somebody should write yours name, nick, date of birth etc.
Is that possible ?
-
July 1st, 2007, 11:40 AM
#2
Re: text from program ---> web www
I am a little confused about your question. I assume you want to build a registering software that will communicate with a website.
HttpWebRequest and HttpWebResponse are the classes to work with. You have to dig a little to establish whether it is using POST or GET and other needed informations.
Bogdan
If someone helped you then please Rate his post and mark the thread as Resolved
Please improve your messages appearance by using tags [ code] Place your code here [ /code]
-
July 1st, 2007, 12:29 PM
#3
Re: text from program ---> web www
For example this web:
https://www.google.com/accounts/Serv...t<mplcache=2
In this web we must write login and password - how can we write login and password in program c# i .net and after click some button in this programm, login and password showing from programm to fields in this web ?
-
July 1st, 2007, 01:56 PM
#4
Re: text from program ---> web www
In my previous post I gave you a solution for completing the fields of a website without the need of a browser.
You want to interact with Internet Explorer ? You want to develop some auto-complete software ? That means you need to interop with certain browser.
Bogdan
If someone helped you then please Rate his post and mark the thread as Resolved
Please improve your messages appearance by using tags [ code] Place your code here [ /code]
-
July 1st, 2007, 08:06 PM
#5
Re: text from program ---> web www
Try using the web browser control either on a windows form or as an object. You can use the get by id or get by name to find the control on the page (sometimes you just have to count the number of controls from the top of the page and use the index) the then once you have the object call the click method. You can also get the object representing the text controls to fill in the user and passwird,
-
July 1st, 2007, 09:29 PM
#6
Re: text from program ---> web www
 Originally Posted by wmain
(sometimes you just have to count the number of controls from the top of the page and use the index)
Don't *ever* do that except as an absolute last resort. That kind of program will break horribly every single time the webpage changes slightly. If the webmaster moves an ad panel from the side to the top, your application has just broken.
www.monotorrent.com For all your .NET bittorrent needs
NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.
-
July 2nd, 2007, 01:18 AM
#7
Re: text from program ---> web www
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
string adres = textBox1.Text;
webBrowser1.Navigate(adres);
}
}
}
I have got Internet Explorer in my program but I don't know how I can fill fields on the web www - could you give me example ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|