|
swoosh -> RE: Default Value "null" for Dropdown (5/15/2008 10:48:59)
|
I have posted the page code for the results............the best part about this is learning.........I actually understand what you typed and what it is doing.........but the part of where is my problem. <asp:DataList runat="server" id="DataList1" DataKeyField="ID" DataSourceID="AccessDataSource2" Width="511px" Font-Size="Small">
<ItemTemplate>
<table style="width: 101%">
<tr>
<td style="width: 144px" valign="top" class="style7">
<asp:Image runat="server" id="Image1" ImageUrl='<%# Eval("Picture", "~/property_images/{0}") %>' Height="94px" Width="125px" class="style34" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
</td>
<td valign="top" class="style9" style="width: 170px">
<asp:Label Text='<%# Eval("Sale_Lease_Unknown") %>' runat="server" id="Sale_Lease_UnknownLabel" Font-Size="11pt" Font-Names="Arial" Font-Bold="True" ForeColor="#0058B0" />
<br>
<span class="style34">
<span class="style16">
<asp:Label Text='<%# Eval("Unit_Type") %>' runat="server" id="Unit_TypeLabel" Font-Size="11pt" Font-Names="Arial" Font-Bold="True" ForeColor="Black" />
</span></span><br>
<span class="style34">
<span class="style16">
<asp:Label Text='<%# Eval("Unit_SF") %>' runat="server" id="Unit_SFLabel" Font-Size="11pt" Font-Names="Arial" />
</span></span>Sq Ft</br>
</br></td>
<td valign="top" class="style35">
<asp:Label Text='<%# Eval("Address") %>' runat="server" id="AddressLabel" Font-Size="Small" Font-Names="Arial" Font-Bold="True" />
<br>
<span class="style17">
<asp:Label Text='<%# Eval("Town") %>' runat="server" id="TownLabel" Font-Size="Small" Font-Names="Arial" />
</span>
<span class="style36">,</span><span class="style17">
<asp:Label Text='<%# Eval("State") %>' runat="server" id="StateLabel" Font-Size="Small" Font-Names="Arial" />
<span class="style6">
<asp:Label Text='<%# Eval("Zip") %>' runat="server" id="ZipLabel" Font-Size="Small" Font-Names="Arial" />
</span></span></br></td>
</tr>
</table>
<span class="style10">_________________________________________________________________________</span><br>
</br>
</ItemTemplate>
</asp:DataList>
<asp:AccessDataSource runat="server" ID="AccessDataSource2" DataFile="fpdb/downtownproperties.mdb" SelectCommand="SELECT [ID], [Address], [Town], [State], [Zip], [Unit_SF], [Sale_Lease_Unknown], [Unit_Type], [Picture], [Architectural_Design] FROM [Properties] WHERE ([Town] = ?)">
<SelectParameters>
<asp:controlparameter ControlID="DropDownList1" PropertyName="SelectedValue" Name="Town" Type="String" />
</SelectParameters>
</asp:AccessDataSource>
|
|
|
|