Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 16, 2012, 05:31:00 PM

Pages: [1]   Go Down
  Print  
Author Topic: Expression Web - Create DropDownList using hyperlinks from Access Database  (Read 1236 times)
skyhunter27
Newbie
*
Offline Offline

Posts: 1


« on: October 06, 2008, 12:41:40 PM »

Using links from an Access database to create a dropdownlist that will redirect to another page when an item is selected.  Just can't get it to work right.

Code:
<asp:DropDownList runat="server" id="DropDownList1" DataTextField="County" DataSourceID="AccessDataSource1" DataValueField="RegionLink" AutoPostBack="True" BackColor="#CCCCFF"></asp:DropDownList>

<asp:AccessDataSource runat="server" ID="AccessDataSource1" DataFile="dBase/MPACT.mdb" SelectCommand="SELECT County, &quot;http://ptimpact.org/Training/&quot; &amp; AssignedRegion &amp; &quot;.aspx&quot; AS RegionLink
FROM Counties">
</asp:AccessDataSource>
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: