Forms Data Controls :: Listing / Categories That It Is Added Infinite Category,subcategory?

Sep 2, 2010

i have a problem about listing. i have categories that it is added infinite category,subcategory. Table is like that:

id
ustid
kategori
seviye

i want listing like this:

For example when i click "Arac", the list will become like following:
Araç (category)
Otomobil (subcategory)
Motorsiklet (subcategory)

Then .when i click "Otomobil"
Araç
Otomobil
----Fiat
---Audi
---BMW

when i click "Fiat"
Araç
-Otomobil
--Fiat
---Murat
---Şahin

View 3 Replies


Similar Messages:

Forms Data Controls :: Nested Repeater: Rewrites Ending Category List To All Categories

Feb 11, 2011

Nested Repeater Issue: Each category list gets populated with the same set of date values rather then being populated with the data associated with that category. Trying to Do: Trying to group FAQ's by category and then list them using the repeaters.

The data is queryed though a business logic layer object that makes a call to the data access layer object. The data access layer object uses linq to sql to return data. There are 3 parameters that are passed into the innerDataSource's ObjectDataSource control to populate the nested repeater control (propID, CatID, isVisible).

With the debugger, the correct data is being returned and written to the nested repeater firing from the nested repeater's ItemDataBound event. Once this event is finished, another event fires and runs the FAQRule object again on the business logic layer which re-populates the nested repeater with the same data for each category. I have 2 repeaters, outerRepater (parent) and innerRepeater(child) with 2 ObjectDataSource controls innerDataSource and outerDataSource. See code below : ASP Page:

<asp:Repeater DataSourceID="outterDataSource" EnableViewState="false" runat="server">
<ItemTemplate>
<%# Eval("Description") &#43; " " &#43; this.Property.PropertyName %>
<asp:Repeater EnableViewState="false" runat="server" DataSourceID="innerDataSource">
<HeaderTemplate>
<ul style="width: 500px">
</HeaderTemplate>
<ItemTemplate>
<div><%# Eval("Question") %></div>
<div><p><%# Eval("Answer") %></p></div>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
<asp:ObjectDataSource ID="innerDataSource"
runat="server"
SelectMethod="FetchFAQSByPrpAndCatID"
TypeName="PropertySite.BusinessRules.FAQRules">
<SelectParameters>......................................

View 3 Replies

ADO.NET :: Linq To SQL Group By Category And Count Each Subcategory?

Sep 30, 2010

I am wonder how I can generate a result table from linq to sql as below

Car sales table
Toyota small
Toyota passenger
Toyota small
Honda small
Honda small
Honda passenger
Honda small

result table
Brand small passenger total
Toyata 2 1 3
Honda 3 1 4

GridView1.DataSource = (from dtCarSales.AsEnumerable() .....

View 3 Replies

Custom Server Controls :: Category Attribute Of User Control Property Does Not Work Correctly In Categories Tab

Aug 19, 2010

I have a User Control (ascx) and a property which a want to display in my categories tab in Visual Studio in the category named "Styles".

[Code]....

And here is the problem: Actually I do not need a get, because I only have to set the property (write only property). But when I omit the get, the property is displayed in the "Misc" category in the categories tab in Visual Studio. Only when I code the get as well, then the property is displayed correctly in the "Styles" category in the categories tab in Visual Studio.

Does anybody know why? How can I display the category correctly only with set?

View 2 Replies

Logic For Displaying Infinite Category Tree In Nested <ul>s From Self Join Table?

Aug 14, 2010

in my on-line shopping project i created a dynamic Category List (with Infinite Level Depth) Implemented in a Single Table in DB with Self join.the schema is like below:UpdateI want to use a JQuery plugin to make a Multi Level Menu bar. this plugin uses <ul> and <li> elements so I should transform the DB table to <ul> and <li>. the result should like this:

<ul>
<li>Clothing 1
<ul>

[code]...

View 2 Replies

JQGrid Inline Editing - Filter Subcategory Dropdown List Based On Another Category Dropdown

Jul 9, 2010

I have a category and a subcategory column in a Jqgrid. I have enabled inline editing, both category and subcategory are dropdownlists columns (edittype:'select'). I need to filter the subcategory list based on the selected category. I wonder how can I acheive this functionlity? I tried the below event but its not working for me

afterEditCell: function(rowid, celname, value, iRow, iCol) {
//to do here
}

the above event doesn't get fired. my all column are editable

View 1 Replies

Forms Data Controls :: How To Display Category Name Without Category Id

Mar 30, 2011

I am working in a project that is a musical website. I want to display the web page with all categories I have. In my database , named Category_Master, I have two fields like Category_Id (which is a primary key ) and Category_Name. I have generated category_Id with NEWID() function. The category_Id is not supposed to display on the web page. But, i have to select Category_Name and according to that , I have to get the category_Id. If I am using Static connection with SqlDataSource, i am able to make visible=false property so that the category_id won't be visible. But , at that time, I can't write code to Select the category_id of the selected index.

If i am using disconnected approach, I filled the dataset with the Category_Master, and binded it to GridView. But, at that time, I can't hide the category_id from the user. I want to select category_id by clicking on the category_name with out displaying category_id ..?

View 4 Replies

DataSource Controls :: Add Unlimited Categories And Sub Categories?

Jan 9, 2010

I want to add unlimited categories and sub categories facility, But I couldn't solve it for last two days.

1. DB

CategID,CategName,parentid

Data:

CategID CategName Parent ID
1 Electronics 0 (where 0 means it is main category)
2 TV 1 (Self Join whith the categ id Electronics)
3 Panasonic 2
4 LG 2
5 Toys 0
6 Girls Toys 5
7 Boys Toys 5
8 Criket Related 7
9 Dolls 6

Here I want to display this data in Combo Box like

Electronic
>>TV
>>Panasonic
>>LG
Toys
>>GirlsToys
>>Dolls
>>Boys Toys
>>Criket Realted

View 6 Replies

Forms Data Controls :: Grouping Inside Grid View Categorywise And Subcategory Wise?

Aug 16, 2010

i wants to have grouping with my grid view. in which there is category and subcategory according to that category.

i wants to display sub category subtotal at the end of each sub category group and category total at the of category group.

View 2 Replies

Forms Data Controls :: Listing All Files In A Folder

Mar 23, 2011

I am trying to tweak a ASP intranet website that was created for my company. It uses a control to show all files in a folder, so they can be selected with ease by our employees. What I would like to do if possible is set it up where if a new form is added a bubble notification will appear next to the tabbed section. See the image below to see what I am refering to. I spoke to our site designer and he stated it is not possible. I feel that with all the creative minds in the world anything is possible. [URL]

View 2 Replies

Forms Data Controls :: Gridview Custom Paging By Categories?

Jul 28, 2010

Is there any way to have the gridview page by categories instead of pages. In other words instead of at the bottom having some sort of page numbering scheme there would be categories from a specific column (kind of like a group by in sql) arranged along the bottom and when I would click one it would page to the start of all those matching rows (preferably return all of them rather than just say 10 or 20).

View 1 Replies

Forms Data Controls :: Display Categories And Subcategories In Gridviews?

Dec 8, 2010

i have one requirement like i want to show all the categories with the subcategories ..

i mean if i have the Sale category it will be heading of the gridview and all sub categories of the Sale category foreign key related subcategories display in that gridview like urls .same way it will show all the categories ..

View 7 Replies

Forms Data Controls :: Formatted Listing Of Data Records?

Feb 11, 2010

I'm trying to produce a list of match fixtures (from a SQL server datasource) for the next seven days for my club in the format shown below. I want to group fixtures for each day under a heading which shows that date. I can select the correct records using a SQL datasource but cannot produce the format required using ListView or any other control.

Is there a ASP.NET control which will do this? how to do this using an ASP.NET control if possible or in any other way ?

The fixtures have the following datafields.

Matchdate, Team(1XV, 2XV, etc.), Opponent, Home/Away indicator(H/A) and kick off time.

Example of the report format required

Saturday 13 February

1XV Harrow H 2:30
2XV Enfield A 3:00
Sunday 14 February
U15 Hatfield H 11:00
U13 Edgware A 10:30

View 8 Replies

Forms Data Controls :: Add Categories To Repeater That Displays List Of Job Postings

Jun 8, 2010

I have a repeater that displays a list of job openings. I now need to modify the repeater and break out the job openings by category.

See below for the existing code for my repeater. I'm not sure how I need to modify my repeater to display the jobs under the appropriate categories.

I've added a new JobsCategory table to the database and added the foreign key relationship between my jobListing table and the jobcategory table.

I've created a new stored procedure to pull the jobs my category:

CREATE PROCEDURE [dbo].[GetJobsByCategory]
@categoryId int
AS
BEGIN
SET NOCOUNT ON
SELECT j.JobID, j.JobTitle, j.URL, j.City, j.State, j.Country, c.CategoryName
FROM ADPJobListing j
INNER JOIN ADPJobCategory c ON j.CategoryID = c.CategoryID
WHERE j.CategoryID = @categoryId
END

In my typed dataset (tableadapter), I'll add a new query to the above stored procedure and finally in my business logic layer, I'll add a new method to call down into my data access layer:

[DataObjectMethod(DataObjectMethodType.Select, false)]
public ADP.JobsDataTable GetJobsByCategory(int categoryId)
{
return this.Adapter.GetJobsByCategory(categoryId);
}

How do I need to modify my repeater to display the jobs by category?

[Code]....

View 1 Replies

Forms Data Controls :: Listing Directory Files Into A Nested Dropdownlist Within A Formview?

Jan 16, 2010

I am having trouble populating two dropdownlist controls with a list of files.The controls should be loaded with a list of images and paths that are held in the IDictionary object.The dropdown controls are nested in a Formview Control under the currentmode of insert or edit.Here's a clip of my form code:

[Code]....

Here's the code behind

[Code]....

[Code]....

View 3 Replies

Forms Data Controls :: Add A Sub Category To A Gridview?

Apr 26, 2010

I'm working on a dynamic table of contents (toc). The toc is generated from data in a sql database. There are 5 sections in the toc and within each of the five sections, there are a varied number of rows. (Section 1 may have 5 rows, while Section 2 has 12 rows). To help differentiate between the sections, I'd like the ability to add some type of grouping in my gridview. So, it would look like below. Do I just add a different gridview for each section, or is there a way to "categorize" the gridview to break up the data with a Section 1 Category

a
b
c
d
e

Section 2 Category
a
b
c
d
e
f
g
h
i....

View 3 Replies

Forms Data Controls :: Code Sum Gridview By Category In 2.0?

Aug 26, 2010

Code Sum gridview by category in asp.net 2.0

View 3 Replies

Forms Data Controls :: Show The Category Name Alphabetically?

Jan 19, 2010

I am having a problem .I want to display the book category and subcategories which is fetched from database .

I want to show record like

Example
--------
A
Autobiographies
- Advertising
- Artists

[Code]....

How to show record like this and which control I have to use for this.

View 2 Replies

Forms Data Controls :: How To Select Statement For Multiple Category

Mar 1, 2011

im creating advance search for my project and end up with the problem of select statement format for 2category.

here is example:

i have advancesearch that has checkbox wherein you can select multiple checkbox. example is selecting category, for example ihave 5 category as shown below.

Category

News Sports Opinion Editorial Literary i did tried someformats for my select statements to make it work for 2 or more category, but i just cant get the right format of the select statement.

example if i select the following.

if selected is category 'Sports'

it wil work with this: " 'Select * MyTable1 where [Category Title]='Sports' "

if selected are category 'Sports' and 'News'. what must be the format for my selectstatement for 2 or more category in the same fieldname? should it work with this?

" 'Select * MyTable1 where [Category Title]='Sports','News'" no, how could i make it work. what must be the right format?

View 2 Replies

Forms Data Controls :: Dynamic Data / Display The Sub Models Of Particular Laptop Category?

Oct 5, 2010

I have two tables... Laptop category and Laptop details ... Laptop of each category is displayed using Imagebuttons in my website... eg: Dell.HP,Compaq and each category is associated with unique ID like 1 ,2, 3, etc.

Based on this category ID when i click on particular image button it should redirect to another web page ( I ve specified the page in each ImageButton's PostBackUrl property as LaptopDetails.aspx ? catId=1 ....). And in Details page I would like to display the sub models of particular Laptop Category...

for eg Dell has three sub models INSPIRON 1464, INSPIRON 15 and INSPIRON 15R

sub models has to be displayed with image and all the details from the database...

View 3 Replies

Forms Data Controls :: Hiding Data (category Titles) In A Datalist

Nov 5, 2010

I have a datalist that retreives category names for a knowledge base system I'm working on. When you click to view all the category titles, I want to hide those category titles that don't have any articles associated with that category. So, for example, you click to see all the category titles, but because there isn't any KB articles for "Mice", the "Mice" category isn't visible.

View 2 Replies

ADO.NET :: Entity Framework 3.5 / Select Category From Dropdownlist Bind Gridview To All Products Related To This Category?

Nov 5, 2010

i create example using Northwind database so i create a new website and add new ADO.Net Entity Data Model (.edmx) called Northwind.edmx and i add Categories and Products table inside this (.edmx) file

and add new ADO.Net Data Servuce called "ADODataService" and add it as WebReferences called NorthwindService

so i add new web page and drag DropdownList and Gridview as i want to bind Dropdownlist to all categories and when i select category from Dropdownlist bind Gridview to all Products related to this category

so my code

[Code]....

and my code
[Code]....

so when i select category from Dropdownlist nothing happen :(

also you will find commented code in method BindCategory whuch is not work also.

View 1 Replies

Get An Error A String (selected Category In The Ddl) Cannot Be Converted To A Category Object?

Feb 7, 2010

I'll try to explain as simple as I can in text what my problem is. I don't see any other way to make my issue clear.

I have a GridView that uses an ObjectDataSource.

The ObjectDataSource has an DataObjectTypeName defined, so I pass/get complete objects or list of objects to/from the data access methods.

The objects I'm working with, let's say we work with Book objects, contain a Title and a Category, BUT the Category is an object itself. When the Select method is called, we get a List of Book objects, which is perfectly displayed, overridden ToString method in the Category objects within the Book objects.

The problem I face is that I can't find a way to update the category in my GridView. What I did already accomplish is:I used a template field in the GridView for the Category so I could use a DropDownList for that field in Edit mode.

I bound the DropDownList to another ObjectDataSource that gives me a list of CategoryObjects.

So when I enter Edit mode... the row shows a nice ddl with the available categories. It even selects the right original category.

So far so good... but when I want to save my new selection, I get an error that a string (the selected category in the ddl) cannot be converted to a Category object (that's what the Book object, that is going to be used for the update, expects).

View 5 Replies

Forms Data Controls :: Nested Gridview To Show Category And Forum?

Aug 30, 2010

there is category and under its there are all forum of this category

to do that , I create 2 tables in DB

cat for category have 2 rows ( id,title) and table forum have 3 rows ( id,title,Cat_ID)

I can do it with Php but in asp.net I can't

I read in some article to create nested gridview

View 4 Replies

Forms Data Controls :: Hat Should Use To Create The Controls On Category Page

Mar 9, 2011

I'm developing a webshop and need to list products. Each product is displayed in a UserWebControl. I have a method that return the products to be shown. The UserWebCotrol has a product property.What should I use to create the controls on my category page? I need to dynamically create the instances of the UserWbControl and set the product property.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved