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

ASP.NET

 
QuestionSingleton object and Garbage collector Pin
ducretpatrick16-May-08 4:14
ducretpatrick16-May-08 4:14 
AnswerRe: Singleton object and Garbage collector Pin
Guffa16-May-08 12:03
Guffa16-May-08 12:03 
AnswerRe: Singleton object and Garbage collector Pin
Mark Churchill18-May-08 4:08
Mark Churchill18-May-08 4:08 
QuestionNeed urgent help in ASP .NET Pin
ddeka16-May-08 4:12
ddeka16-May-08 4:12 
AnswerRe: Need urgent help in ASP .NET Pin
SomeGuyThatIsMe16-May-08 8:16
SomeGuyThatIsMe16-May-08 8:16 
AnswerRe: Need urgent help in ASP .NET Pin
Blue_Boy16-May-08 9:12
Blue_Boy16-May-08 9:12 
Questioncriters in Gridview Pin
foryou16-May-08 4:05
foryou16-May-08 4:05 
AnswerRe: criters in Gridview Pin
SomeGuyThatIsMe16-May-08 8:10
SomeGuyThatIsMe16-May-08 8:10 
I'm going to try to sum up what you said then give you a possible solution or two, what i think you want is to do some calculations on a few columns of data in row and display the results of your calculations in another column.

If i am correct there are 2 ways to do this.

1. You can use the ItemDataBound event in the control you are using(i assume a datagrid) and get the value of each cell e.item.cells[number].ToString() and do the caclumations for each row in the asp.net codebehind, not exactly the best solution.

2. You can do the calculations in the SQL query
SELECT {your values}, CASE WHEN {your calculations meet some condtion} THEN 1 ELSE 0 (or whatever values you want) END AS Valid ..{rest of sql query here}

I would recomend using method 2 ina view if possible then selecting from that view in your code, so if the criteria changes you just have to make a database change and dont have to worry about code changes and putting a new build out.

I hope this is helpful, if you have any more questions feel free to ask. if it was helpful at all please rate the response..makes me feel smarter, and/or give better answers.
GeneralThanks Pin
foryou17-May-08 7:06
foryou17-May-08 7:06 
GeneralRe: criters in Gridview Pin
foryou19-May-08 0:06
foryou19-May-08 0:06 
QuestionProblem checking out a SharePoint document using a web part Pin
JimmyRopes16-May-08 3:06
professionalJimmyRopes16-May-08 3:06 
QuestionProblem with UpdatePanel Pin
Johndas16-May-08 2:50
Johndas16-May-08 2:50 
AnswerRe: Problem with UpdatePanel Pin
Vinay Dornala19-May-08 3:12
Vinay Dornala19-May-08 3:12 
Questionhow to show 2 fields of values in a label in a datalist Pin
Farhad Eft16-May-08 2:31
Farhad Eft16-May-08 2:31 
AnswerRe: how to show 2 fields of values in a label in a datalist Pin
Christian Graus16-May-08 2:34
protectorChristian Graus16-May-08 2:34 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Farhad Eft16-May-08 3:00
Farhad Eft16-May-08 3:00 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Christian Graus16-May-08 3:02
protectorChristian Graus16-May-08 3:02 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Farhad Eft16-May-08 3:06
Farhad Eft16-May-08 3:06 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Christian Graus16-May-08 3:12
protectorChristian Graus16-May-08 3:12 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Farhad Eft16-May-08 3:37
Farhad Eft16-May-08 3:37 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
J4amieC16-May-08 3:46
J4amieC16-May-08 3:46 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Farhad Eft16-May-08 6:04
Farhad Eft16-May-08 6:04 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Christian Graus16-May-08 3:46
protectorChristian Graus16-May-08 3:46 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Farhad Eft16-May-08 6:07
Farhad Eft16-May-08 6:07 
QuestionDisplay data after page_load in ASPNET 2.0 Pin
salon16-May-08 2:14
salon16-May-08 2:14 

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.