Click here to Skip to main content
15,905,563 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionpassing a value to web user control Pin
firestoper30-May-07 17:02
firestoper30-May-07 17:02 
AnswerRe: passing a value to web user control Pin
Not Active30-May-07 17:10
mentorNot Active30-May-07 17:10 
Questiongridview with multiple links Pin
2cool230-May-07 13:17
2cool230-May-07 13:17 
AnswerRe: gridview with multiple links Pin
doWhileSomething30-May-07 15:00
doWhileSomething30-May-07 15:00 
GeneralRe: gridview with multiple links Pin
Not Active30-May-07 17:08
mentorNot Active30-May-07 17:08 
GeneralRe: gridview with multiple links Pin
Ziltard30-May-07 21:22
Ziltard30-May-07 21:22 
QuestionProblem with Request.Url.AbsoluteUri Pin
vbtmikem30-May-07 12:18
vbtmikem30-May-07 12:18 
QuestionObjectDataSource Total Row Count (HOW?!) [modified] Pin
dwatkins@dirq.net30-May-07 11:45
dwatkins@dirq.net30-May-07 11:45 
I've been searching on this for a while and haven't found anything. How can I get the total row count from an ObjectDataSource control made up of a generic list of custom objects?

I tried doing casting the e.ReturnValue to my generic object list in the ObjectDataSource Selected event to no avail:

(( List < Product > )e.ReturnValue).Count

Has anybody done this before? I just want to show the user how many products are in a certain category along side the GridView. I'm using C# .NET 2.0 and have a Data Access Layer doing custom paging and sorting like this article on 4GuysFromRolla.

Thanks,


AnswerRe: ObjectDataSource Total Row Count (HOW?!) Pin
Ziltard30-May-07 21:27
Ziltard30-May-07 21:27 
GeneralRe: ObjectDataSource Total Row Count (HOW?!) Pin
dwatkins@dirq.net31-May-07 3:27
dwatkins@dirq.net31-May-07 3:27 
QuestionDate Searches in SQl Server 2005 Pin
aransiola30-May-07 8:33
aransiola30-May-07 8:33 
AnswerDouble post Pin
leckey30-May-07 9:21
leckey30-May-07 9:21 
QuestionDate Searches in aspx Pin
aransiola30-May-07 8:18
aransiola30-May-07 8:18 
AnswerRe: Date Searches in aspx Pin
Christian Graus30-May-07 11:22
protectorChristian Graus30-May-07 11:22 
AnswerRe: Date Searches in aspx Pin
dwatkins@dirq.net30-May-07 11:56
dwatkins@dirq.net30-May-07 11:56 
QuestionControling .aspx Visibility Pin
aransiola30-May-07 8:07
aransiola30-May-07 8:07 
AnswerRe: Controling .aspx Visibility Pin
Not Active30-May-07 9:44
mentorNot Active30-May-07 9:44 
AnswerRe: Controling .aspx Visibility Pin
Christian Graus30-May-07 11:23
protectorChristian Graus30-May-07 11:23 
QuestionAccessing elements of form inside javascript Pin
umashankergr830-May-07 7:39
umashankergr830-May-07 7:39 
AnswerRe: Accessing elements of form inside javascript Pin
Christian Graus30-May-07 11:24
protectorChristian Graus30-May-07 11:24 
Questionneed help wit file upload control Pin
neodeaths30-May-07 7:30
neodeaths30-May-07 7:30 
AnswerRe: need help wit file upload control Pin
kubben30-May-07 8:53
kubben30-May-07 8:53 
Questionneed help wit my datagrid's image Pin
neodeaths30-May-07 7:29
neodeaths30-May-07 7:29 
AnswerRe: need help wit my datagrid's image Pin
dwatkins@dirq.net30-May-07 11:48
dwatkins@dirq.net30-May-07 11:48 
QuestionPrinting to serial port Pin
Tomica_7930-May-07 7:24
Tomica_7930-May-07 7:24 

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.