Click here to Skip to main content
15,913,123 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a problem, I need to fill out a form on a website with data that I have in my database.
The page is www.aduanet.gob.pe/aduanas/informao/HR10Poliza.htm
I also need to save the image of the captcha to decrypt (this is to consult product data automatically)

My initial solution was using a Webbrowser within a winform in ASP as developed in
http://www.codeproject.com/Articles/50544/Using-the-WebBrowser-Control-in-ASP-NET

But IIS does not display the winform. I do not know if for some settings or may not show

sorry for my bad English (thanks google)

please help, it is urgent
Posted
Comments
Sergey Alexandrovich Kryukov 6-Jul-15 16:43pm    
It makes no sense at all. Your post simply demonstrates that you have no clue what Web does, set aside ASP.NET.
—SA

First, using the WebBrowser control in an ASP.NET application is a hack. It's not supported and, frankly, I see no reason to use it. The control will NOT be shown in your webpage. The server is just using the control to download the content of a URL and pass that content mixed in with your own content. There are other ways of doing this that do not involve hacking a WebBrowser control into a ASP.NET application.

Second, the CAPTCHA is there to prevent you from using the site in an automated fashion. NO, we will not help you defeat that feature of their site!
 
Share this answer
 
Comments
Rene GM 1-Jul-15 9:57am    
You're right, but I was assigned the job, this functionality is to add to a system of consultations, the idea is not hack the website. It is to help the user to automatically fill the fields and only have to click on the check button.
Dave Kreskowiak 1-Jul-15 12:36pm    
OK, that doesn't change anything of what I said.

First, you can NOT use a WebBrowser control in a web page. I already told you how that article worked and how the SERVER uses the WebBrowser control.

Second, you are still not going ot get help with cracking a CAPTCHA no matter how noble the use is.
Sergey Alexandrovich Kryukov 6-Jul-15 16:49pm    
It's amazing. Then we are talking with wrong person. Why would we have to talk to one no making any decisions. Let those people talk to us, those who gave you the "assignment". It's possible that you simply misunderstood it. If you want auto-fill of the fields, ask about auto-fill, don't talk ridiculous things about Forms and WebBrowser — it simply demonstrate that you have no clue on what Web does.

Please see Solution 2.

—SA
Rene GM 1-Jul-15 12:43pm    
The captcha is optional, what we want is to help users as possible to fill the fields automatically.
Thank You.
Dave Kreskowiak 1-Jul-15 15:26pm    
You can't use the WebBrowser control for this. An option would be to load the target page in an IFRAME in your page. Then you can probably get at that page from the javascript on your own page.

No, I don't have an example.
It makes no sense at all. Your post simply demonstrates that you have no clue what Web does, set aside ASP.NET. Web browser is a client-side thing. If you use it on the server-side application, it might work and… simply hang the HTTP request/response processing if you use it on the ASP.NET page, because there is no one on the server side to click on the UI elements. :-)

—SA
 
Share this answer
 
Comments
Rene GM 24-Jul-15 9:48am    
This is possible. but you must configure the IIS and the server. In this case it succeeds and works. Until now users have had no problems
This link guide me http://www.locualo.net/programacion/ejecutar-programas-traves-servicio-web/00000071.aspx

thanks for your answers
Sergey Alexandrovich Kryukov 24-Jul-15 12:12pm    
Maybe you are talking about something else? Pay attention, in your post you wrote "winform", "IIE does not display winform". What "must configure", for goodness sake? Do you want to show a form on the server side? :-)
—SA

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