Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim Fctl,Ptl as Control
Dim ValStr,NamStr As String
Dim ix As Integer
For each Fctl in form1.Controls
If Fctl.GetType() Is GetType(Panel) Then
If Ctype(Fctl,Panel).Visible = True Then
For Each Ptl in Ctype(Fctl,Panel).Controls
If Ptl.GetType() Is GetType(ListBox) Then
NamStr = NamStr & CType(Ptl, ListBox).ID & ","
For ix = 0 To CType(Ptl, ListBox).Items.Count - 1
If CType(Ptl, ListBox).Items(ix).Selected Then
ValStr = ValStr & CType(Ptl, ListBox).Items(ix).Value & ","
VPrmpt = VPrmpt & CType(Ptl, ListBox).Items(ix).Value & ","
End If
Next ' ix
If Session("Viewer") = "Actx" Then
VPrmpt = Left(VPrmpt,Len(VPrmpt) - 1)
Prmpts = CwrPrefix & CType(Ptl, ListBox).ID & "=" & VPrmpt
FullStr = FullStr & Prmpts
End If
VPrmpt=""
ValStr = Left(ValStr,Len(ValStr) - 1) & ";"
'End If ' Finished with testing Type of Control in Panel
ElseIf Ptl.GetType() Is GetType(TextBox) Then
NamStr = NamStr & CType(Ptl, TextBox).ID & ","
ValStr = ValStr & CType(Ptl, TextBox).Text & ";"
VPrmpt = VPrmpt & CType(Ptl, TextBox).Text & ";"
If Session("Viewer") = "Actx" Then
VPrmpt = Left(VPrmpt,Len(VPrmpt) - 1)
Prmpts = CwrPrefix & CType(Ptl, TextBox).ID & "=" & VPrmpt
FullStr = FullStr & Prmpts
End If
VPrmpt=""
End If
Next ' Ptl inPanel Control
End If
End If
Next
<form id="form1" runat="server">
<td>
<button id="Button1"
OnServerClick="ShowChoice"
runat="server">
Run Report
</button></td>
</form>
<% If x > 10 Then %>
<img src="big.gif">
<% else %>
<img src="small.gif">
<% end if %>
<script runat="server">
If x > 10 Then
foo.Src = "big.gif"
Else
foo.Src = "small.gif"
End If
</script>
<img id="foo" runat="server" />