摘要:
其实c#和asp访问数据库的区别不大,我是说逻辑上的,要使用到System.Data.Sqlclint 1、首先建立连接对象,当然要先定义连接字符串 connectionstring="user=sa;password=sa;server=127.0.0.1;initial catalog=yourdatabase;"; SqlConnection conn=new SqlConnection(c... 阅读全文
摘要:
使用c#访问一个页面获取页面返回的字符串。 1、首先创建WebRequest对象,只能使用WebRequest.Create(url)静态方法。不能使用new。 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->WebRequestreq=... 阅读全文
摘要:
从网上收集了点资料总结一下 1、首先要载入xml文档,使用XmlDocument类中的load方法即: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->XmlDocument xmlDoc=new XmlDocument(); xml... 阅读全文