Allows for multilingual entries into a DB and to be displayed on IIS. The interface is not multi but could be pulled from the DB if you knew what language they wanted before hand….only a proof of concept…
This article includes two files.
[bold]Test.asp[/bold]<%@ CodePage=65001 Language="VBScript"%> [code] <% Response.CharSet = "utf-8" Set Conn_test = Server.CreateObject("ADODB.Connection") Conn_test.Open "Provider=SQLOLEDB;SERVER=AUSADSNTSTDB1;UID=;PWD=;Database=Test" Set rstest = Conn_test.Execute("select * from test") Do While NOT rstest.EOF response.write "ID:" & rstest("TestID") & "
” response.write “Data:” & rstest(“data”) & “
” rstest.MoveNext Loop Set Conn_test = nothing %> [/code] [bold]TestProcess.asp[/bold] [code]<%@ CodePage=65001 Language="VBScript"%> You gave this… <% Response.CharSet = "utf-8" Response.Write Request.Form("Data") Set Conn_test = Server.CreateObject("ADODB.Connection") Conn_test.Open "Provider=SQLOLEDB;SERVER=AUSADSNTSTDB1;UID=;PWD=;Database=Test" Set rstest = Conn_test.Execute("INSERT Test Values(N'" & Request.Form("Data") & "')") Set rsTest = nothing Set Conn_test = nothing %> [/code]
[bold]Test.asp[/bold]<%@ CodePage=65001 Language="VBScript"%> [code] <% Response.CharSet = "utf-8" Set Conn_test = Server.CreateObject("ADODB.Connection") Conn_test.Open "Provider=SQLOLEDB;SERVER=AUSADSNTSTDB1;UID=;PWD=;Database=Test" Set rstest = Conn_test.Execute("select * from test") Do While NOT rstest.EOF response.write "ID:" & rstest("TestID") & "
” response.write “Data:” & rstest(“data”) & “
” rstest.MoveNext Loop Set Conn_test = nothing %> [/code] [bold]TestProcess.asp[/bold] [code]<%@ CodePage=65001 Language="VBScript"%> You gave this… <% Response.CharSet = "utf-8" Response.Write Request.Form("Data") Set Conn_test = Server.CreateObject("ADODB.Connection") Conn_test.Open "Provider=SQLOLEDB;SERVER=AUSADSNTSTDB1;UID=;PWD=;Database=Test" Set rstest = Conn_test.Execute("INSERT Test Values(N'" & Request.Form("Data") & "')") Set rsTest = nothing Set Conn_test = nothing %> [/code]
The post Multilingual entries into a DB and to be displayed on IIS appeared first on ASP Free.