使用C#读取html标记并将值设置为html中的textbox [英] read html tag and set value to textbox in html using c#

查看:112
本文介绍了使用C#读取html标记并将值设置为html中的textbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在c#中创建一个应用程序,该应用程序将读取html文件并将值设置为html中的文本.

I want to crate a application in c# which will read the html file and set the value to text in html

推荐答案

如果html文件是XHTML格式的文件.在这种情况下,请使用XmlDocument加载html并设置值.该值是输入元素的属性,其另一个属性类型为文本".
It is easy if the html file is XHTML formatted file. If that''s case Load the html using XmlDocument and set the value. The value is an attribute of the input element whose another attribute type="text".


这篇关于使用C#读取html标记并将值设置为html中的textbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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