Example #1
0
        private string BuildWebPage(WebBrowser wBrowser, string controlName, string someText)
        {
            string tmpName = string.Format("{0}{1}.html", rconfig.tempPath, controlName);

            using (StreamWriter sw = new StreamWriter(tmpName))
            {
                sw.WriteLine(r2html.convert(someText));
            }
            return(tmpName);
        }
Example #2
0
        private string BuildWebPage(WebBrowser wBrowser, string controlName, string cmds, string someText, dynamic json_obj)
        {
            string tmpName = null;

            tmpName = string.Format("{0}_{1}.html", controlName, cmds);
            tmpName = (new Regex(@"([\\\/>\~])")).Replace(tmpName, "");
            tmpName = tmpName.Replace("?", "[question]");
            tmpName = rconfig.tempPath + Path.GetFileName(tmpName);
            using (StreamWriter sw = new StreamWriter(tmpName))
            {
                sw.WriteLine(r2html.convert(cmds, someText, json_obj));
            }
            return(tmpName);
        }