ASP.Net/Request/Request AcceptTypes — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:53, 26 мая 2010
Request AcceptTypes Demo (VB.net)
<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
Dim I As Integer
lblMessage1.Text = "<Table>"
For I = 0 To Request.AcceptTypes.GetUpperBound(0)
lblMessage1.Text = lblMessage1.Text _
& "<TR><TD><B>Type Accepted:</B></TD><TD>" _
& Request.AcceptTypes(I) _
& "</TD></TR>"
Next
lblMessage1.Text = lblMessage1.Text & "</Table>"
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>AcceptTypes Sample Page</TITLE>
</HEAD>
<BODY >
<form runat="server">
<Font Face="Tahoma">
<asp:Label
id="lblMessage1"
runat="Server"
Font-Bold="True"
/>
</Font>
</Form>
</BODY>
</HTML>