Click here to Skip to main content
15,916,189 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: inserting data to SQL via Storeprocedure(Please help) Pin
future383930-Jun-10 5:26
future383930-Jun-10 5:26 
GeneralRe: inserting data to SQL via Storeprocedure(Please help) Pin
JHizzle30-Jun-10 6:17
JHizzle30-Jun-10 6:17 
QuestionProblem getting EditCommand event to fire in nested DataGrid Pin
Phillip Donegan28-Jun-10 2:39
Phillip Donegan28-Jun-10 2:39 
AnswerRe: Problem getting EditCommand event to fire in nested DataGrid Pin
Phillip Donegan29-Jun-10 3:17
Phillip Donegan29-Jun-10 3:17 
QuestionJavascript Method call!! Pin
sabby200628-Jun-10 0:31
sabby200628-Jun-10 0:31 
AnswerRe: Javascript Method call!! Pin
Sandeep Mewara28-Jun-10 0:47
mveSandeep Mewara28-Jun-10 0:47 
AnswerRe: Javascript Method call!! Pin
Venkatesh Mookkan28-Jun-10 1:26
Venkatesh Mookkan28-Jun-10 1:26 
AnswerRe: Javascript Method call!! Pin
Not Active28-Jun-10 2:52
mentorNot Active28-Jun-10 2:52 
QuestionTextBox Readonly Property Pin
Anurag Gandhi27-Jun-10 22:36
professionalAnurag Gandhi27-Jun-10 22:36 
AnswerRe: TextBox Readonly Property Pin
JHizzle27-Jun-10 23:39
JHizzle27-Jun-10 23:39 
AnswerRe: TextBox Readonly Property Pin
Brij27-Jun-10 23:48
mentorBrij27-Jun-10 23:48 
GeneralRe: TextBox Readonly Property Pin
Anurag Gandhi28-Jun-10 0:44
professionalAnurag Gandhi28-Jun-10 0:44 
GeneralRe: TextBox Readonly Property Pin
Brij28-Jun-10 4:45
mentorBrij28-Jun-10 4:45 
GeneralRe: TextBox Readonly Property Pin
Anurag Gandhi28-Jun-10 20:41
professionalAnurag Gandhi28-Jun-10 20:41 
AnswerRe: TextBox Readonly Property Pin
Sandeep Mewara28-Jun-10 0:46
mveSandeep Mewara28-Jun-10 0:46 
GeneralRe: TextBox Readonly Property Pin
Anurag Gandhi28-Jun-10 1:59
professionalAnurag Gandhi28-Jun-10 1:59 
GeneralRe: TextBox Readonly Property Pin
Sandeep Mewara28-Jun-10 2:02
mveSandeep Mewara28-Jun-10 2:02 
GeneralRe: TextBox Readonly Property Pin
Phillip Donegan28-Jun-10 5:02
Phillip Donegan28-Jun-10 5:02 
GeneralRe: TextBox Readonly Property Pin
Sandeep Mewara28-Jun-10 5:05
mveSandeep Mewara28-Jun-10 5:05 
AnswerRe: TextBox Readonly Property Pin
T M Gray28-Jun-10 7:17
T M Gray28-Jun-10 7:17 
QuestionOpen Connection Pin
Naunt27-Jun-10 22:35
Naunt27-Jun-10 22:35 
AnswerRe: Open Connection Pin
Sandeep Mewara28-Jun-10 0:50
mveSandeep Mewara28-Jun-10 0:50 
QuestionFilter 2 datatables in dataset Pin
zeego27-Jun-10 21:18
zeego27-Jun-10 21:18 
AnswerRe: Filter 2 datatables in dataset Pin
Sandeep Mewara28-Jun-10 0:53
mveSandeep Mewara28-Jun-10 0:53 
asp_crazy_guy wrote:
in datatable 3, I want results whose id is not zero in datable 2

Your example shows 0 PPP in datatable 3!

Assuming you dont want certain rows, two ways:
1. (better one): Do this in SQL query while fetching data filter out that are having ID 0
2. In code-behind, run two foreach loops. First one on table1 and second one on table 2. In first foreach, check the value of ID, and based on your condition if the row is fine add that to the third table.
Repeat the same with second foreach loop done on table2.

End result would be Table3 with data you want.
GeneralRe: Filter 2 datatables in dataset Pin
zeego28-Jun-10 19:03
zeego28-Jun-10 19:03 

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.