|
|
|

|

|
Dicas
|

|
ASP - Active Server Page (Miscelâneas)
|
|
 |
Título da Dica: Obter dados do browser com C# - ASP.NET
|
 |
|
|
Postada em 23/1/2004 por ^HEAVY-METAL^
Resumo: Mais uam forma de obtermos dados do browser do cliente, desta com C#, que é uam das linguages da Framework .NET, e funciona nas páginas .aspx.
Código:
<%@ Page Language="C#" %> <html> <body> <table width="90%" border="0" align="center" cellpadding="2" cellspacing="2"> <tr> <td>Propriedade</td> <td>Valor</td> </tr> <tr> <td>ActiveXControls </td> <td> <%= Request.Browser.ActiveXControls %></td> </tr> <tr> <td>AOL </td> <td> <%= Request.Browser.AOL %></td> </tr> <tr> <td>BackgroundSounds </td> <td> <%= Request.Browser.BackgroundSounds %></td> </tr> <tr> <td>Beta </td> <td> <%= Request.Browser.Beta %></td> </tr> <tr> <td>Browser </td> <td> <%= Request.Browser.Browser %></td> </tr> <tr> <td>CDF </td> <td> <%= Request.Browser.CDF %></td> </tr> <tr> <td>ClrVersion </td> <td> <%= Request.Browser.ClrVersion %></td> </tr> <tr> <td>Cookies </td> <td> <%= Request.Browser.Cookies %></td> </tr> <tr> <td>Crawler </td> <td> <%= Request.Browser.Crawler %></td> </tr> <tr> <td>EcmaScriptVersion </td> <td> <%= Request.Browser.EcmaScriptVersion %></td> </tr> <tr> <td>Frames </td> <td> <%= Request.Browser.Frames %></td> </tr> <tr> <td>JavaApplets </td> <td> <%= Request.Browser.JavaApplets %></td> </tr> <tr> <td>JavaScript </td> <td> <%= Request.Browser.JavaScript %></td> </tr> <tr> <td>MajorVersion </td> <td> <%= Request.Browser.MajorVersion %></td> </tr> <tr> <td>MinorVersion </td> <td> <%= Request.Browser.MinorVersion %></td> </tr> <tr> <td>MSDomVersion </td> <td> <%= Request.Browser.MSDomVersion %></td> </tr> <tr> <td>Platform </td> <td> <%= Request.Browser.Platform %></td> </tr> <tr> <td>Tables </td> <td> <%= Request.Browser.Tables %></td> </tr> <tr> <td>Type </td> <td> <%= Request.Browser.Type %></td> </tr> <tr> <td>VBScript </td> <td> <%= Request.Browser.VBScript %></td> </tr> <tr> <td>Version </td> <td> <%= Request.Browser.Version %></td> </tr> <tr> <td>W3CDomVersion </td> <td> <%= Request.Browser.W3CDomVersion %></td> </tr> <tr> <td>Win16 </td> <td> <%= Request.Browser.Win16 %></td> </tr> <tr> <td>Win32 </td> <td> <%= Request.Browser.Win32 %></td> </tr> </table> </body> </html>
T+,
|
|
|
|

|