Multilingual entries into a DB and to be displayed on IIS

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.

Contributed by
Rating: 4 stars4 stars4 stars4 stars4 stars / 11
June 17, 2003
Rate this Article:
MEH MEH++


SEARCH ASP FREE
TOOLS YOU CAN USE

advertisement
[bold]Test.asp[/bold]<%@ CodePage=65001 Language="VBScript"%>


<HTML>
<
BODY>

<%
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
%>

<
form name="frmSvcTag" method=post action="testprocess.asp">

<
INPUT type="text" title='Enter the string to be placed in the DB' name=Data>
<
INPUT type="submit" value="Go" name="submit">

</
form>


</
BODY>
</
HTML>

[bold]TestProcess.asp[/bold]

<%@ 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

%>

<
form name="frmSvcTag" method=post action="test.asp">
<
INPUT type="submit" value="See From DB?" name="submit">
</
form>

blog comments powered by Disqus
DATABASE CODE ARTICLES

- Deployment of the MobiLink Synchronization M...
- MobiLink Synchronization Wizard in SQL Anywh...
- Finding Matching Records in Data Access Pages
- Using the AccessDataSource Control in VS 2005
- A Closer Look at ADO.NET: The Command Object
- A Closer Look at ADO.NET: The Connection Obj...
- Using ADO to Communicate with the Database, ...
- Code Snippets: Counting Records
- Constraints In Microsoft SQL Server 2000
- Multilingual entries into a DB and to be dis...
- Two combos, one textbox example
- ADO Recordset Paging
- SQL Server Database Creator - .NET Version
- Getting A List of Tables From SQL Server
- Discussion & Listserv Module by Mike Eck...

ASP Web Hosting ASP.Net Web Hosting Windows Web Hosting
 
 
 

ASP Free Forums 
 RSS  Tutorials RSS
 RSS  Forums RSS
 RSS  All Feeds
Site Map 
Request Media Kit
Write For Us Get Paid 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Privacy Policy 
Support 


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap
Most Popular Topics
All ASP.Net Tutorials