Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: More TIPS!


Message #1 by "Fredrik Normen" <fredrik.normen@s...> on Tue, 22 Aug 2000 10:20:4
Do you want to know what Language the client are using ?

With the CultureInfo class you can find many usefull information about the 

Client and server culture.



This code will display the Client's language



<%@ Page Language="Vb" %>

<%@ Import namespace="System.Globalization" %>

<SCRIPT LANGUAGE="Vb" RUNAT="Server">



	Sub Page_Load( Source As Object, E As EventArgs )

		Response.Write("Client Culture: <B>" & 

CultureInfo.CurrentUICulture.TwoLetterISOLanguageName() & "</B><BR>")

	end sub

</SCRIPT>



Some more information about AD0+



ADO+ does not require data type conversions, this will increase 

performance.

ADO, requires COM marshalling to transmit records sets among components,

does require that ADO data types be converted to COM data types.



Because components exchange ADO+ data sets using XML,

firewalls can allow data sets to pass.



Some usefull thing about DataReader:

DataReader is a read-only, forward-only steam returned from the database. 

Only one record at a time is ever in memory.



/Fredrik Normen


  Return to Index