Click here to Skip to main content
16,013,918 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: web deployment in asp.net 2005 Pin
N a v a n e e t h30-Jul-07 20:10
N a v a n e e t h30-Jul-07 20:10 
QuestionrRetaining Data in web form after transfer to another form and back Pin
Sakshi Smriti30-Jul-07 18:58
Sakshi Smriti30-Jul-07 18:58 
AnswerRe: rRetaining Data in web form after transfer to another form and back Pin
Christian Graus30-Jul-07 19:08
protectorChristian Graus30-Jul-07 19:08 
QuestionGridView Issue Pin
Brendan Vogt30-Jul-07 18:50
Brendan Vogt30-Jul-07 18:50 
AnswerRe: GridView Issue Pin
Christian Graus30-Jul-07 19:12
protectorChristian Graus30-Jul-07 19:12 
QuestionLock question [modified] Pin
perrin486930-Jul-07 17:26
perrin486930-Jul-07 17:26 
QuestionGetting data from two tables in a repeater Pin
phoeno2930-Jul-07 17:18
phoeno2930-Jul-07 17:18 
AnswerRe: Getting data from two tables in a repeater Pin
daniel__c30-Jul-07 20:21
daniel__c30-Jul-07 20:21 
Depends on what you want to do with the boatcats data i guess, but i will assume this is what you want in the repeater:

Boat Category
Boat Name
Boat Name
Boat Category
Boat Name
...


then you wouldn't need to have a nested repeater, you could do it in one repeater and just do a join in you database query:

"Select * from boats join boatcats on boatcats.id on boats.boatcats.id order by boatcats.name, boats.name"

(returning all fields from boats and boatcats) and order on the category name then the boat name.

OR

"Select boats.*, boatcats.title [boatCategoryTitle] from boats join boatcats on boatcats.id on boats.boatcats.id order by boatcats.name, boats.name"

(returning all fields from boats and boatcat title) and order on the category name then the boat name.


That way you can just put in two placeholders within the <ItemTemplate> and on the placeholder have visible="<%# ShowCategory(Container.DataItem) %>" (for the header placeholder) then visible="<%# !ShowCategory(Container.DataItem) %>" (for the boat section placeholder).

Then put a function ShowCategory(object dataItem) which works out whether this is the same category as the last, if not store the category name and show the header. Have another function inside that displays the name of the category. Then display whatever you want in the body section....

Does that make sense?? Is that what you are trying to do??
GeneralRe: Getting data from two tables in a repeater Pin
phoeno2930-Jul-07 20:40
phoeno2930-Jul-07 20:40 
GeneralRe: Getting data from two tables in a repeater Pin
daniel__c30-Jul-07 20:47
daniel__c30-Jul-07 20:47 
Questionfinding the index of datagrid using the selected item templates Pin
A.Vishal30-Jul-07 15:37
A.Vishal30-Jul-07 15:37 
AnswerRe: finding the index of datagrid using the selected item templates Pin
N a v a n e e t h30-Jul-07 20:06
N a v a n e e t h30-Jul-07 20:06 
GeneralRe: finding the index of datagrid using the selected item templates Pin
A.Vishal1-Aug-07 16:06
A.Vishal1-Aug-07 16:06 
QuestionWhy the exception "Object reference not set to an instance of an object." occurs? Pin
hurrem30-Jul-07 14:41
hurrem30-Jul-07 14:41 
AnswerRe: Why the exception "Object reference not set to an instance of an object." occurs? Pin
Christian Graus30-Jul-07 17:49
protectorChristian Graus30-Jul-07 17:49 
AnswerRe: Why the exception "Object reference not set to an instance of an object." occurs? Pin
daniel__c30-Jul-07 20:34
daniel__c30-Jul-07 20:34 
QuestionWHATS THAT PROBLEMS Pin
Neo_Shehpar30-Jul-07 14:21
Neo_Shehpar30-Jul-07 14:21 
AnswerRe: WHATS THAT PROBLEMS Pin
Christian Graus30-Jul-07 17:48
protectorChristian Graus30-Jul-07 17:48 
GeneralRe: WHATS THAT PROBLEMS [modified] Pin
Neo_Shehpar3-Aug-07 3:17
Neo_Shehpar3-Aug-07 3:17 
QuestionSetting file ContentType dynamically [modified] Pin
ASPnoob30-Jul-07 13:09
ASPnoob30-Jul-07 13:09 
AnswerRe: Setting file ContentType dynamically Pin
Christian Graus30-Jul-07 17:50
protectorChristian Graus30-Jul-07 17:50 
GeneralRe: Setting file ContentType dynamically [modified] Pin
ASPnoob30-Jul-07 19:18
ASPnoob30-Jul-07 19:18 
GeneralRe: Setting file ContentType dynamically Pin
Christian Graus30-Jul-07 19:27
protectorChristian Graus30-Jul-07 19:27 
Questionupdate panel problem Pin
Mogaambo30-Jul-07 12:07
Mogaambo30-Jul-07 12:07 
QuestionASP.NET Button postback issue [modified] Pin
stoland - work30-Jul-07 9:57
stoland - work30-Jul-07 9:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.