;
document.getElementById("divspellcheckerror").style.display = "";
}
</script>
<div class="shouji138errorbox" id="divspellcheckerror" style="display: none; width: 400px">
<div id="SccNotify" class="yui-module yui-overlay yui-panel" style="visibility: inherit;">
<div class="shouji138_notice-error">
Spelling Error</div>
<div class="shouji138_notice-body">
Spelling errors detected.<br />
Do you wish to correct them?
<br />
Click Yes to return,click No to continue submit.<br />
</div>
<div class="shouji138_notice_foot">
<a href="javascript:;" onclick="closedivspellcheckerror();">
<img src="googiespell/btn_yes.gif" style="border: 0px;" alt="yes" /></a> <a
href="javascript:ToDoNext();"><img src="googiespell/btn_no.gif" style="border: 0px;"
alt="no" /></a>
</div>
</div>
</div>
代理类:sendSpellReq.aspx.cs
这个类的作用就是发送请求到Google的接口:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Net;
using System.IO;
using System.Text;
namespace SpellCheck.googiespell
{
public partial class sendSpellReq : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Buffer = true;
|