How to merge 2 tables fields in DataTable in asp.net
Answer Posted / abc
DataTable dt1 = retDT("select col1,col2 from Table1");
DataTable dt2 = retDT("select col3,col4 from Table2");
dt1.Merge(dt2);
retDT is a funtion to return datatable based on the query.
The output will be like below
if you check the dt1 content then the output will be
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain asp.net application life cycle?
how to elimainte the similar data from the different tables
How can you dynamically add user controls to a page?
What is inproc mode in session?
Explain automatic memory management in .net.
Explain the use of resource manager class in .net.
explain code with datachaching with example
What is difference between session and cookie?
In ViewState How much lifespan items stored?
What is Forms Authentication in ASP.NET?
Explain the difference between singleton and single call?
Is redux flux?
What is css in asp.net?
What is asp.net version?
How can we communicate with each server in N-tier Architecture? and what are the methods?