常量值“65306”无法转换为“char”

zjjhzll 2009-03-02 12:34:04
Console.WriteLine("webbrowser2 :  " + this.WebBrowser2.Url.OriginalString + " | " + e.Url.AbsoluteUri);
this._webbrowserTimes = 0;
try
{
if (this.WebBrowser2.Url.OriginalString.ToLower() != "about:blank")
{
HtmlDocument doc = this.WebBrowser2.Document;
string documentText = this.WebBrowser2.DocumentText;
if (e.Url.AbsoluteUri.ToLower().StartsWith("http://qm.pceggs.com/Web/ADQuestion.aspx".ToLower()))
{
doc = this.WebBrowser2.Document.Window.Frames["bottomFrame"].Document;
string innerHtml = doc.Body.InnerHtml;
doc.All["btnt"].AttachEventHandler("onclick", new EventHandler(this.SubmitEvent_40Gold));
this._questionId = "";
this._question = "";
this._answer = "";
this._answerId = "";
this._bean = new AnswerBean();
string startTag = "<SPAN class=STYLE2 style=\"FONT-SIZE: 14px\">";
string endTag = "</SPAN>";
string keyWord = "";
keyWord = this.GetValue(ref innerHtml, startTag, endTag).Trim().Trim(new char[] { 0xff1a, ':' });
this._bean.questionKeyWord = keyWord;
...全文
278 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zjjhzll 2009-03-02
  • 打赏
  • 举报
回复
错误提示

keyWord = this.GetValue(ref innerHtml, startTag, endTag).Trim().Trim(new char[] { 0xff1a, ':' });
iGouzy 2009-03-02
  • 打赏
  • 举报
回复
char[] buffer = new char[] { BitConverter.ToChar(BitConverter.GetBytes(0xff1a), 0), ':' };
zgke 2009-03-02
  • 打赏
  • 举报
回复
keyWord = this.GetValue(ref innerHtml, startTag, endTag).Trim().Trim(new char[] { (char)0xff1a, ':' });
pbmlly 2009-03-02
  • 打赏
  • 举报
回复
up.
sageking2 2009-03-02
  • 打赏
  • 举报
回复
按照你的理解65306应该对应哪个char值

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧