I am trying to create a webpage where it can filter from a list of files. Basically if a user goes to this page, it will have a primary and secondary drop down box where then can select an option from the drop down box and it will display results so that
users can click on a link and download a file. Similar to how the dell drivers cd's are setup. For example if a user goes to the site, they can select drinks from the primary drop down box and Pepsi Products from the secondary drop down box and it will display
a list of the pepsi products. I'm rather new to this kind of stuff and I don't really know twhat the termonology for this would be. Could someone help me and point me in the right direction
I am a little confused about the invoking data part in the second step, as I am a little new to some of this. I've tried searching online regarding this step but haven't found anything relavant. Could you clarify that part.
Well I tried creating the object as it states, would I be able to use SQL? Basically, I want to be able to select the categories from the two drop down boxes and have a list of downloadable files filtered using the selections.
davjas
Member
1 Points
8 Posts
Webpage with drop down boxes for users to select filtering options
Apr 04, 2012 06:18 PM|LINK
I am trying to create a webpage where it can filter from a list of files. Basically if a user goes to this page, it will have a primary and secondary drop down box where then can select an option from the drop down box and it will display results so that users can click on a link and download a file. Similar to how the dell drivers cd's are setup. For example if a user goes to the site, they can select drinks from the primary drop down box and Pepsi Products from the secondary drop down box and it will display a list of the pepsi products. I'm rather new to this kind of stuff and I don't really know twhat the termonology for this would be. Could someone help me and point me in the right direction
Thanks!
jprochazka
Contributor
4876 Points
740 Posts
Re: Webpage with drop down boxes for users to select filtering options
Apr 04, 2012 06:23 PM|LINK
Check out this control in the AJAX Control Toolkit.
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/CascadingDropDown/CascadingDropDown.aspx
AZMatt
Star
10648 Points
1896 Posts
Re: Webpage with drop down boxes for users to select filtering options
Apr 04, 2012 06:25 PM|LINK
Here is a good tutorial on the subject...
http://www.asp.net/web-forms/tutorials/data-access/masterdetail/master-detail-filtering-with-two-dropdownlists-cs
Matt
mikeprince.a...
Member
278 Points
54 Posts
Re: Webpage with drop down boxes for users to select filtering options
Apr 04, 2012 06:29 PM|LINK
http://code.msdn.microsoft.com/Cascading-DropDownList-in-833683f9
http://www.codeproject.com/Articles/38231/Simple-Way-to-Implement-Country-State-City-Dropdow
davjas
Member
1 Points
8 Posts
Re: Webpage with drop down boxes for users to select filtering options
Apr 04, 2012 07:57 PM|LINK
I am a little confused about the invoking data part in the second step, as I am a little new to some of this. I've tried searching online regarding this step but haven't found anything relavant. Could you clarify that part.
Thanks!
davjas
Member
1 Points
8 Posts
Re: Webpage with drop down boxes for users to select filtering options
Apr 04, 2012 07:59 PM|LINK
The new data source should, naturally, be an ObjectDataSource. Name this new ObjectDataSource
and have it invoke the object's method. I am a little confused about the invoking data on this part.AZMatt
Star
10648 Points
1896 Posts
Re: Webpage with drop down boxes for users to select filtering options
Apr 04, 2012 08:05 PM|LINK
Which of the posted tutorials are you stuck on?
Matt
AZMatt
Star
10648 Points
1896 Posts
Re: Webpage with drop down boxes for users to select filtering options
Apr 04, 2012 08:07 PM|LINK
Sorry, didn't see your last post. There are some other tutorials that go over the BLL classes. What are you trying to use as a Data Source?
Matt
davjas
Member
1 Points
8 Posts
Re: Webpage with drop down boxes for users to select filtering options
Apr 04, 2012 08:15 PM|LINK
Well I tried creating the object as it states, would I be able to use SQL? Basically, I want to be able to select the categories from the two drop down boxes and have a list of downloadable files filtered using the selections.