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.
Private Sub dlTest_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles dlTest.ItemDataBound
Dim _group As String
If Not IsDBNull(DataBinder.Eval(e.Item.DataItem, "mGroup")) Then
_group = DataBinder.Eval(e.Item.DataItem, "mGroup")
Else : _group = "No Group"
End If
Dim newDDL As System.Web.UI.WebControls.DropDownList
newDDL = e.Item.FindControl("ddlGroups")
newDDL.DataSource = Me.DsImgConn1
newDDL.DataMember = "Groupings"
newDDL.DataTextField = "GroupName"
newDDL.DataValueField = "GroupName"
newDDL.DataBind()
newDDL.Items.Insert(0, "No Group")
Dim _item As ListItem
For Each _item In newDDL.Items
If _item.Text = _group Then _item.Selected = True
Next
End Sub
<asp:datalist CellPadding="10" id=dlTest DataMember="Photos" DataSource="<%# DsImgConn1 %>" Runat="server" BorderColor="black" BorderWidth="0" CellSpacing="0" HorizontalAlign="Center" RepeatDirection="Horizontal" RepeatColumns="3">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Top"></ItemStyle>
<ItemTemplate>
<TABLE>
<TR>
<TD vAlign="top"><IMG id=repImg2 src='<%# givePath(Container.DataItem("ImageName")) %>'>
</TD>
<TD vAlign="top"><FONT face="Arial" size="-2">PHOTO ID #:
<asp:Label id="repLbl">
<%# Container.DataItem("ImageName") %>
</asp:Label><BR>
<HR>
<asp:CheckBox id=cbHide runat="server" Text="Hide" Checked='<%# DataBinder.Eval(Container, "DataItem.Hide") %>'>
</asp:CheckBox><BR>
SORT ORDER<BR>
<asp:TextBox id=TextBox1 runat="server" Text='<%# Container.DataItem("mSort") %>' Width="46px">
</asp:TextBox><BR>
GROUP<BR>
<asp:DropDownList id="ddlGroups" runat="server"></asp:DropDownList></FONT></TD>
</TR>
</TABLE>
</ItemTemplate>
</asp:datalist>