Click here to Skip to main content
15,887,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: asp.net connection string Pin
omer erakman11-Oct-07 6:40
omer erakman11-Oct-07 6:40 
GeneralRe: asp.net connection string Pin
Dhyanga13-Oct-07 19:31
Dhyanga13-Oct-07 19:31 
GeneralRe: asp.net connection string Pin
omer erakman14-Oct-07 8:54
omer erakman14-Oct-07 8:54 
GeneralRe: asp.net connection string Pin
Dhyanga14-Oct-07 21:31
Dhyanga14-Oct-07 21:31 
QuestionASP .Net 2.0 Page events. Pin
aakar9-Oct-07 6:25
aakar9-Oct-07 6:25 
AnswerRe: ASP .Net 2.0 Page events. Pin
Not Active9-Oct-07 8:23
mentorNot Active9-Oct-07 8:23 
QuestionClass vs SP Pin
ss.mmm9-Oct-07 6:17
ss.mmm9-Oct-07 6:17 
AnswerRe: Class vs SP Pin
ToddHileHoffer9-Oct-07 7:04
ToddHileHoffer9-Oct-07 7:04 
If you are using sql server 2005 then you can use the pivot command. If not, I would use ado.net. Create a dataTable with the proper columns and use a data reader to populate it. I don't think the C# is more efficient, but it sure is easier. Writing complicated stuff is SQL tough to debug and generally more difficult to follow.

How many rows are you going to be pulling back? If you have 1000s of rows you are probably better off using a user defined function in SQL for performance, but if you have 50 or less rows, it won't matter how you do it and the C# will be much easier to maintain / modify / debug if you need to.


I didn't get any requirements for the signature


QuestionSQL Query Translation. Pin
Saksida Bojan9-Oct-07 5:37
Saksida Bojan9-Oct-07 5:37 
AnswerRe: SQL Query Translation. Pin
il_masacratore9-Oct-07 21:47
il_masacratore9-Oct-07 21:47 
Questionjavascript datetime dynamically (ASP.Net) Pin
veluCovansys9-Oct-07 5:31
veluCovansys9-Oct-07 5:31 
AnswerRe: javascript datetime dynamically (ASP.Net) Pin
ToddHileHoffer9-Oct-07 7:05
ToddHileHoffer9-Oct-07 7:05 
QuestionDataset on Immediate window Pin
ss.mmm9-Oct-07 5:30
ss.mmm9-Oct-07 5:30 
AnswerRe: Dataset on Immediate window Pin
Paddy Boyd9-Oct-07 5:38
Paddy Boyd9-Oct-07 5:38 
QuestionPopulating a drop down list Pin
Brendan Vogt9-Oct-07 3:50
Brendan Vogt9-Oct-07 3:50 
AnswerRe: Populating a drop down list Pin
Eduard Keilholz9-Oct-07 4:38
Eduard Keilholz9-Oct-07 4:38 
GeneralRe: Populating a drop down list Pin
Brendan Vogt9-Oct-07 5:28
Brendan Vogt9-Oct-07 5:28 
QuestionHow do I stop the response object from renaming files? Pin
Al Ortega9-Oct-07 3:33
Al Ortega9-Oct-07 3:33 
AnswerRe: How do I stop the response object from renaming files? Pin
Paddy Boyd9-Oct-07 5:24
Paddy Boyd9-Oct-07 5:24 
GeneralRe: How do I stop the response object from renaming files? Pin
Al Ortega9-Oct-07 5:52
Al Ortega9-Oct-07 5:52 
QuestionGridview DropDownlist Pin
ss.mmm9-Oct-07 3:27
ss.mmm9-Oct-07 3:27 
AnswerRe: Gridview DropDownlist Pin
John Gathogo9-Oct-07 4:20
John Gathogo9-Oct-07 4:20 
GeneralRe: Gridview DropDownlist Pin
ss.mmm9-Oct-07 4:49
ss.mmm9-Oct-07 4:49 
GeneralRe: Gridview DropDownlist Pin
John Gathogo9-Oct-07 6:39
John Gathogo9-Oct-07 6:39 
QuestionASP.NET application performance issue Pin
Mukesh Kumar Gupta9-Oct-07 3:12
Mukesh Kumar Gupta9-Oct-07 3:12 

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.