如何从asp.net插入数据到网站? [英] how inserting data into an website from asp.net?

查看:71
本文介绍了如何从asp.net插入数据到网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了问题,我需要在网站上填写一份表格,上面有我在数据库中的数据。

页面是www.aduanet.gob.pe/aduanas/informao/ HR10Poliza.htm

我还需要保存验证码的图像才能解密(这是自动查询产品数据)



我的初始解决方案是在ASP中的winform中使用Web浏览器,如

http://www.codeproject.com/Articles/50544/Using-the-WebBrowser-Control-in-ASP-NET



但IIS不显示winform。我不知道是否有些设置或者可能没有显示



抱歉我的英文不好(谢谢谷歌)



请帮忙,紧急

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

推荐答案

首先,在ASP.NET应用程序中使用WebBrowser控件是一种破解。它不受支持,坦率地说,我认为没有理由使用它。控件不会显示在您的网页中。服务器只是使用该控件来下载URL的内容,并将与您自己的内容混合的内容传递给它。还有其他方法可以将WebBrowser控件无法攻击到ASP.NET应用程序中。



其次,CAPTCHA会阻止您使用网站以自动化的方式。不,我们不会帮你击败他们网站的那个功能!
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!


根本就没有意义。你的帖子只是表明你不知道Web做什么,抛开ASP.NET。 Web浏览器是客户端的事情。如果您在服务器端应用程序上使用它,它可能会工作并且...如果您在ASP.NET页面上使用它,只需挂起HTTP请求/响应处理,因为服务器端没有人可以单击UI元素。 :-)



-SA
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


这篇关于如何从asp.net插入数据到网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆