Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I need to export data from excel or database to google ,twitter sign up page.when i click a button in windows form then automatically upload sign up details into sign up page of google except captcha manually
Posted
Updated 26-Jul-12 20:52pm
v2
Comments
bbirajdar 27-Jul-12 2:20am    
Ok..So whats the question?
Cphashir 27-Jul-12 2:57am    
how can fill text box of sign up page in google or yahoo from my data base fields except captcha example username =cphash password=**** etc
Cphashir 9-Aug-12 2:35am    
a company told to make a software tool for bpo service to make easy
DaveAuld 28-Jul-12 18:48pm    
Sounds like you are trying to create an semi-automatic bot? If so so, then you are up to no good.
My vote of 5 - Nice initiative....

1 solution

I was in a similar type of problem before some days, where I wanted to populate data like UserName and Password to any website from my code.
Check my question - Integrating email clients in one website using C#.Net / ASP.Net[^].

You can find useful codes for your implementation at How login to a website[^] and Yahoo Login Via System.Net.Sockets Namespace[^].

If you are using WebBrowser control, then it will be easy for you with these codes.
I have implemented and it is working fine.
I can populate data to any website's textboxes.
The codes just goes through all the controls in the page and finds the textboxes according to some condition.
Let me explain the code -
VB
Dim theElementCollection As HtmlElementCollection  
 
theElementCollection = Me.WebBrowser1.Document.GetElementsByTagName("input")  
For Each curElement As HtmlElement In theElementCollection 
    Dim controlName As String = curElement.GetAttribute("name").ToString 
    If controlName = "USERNAME" Then
       curElement.SetAttribute("Value", "Your username")
    ElseIf controlName = "PASSWORD" Then
       curElement.SetAttribute("Value", "Your password")
    End If
Next 

Here it is searching with the "name" attribute of all the "input" elements.
And if the name attribute is "USERNAME", then it fills with the username data you provide and if it is "PASSWORD", then it fills with the password data you provide.
Just try to implement the code present in the links and you will do it for sure.

Thanks,
Tadit
 
Share this answer
 
Comments
Cphashir 30-Jul-12 0:11am    
i want fill up sign up pages also except captcha.Have any problem to do like this?
Yes you can do that by just finding the controls by any attribute like "name" or "id" and assign them the value u want to. I have given my example where I was filling data in Login page. Just use the codes to do it sign-up page...
Feel free to ask questions if u face any problems while implementation.
Thanka a lot.
Tadit
Cphashir 9-Aug-12 2:45am    
thankss..its working.If i am creating a software like this for a bpo company have any legel problem.
Thanks a lot for accepting the answer....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900