Ho scaricato Xstandar lite.
La pagina asp per visualizzare l'editor è la seguente
codice:
<script type="text/javascript">
		//<![CDATA[
			function myOnSubmitEventHandler() {
				try {
					if(typeof(document.getElementById('editor1').EscapeUNICODE) == 'undefined') {
						throw "Error"
					} else {
						document.getElementById('editor1').EscapeUNICODE = true;
						document.getElementById('xhtml1').value = document.getElementById('editor1').value;
					}			
				}
				catch(er) {
					document.getElementById('xhtml1').value = document.getElementById('alternate1').value;
				}
			}
		//]]>
		</script>
	<body>	
		<h1>XStandard XHTML 1.1 Editor</h1>
		

This page will post the data from the editor to itself (this page) and load the received data into the editor.  When the page reloads after you click the Submit button, the data in the editor should look exactly the same as before you clicked the Submit button.</p>
<table width="600px">
		<form action="xstandard.asp" method="post" onsubmit="myOnSubmitEventHandler()">
			


				<object classid="clsid:0EED7206-1661-11D7-84A3-00606744831D" id="editor1" width="100%" height="400">
					<param name="Value" value="<%=Server.HTMLEncode(Request.Form("xhtml1").Item)%>" />
					<textarea name="alternate1" id="alternate1" cols="60" rows="15"><%=Server.HTMLEncode(Request.Form("xhtml1").Item)%></textarea>
				</object>
			</p>
			

		
				<input type="hidden" name="xhtml1" id="xhtml1" value="" /> 
				<input type="submit" id="btnAction" name="btnAction" value="Submit" />
			</p>
		</form></table>
	</body>
Ho poi fatto in questo modo per salvare il testo in un db
codice:
RecSet.AddNew
	RecSet("alternative1") = Server.HTMLEncode(Request.Form("xhtml1").Item)
Come devo fare per far stampare il codice corretto?
E soprattutto sto salvando i dati giusti nel db?