HomeHome Product Discus... Product Discus...Business Direct...Business Direct...How do I utilize the category function?How do I utilize the category function?
Previous
 
Next
New Post
9/9/2010 8:46 PM
 

In the ascx files, I have switched the category function to visible="true" in the "Signup.ascx"

I've noticed on the "Edit Form Fields" it allows me to add categories.

I want to utilize the categories in the "DirectorySearch" module...

Right now it is set to default at CategoryID=0 and I don't know how to set this up to where this changes according to the option selected.

I can't put the entire code on here.. it's trying to display it.

Here are the imporant parts:

<td>Select Category:</td><td><asp:DropDownList ID="txtSearchCategory" runat="server" DataTextField="CategoryName" DataValueField="CategoryID" visible="true">
<asp:ListItem>Accessories</asp:ListItem>
<asp:ListItem>Alterations/Tailoring</asp:ListItem>
<asp:ListItem>Banquet Halls/Facilities</asp:ListItem>
<asp:ListItem>Bed & Breakfast</asp:ListItem>
<asp:ListItem>Boutiques</asp:ListItem>
<asp:ListItem>Cabins/Cottages/Lodges</asp:ListItem>
<asp:ListItem>Cake</asp:ListItem>
<asp:ListItem>Casinos</asp:ListItem>
<asp:ListItem>Catering</asp:ListItem>
<asp:ListItem>Churches</asp:ListItem>
<asp:ListItem>Cleaners & Dress Preservation</asp:ListItem>
<asp:ListItem>Dance Instruction</asp:ListItem>
<asp:ListItem>Day Spas</asp:ListItem>
<asp:ListItem>Disk Jockeys</asp:ListItem>
<asp:ListItem>Electrolosis/Epilitory Service</asp:ListItem>
<asp:ListItem>Elopement</asp:ListItem>
<asp:ListItem>Facial Salons</asp:ListItem>
<asp:ListItem>Favors & Amenities</asp:ListItem>
<asp:ListItem>Fireworks</asp:ListItem>
<asp:ListItem>Flowers/Florists</asp:ListItem>
<asp:ListItem>Formal Wear</asp:ListItem>
<asp:ListItem>Gift Registries</asp:ListItem>
<asp:ListItem>Hair Stylists</asp:ListItem>
<asp:ListItem>Hotels & Accommodations</asp:ListItem>
<asp:ListItem>Invitations</asp:ListItem>
<asp:ListItem>Lighting & Decor</asp:ListItem>
<asp:ListItem>Lingerie</asp:ListItem>
<asp:ListItem>Make-up</asp:ListItem>
<asp:ListItem>Mosques</asp:ListItem>
<asp:ListItem>Nail Salons</asp:ListItem>
<asp:ListItem>Photography & Videography</asp:ListItem>
<asp:ListItem>Rehearsal Dinner</asp:ListItem>
<asp:ListItem>Rentals & Supplies</asp:ListItem>
<asp:ListItem>Resorts</asp:ListItem>
<asp:ListItem>Rings & Jewelry</asp:ListItem>
<asp:ListItem>Shoes</asp:ListItem>
<asp:ListItem>Synagogues</asp:ListItem>
<asp:ListItem>Tanning Salons</asp:ListItem>
<asp:ListItem>Transportation</asp:ListItem>
<asp:ListItem>Travel Agencies/Honeymoons</asp:ListItem>
<asp:ListItem>Valet Parking Service</asp:ListItem>
<asp:ListItem>Wedding Chapels</asp:ListItem>
<asp:ListItem>Wedding Consultants</asp:ListItem>
<asp:ListItem>Weight Loss/Fitness</asp:ListItem></asp:DropDownList></td>

... And then later in the code:

<asp:ObjectDataSource runat="server" ID="FreeSearchList"
TypeName="Smith.DirectoryListingController" SelectMethod="SearchDirectory"
EnablePaging="true" OnSelecting="DataSource_Selecting" SelectCountMethod="SearchDirectoryRowCount">
<SelectParameters>
<asp:Parameter Name="categoryID" DbType="Int32" DefaultValue="0" />
<asp:Parameter Name="listingTypeID" DbType="Int32" DefaultValue="1" />

<asp:ControlParameter ControlID="txtSearchCountry" Name="country" DbType="String" DefaultValue="" />
<asp:ControlParameter ControlID="txtSearchKeyword" Name="listingName" DbType="String" DefaultValue="" />
<asp:ControlParameter ControlID="txtSearchState" Name="state" DbType="String" DefaultValue="" />
<asp:ControlParameter ControlID="txtSearchCity" Name="city" DbType="String" DefaultValue="" />
<asp:ControlParameter ControlID="txtZip" Name="zip" DbType="String" DefaultValue="" />
<asp:Parameter Name="username" DbType="String" DefaultValue="" />
<asp:Parameter Name="TabId" DbType="String" DefaultValue="-1" />
</SelectParameters>
</asp:ObjectDataSource>

 
New Post
9/9/2010 10:04 PM
 

OOpps... I need to get back to this post..


 
New Post
9/9/2010 10:30 PM
Accepted Answer 

I just emailed you a new dll that will allow you to pass the categoryid in the url like we talked about today.


Here is an example of the link passing the categoryid in the querystring:


http://localhost:64043/BizDirectory/DirectorySearch/tabid/56/Default.aspx?CategoryID=5


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
9/9/2010 11:11 PM
 

This works perfectly.

Thank you.

 
Previous
 
Next
HomeHome Product Discus... Product Discus...Business Direct...Business Direct...How do I utilize the category function?How do I utilize the category function?