亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? spellcheck.aspx

?? 一個論文管理系統(tǒng)
?? ASPX
?? 第 1 頁 / 共 2 頁
字號:
<%@ Page Language="C#" ClassName="PopUpSpell" ValidateRequest="False" %>
<%@ import Namespace="System.IO" %>
<%@ import Namespace="NetSpell.SpellChecker" %>
<%@ import Namespace="NetSpell.SpellChecker.Dictionary" %>
<script runat="server">

    NetSpell.SpellChecker.Spelling SpellChecker;
    NetSpell.SpellChecker.Dictionary.WordDictionary WordDictionary;
    
    string culture = "en-US";
   
    void Page_Load(object sender, EventArgs e)
    {
         // if modal frame, quit
         if (this.ModalFrame.Visible)
             return;

         // add client side events
         this.Suggestions.Attributes.Add("onChange", "javascript: changeWord(this);");
         this.SpellingBody.Attributes.Add("onLoad", "javascript: initialize();");

         // load spell checker settings
         this.LoadValues();
         switch (this.SpellMode.Value)
         {
             case "start" :
                 this.EnableButtons();
                 this.SpellChecker.SpellCheck();
                 break;

             case "suggest" :
                 this.EnableButtons();
                 break;

             case "load" :
             case "end" :
             default :
                 this.DisableButtons();
                 break;
         }
    }

    void Page_Init(object sender, EventArgs e)
    {
         // show iframe for modal support
         if (Request.Params["Modal"] != null)
         {
             this.ModalFrame.Visible = true;
             this.SuggestionForm.Visible = false;
             return;
         }         
                  
         if (Request.Params["Culture"] != null)
		 {
			culture = Request.Params["Culture"];
		 }

         // get dictionary from cache
         this.WordDictionary = (WordDictionary)HttpContext.Current.Cache["WordDictionary-" + culture];
         if (this.WordDictionary == null)
         {
             // if not in cache, create new
             this.WordDictionary = new NetSpell.SpellChecker.Dictionary.WordDictionary();
             this.WordDictionary.EnableUserFile = false;

             //getting folder for dictionaries
             string folderName="";
             
             if(ConfigurationSettings.AppSettings["DictionaryFolder"]== null)
				folderName = this.MapPath("~/bin");
			 else
			 {
				folderName = ConfigurationSettings.AppSettings["DictionaryFolder"];
				folderName = this.MapPath(Path.Combine(Request.ApplicationPath, folderName));
			 }
             
             this.WordDictionary.DictionaryFolder = folderName;
             
             // check if a dictionary exists for the culture, if so load it
             string cultureDictionary = String.Concat (culture, ".dic");
			 if (File.Exists (folderName +"\\"+ cultureDictionary))
			 {    
				this.WordDictionary.DictionaryFile = cultureDictionary;
			 }
				
             //load and initialize the dictionary
             this.WordDictionary.Initialize();
             
             // Store the Dictionary in cache
             HttpContext.Current.Cache.Insert("WordDictionary-" + culture, this.WordDictionary, new CacheDependency(Path.Combine(folderName, this.WordDictionary.DictionaryFile)));
         }

         // create spell checker
         this.SpellChecker = new NetSpell.SpellChecker.Spelling();
         this.SpellChecker.ShowDialog = false;
         this.SpellChecker.Dictionary = this.WordDictionary;

         // adding events
         this.SpellChecker.MisspelledWord += new NetSpell.SpellChecker.Spelling.MisspelledWordEventHandler(this.SpellChecker_MisspelledWord);
         this.SpellChecker.EndOfText += new NetSpell.SpellChecker.Spelling.EndOfTextEventHandler(this.SpellChecker_EndOfText);
         this.SpellChecker.DoubledWord += new NetSpell.SpellChecker.Spelling.DoubledWordEventHandler(this.SpellChecker_DoubledWord);
    }

    void SpellChecker_DoubledWord(object sender, NetSpell.SpellChecker.SpellingEventArgs e)
    {
         this.SaveValues();
         this.CurrentWord.Text = this.SpellChecker.CurrentWord;
         this.Suggestions.Items.Clear();
         this.ReplacementWord.Text = string.Empty;
         this.SpellMode.Value = "suggest";
         this.StatusText.Text = string.Format("Word: {0} of {1}", this.SpellChecker.WordIndex + 1, this.SpellChecker.WordCount);
    }

    void SpellChecker_EndOfText(object sender, System.EventArgs e)
    {
         this.SaveValues();
         this.SpellMode.Value = "end";
         this.DisableButtons();
         this.StatusText.Text = string.Format("Word: {0} of {1}", this.SpellChecker.WordIndex + 1, this.SpellChecker.WordCount);
    }

    void SpellChecker_MisspelledWord(object sender, NetSpell.SpellChecker.SpellingEventArgs e)
    {
         this.SaveValues();
         this.CurrentWord.Text = this.SpellChecker.CurrentWord;
         this.SpellChecker.Suggest();
         this.Suggestions.DataSource = this.SpellChecker.Suggestions;
         this.Suggestions.DataBind();
         this.ReplacementWord.Text = string.Empty;
         this.SpellMode.Value = "suggest";
         this.StatusText.Text = string.Format("Word: {0} of {1}", this.SpellChecker.WordIndex + 1, this.SpellChecker.WordCount);
    }

    void EnableButtons()
    {
         this.IgnoreButton.Enabled = true;
         this.IgnoreAllButton.Enabled = true;
         this.AddButton.Enabled = true;
         this.ReplaceButton.Enabled = true;
         this.ReplaceAllButton.Enabled = true;
         this.ReplacementWord.Enabled = true;
         this.Suggestions.Enabled = true;
    }

    void DisableButtons()
    {
         this.IgnoreButton.Enabled = false;
         this.IgnoreAllButton.Enabled = false;
         this.AddButton.Enabled = false;
         this.ReplaceButton.Enabled = false;
         this.ReplaceAllButton.Enabled = false;
         this.ReplacementWord.Enabled = false;
         this.Suggestions.Enabled = false;
    }

    void SaveValues()
    {
         this.CurrentText.Value = this.SpellChecker.Text;
         this.WordIndex.Value = this.SpellChecker.WordIndex.ToString();

         // save ignore words
         string[] ignore = (string[])this.SpellChecker.IgnoreList.ToArray(typeof(string));

         this.IgnoreList.Value = String.Join("|", ignore);

         // save replace words
         ArrayList tempArray = new ArrayList(this.SpellChecker.ReplaceList.Keys);
         string[] replaceKey = (string[])tempArray.ToArray(typeof(string));

         this.ReplaceKeyList.Value = String.Join("|", replaceKey);
         tempArray = new ArrayList(this.SpellChecker.ReplaceList.Values);

         string[] replaceValue = (string[])tempArray.ToArray(typeof(string));

         this.ReplaceValueList.Value = String.Join("|", replaceValue);

         // saving user words
         tempArray = new ArrayList(this.SpellChecker.Dictionary.UserWords.Keys);

         string[] userWords = (string[])tempArray.ToArray(typeof(string));

         Response.Cookies["UserWords"].Value = String.Join("|", userWords);;
         Response.Cookies["UserWords"].Path = "/";
         Response.Cookies["UserWords"].Expires = DateTime.Now.AddMonths(1);
    }

    void LoadValues()
    {
         if (this.CurrentText.Value.Length > 0)
             this.SpellChecker.Text = this.CurrentText.Value;

         if (this.WordIndex.Value.Length > 0)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕二三区不卡| 99久久久国产精品| 宅男噜噜噜66一区二区66| 亚洲精品乱码久久久久久黑人| av午夜精品一区二区三区| 中文字幕精品一区二区精品绿巨人| 国产成a人亚洲| 国产精品久久久久久久久动漫 | 丁香啪啪综合成人亚洲小说 | 中文字幕制服丝袜成人av| 成人免费视频免费观看| 一色桃子久久精品亚洲| 99精品久久只有精品| 洋洋成人永久网站入口| 欧美日韩国产天堂| 麻豆一区二区三区| 久久久777精品电影网影网| 成人aa视频在线观看| 亚洲日本一区二区三区| 91久久精品国产91性色tv| 五月婷婷另类国产| 日韩亚洲电影在线| 国产一区二区三区在线观看免费视频 | 一区二区三区在线视频免费观看| 欧美三区在线视频| 久久97超碰国产精品超碰| 欧美极品xxx| 欧美三级日韩在线| 狠狠网亚洲精品| 久久国产精品第一页| 国产精品久久精品日日| 欧美久久久久久久久久| 国产乱一区二区| 亚洲一区二区综合| 欧美精品一区二区三| 色先锋久久av资源部| 精品一区二区久久| 一区二区三国产精华液| 2020国产精品自拍| 欧美色区777第一页| 国产精品99久久久久久久女警 | youjizz国产精品| 三级欧美韩日大片在线看| 国产欧美精品一区| 91精品国产一区二区三区蜜臀 | 一区二区三区在线免费| 日韩精品综合一本久道在线视频| 97se亚洲国产综合自在线观| 狂野欧美性猛交blacked| |精品福利一区二区三区| 欧美电影精品一区二区| 在线观看www91| 懂色av中文字幕一区二区三区| 天天综合天天综合色| 国产精品久线观看视频| 精品国产乱码久久久久久牛牛| 欧美三级视频在线| 97精品国产97久久久久久久久久久久| 麻豆久久久久久| 亚洲成人av电影| 亚洲男人的天堂一区二区| 国产三级三级三级精品8ⅰ区| 日韩精品资源二区在线| 欧美日韩国产一级| 在线精品观看国产| 91免费视频观看| 国产成人av福利| 国产一区二区精品久久91| 日本中文在线一区| 99视频精品免费视频| 国产酒店精品激情| 久久精品国产网站| 免费在线成人网| 日韩av电影免费观看高清完整版 | 日韩av电影免费观看高清完整版 | 4438x亚洲最大成人网| 色噜噜狠狠成人网p站| av在线播放不卡| www.欧美日韩国产在线| 国产宾馆实践打屁股91| 国产精品影音先锋| 国产激情视频一区二区在线观看 | 国产盗摄一区二区| 精品日产卡一卡二卡麻豆| 欧美精品少妇一区二区三区| 欧美日韩国产精品成人| 欧美日韩国产欧美日美国产精品| 欧美日韩国产小视频在线观看| 欧美日韩精品一区二区三区| 欧美日韩1234| 日韩免费一区二区三区在线播放| 日韩女同互慰一区二区| 久久久久97国产精华液好用吗| 久久久久久免费网| 国产精品久久网站| 亚洲激情在线播放| 丝袜亚洲精品中文字幕一区| 奇米色一区二区| 国精产品一区一区三区mba视频| 国产精华液一区二区三区| 成人av动漫网站| 欧美色精品天天在线观看视频| 91精品国产综合久久久久久久| 精品奇米国产一区二区三区| 久久精品一区二区三区不卡 | 99久久99久久久精品齐齐| 99精品偷自拍| 欧美日韩三级在线| 精品久久五月天| 国产精品国产三级国产普通话蜜臀| 亚洲综合在线免费观看| 偷拍日韩校园综合在线| 国内外成人在线| 91网址在线看| 69av一区二区三区| 国产日韩三级在线| 一区二区三区美女| 久久99深爱久久99精品| heyzo一本久久综合| 欧美电影一区二区三区| 精品对白一区国产伦| |精品福利一区二区三区| 日韩高清不卡在线| 不卡视频在线看| 日韩一区二区三区电影在线观看 | 另类专区欧美蜜桃臀第一页| 成人一区二区三区中文字幕| 欧美日韩精品欧美日韩精品一| 国产亚洲成av人在线观看导航| 亚洲一区在线视频| 国产成人综合在线| 欧美一区二区三区系列电影| ●精品国产综合乱码久久久久| 美女国产一区二区| 在线免费亚洲电影| 中文字幕乱码一区二区免费| 人人超碰91尤物精品国产| 床上的激情91.| 欧美哺乳videos| 亚洲午夜久久久久久久久电影网 | 美女国产一区二区| 一本大道久久精品懂色aⅴ| 精品国产伦一区二区三区观看方式 | 亚洲伦在线观看| 国产成人亚洲综合a∨婷婷图片| 欧美日韩免费在线视频| 亚洲天堂久久久久久久| 国产精品一区二区三区网站| 7777精品伊人久久久大香线蕉超级流畅 | 亚洲欧洲av一区二区三区久久| 久久成人羞羞网站| 欧美日韩国产影片| 一区二区三区中文免费| 成人网在线免费视频| 日韩精品一区二区三区中文精品| 亚洲国产综合91精品麻豆| 99久久精品情趣| 国产精品毛片久久久久久| 国产在线观看一区二区| 欧美一区二区福利视频| 午夜成人免费视频| 欧美三级日本三级少妇99| 一区二区三区在线观看动漫| 99天天综合性| 日韩美女久久久| 99re热这里只有精品视频| 国产精品乱码妇女bbbb| 成人免费观看视频| 国产精品久久网站| 日韩一区二区三区电影 | 一区二区在线观看视频在线观看| 高清国产午夜精品久久久久久| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 中文字幕在线观看一区| 成人免费观看av| 亚洲欧洲精品一区二区三区不卡| 成人av资源下载| 亚洲黄色性网站| 欧美日韩一区二区欧美激情| 五月综合激情婷婷六月色窝| 91精品婷婷国产综合久久竹菊| 免费精品视频在线| 欧美精品一区二区精品网| 国产精品69毛片高清亚洲| 中文字幕乱码久久午夜不卡| 97国产一区二区| 午夜av一区二区三区| 日韩一区二区在线看片| 久久99精品国产麻豆不卡| 26uuu亚洲综合色欧美| 成人性生交大片免费看在线播放| 中文字幕一区二区三区在线观看| 91麻豆国产福利在线观看| 一区二区三区在线免费播放| 欧美久久久久久蜜桃| 久久国产免费看| 中文字幕亚洲欧美在线不卡| 91久久久免费一区二区| 另类小说综合欧美亚洲| 日本一区免费视频|