parent category>>sub category

Posted by Kashif under ASP.NET on 7/19/2013 | Points: 10 | Views : 1794 | Status : [Member] | Replies : 2
Hello,
I m developing application of using VS-2005. In this
application i have a dropdownlist.
In dropdownlist i want to display categories, sub-categories,
sub-sub-categories upto any level
(for eg. country--state--district--city--village etc.)
The dropdownlist will look like
Arts
--camera
--photography
----General Photos
----Digital Photos
Company
--employee
----Jr. employee
----Sr.employee
--Manager
----HR manager
----General manager
here i shown categories upto 3 levels but, levels will be 4-5 or more
In database table i have two columns named categoryid(primary key of
categories table) & another one is
parentid(which stores value of main categoryid)
eg. in above dropdown items, categoryid for Arts category is 1 and
parentid
is 0. & parentid of Arts(i.e. 1)
is parentid of camera & photography & like this will continue

if anyone have solution for finding subsub-categories them reply me




Responses

Posted by: Phagu007 on: 7/19/2013 [Member] Starter | Points: 25

Up
0
Down
Use this given code for creating parent category>>sub category
<browsers>
<browser refID="Default">
<controlAdapters>
<adapter controlType="System.Web.UI.WebControls.Menu"
adapterType="CSSFriendly.MenuAdapter" />
</controlAdapters>
</browser>
<browser id="W3C_Validator" parentID="default">
<identification>
<userAgent match="^W3C_Validator" />
</identification>
<capabilities>
<capability name="Artsr" value="W3C Validator" />
<capability name="Company" value="1.2" />
<capability name="Maneger" value="true" />
</capabilities>
</browser>
</browsers>

Kashif, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raj.Trivedi on: 7/20/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hello Check if this article helps

http://www.dotnetfunda.com/articles/article2295-cascading-drop-downlist-in-aspnet.aspx

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved

Kashif, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response