Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
AnswerRe: Compress a Folder Pin
Nuri Ismail26-Mar-10 22:19
Nuri Ismail26-Mar-10 22:19 
AnswerRe: Compress a Folder Pin
harold aptroot26-Mar-10 22:21
harold aptroot26-Mar-10 22:21 
AnswerRe: Compress a Folder Pin
AspDotNetDev26-Mar-10 23:17
protectorAspDotNetDev26-Mar-10 23:17 
AnswerRe: Compress a Folder Pin
AspDotNetDev26-Mar-10 23:21
protectorAspDotNetDev26-Mar-10 23:21 
Questionhow to convert our cheak box button act as a radio button Pin
poonam jagdale26-Mar-10 21:22
poonam jagdale26-Mar-10 21:22 
AnswerRe: how to convert our cheak box button act as a radio button Pin
Abhinav S26-Mar-10 21:31
Abhinav S26-Mar-10 21:31 
AnswerRe: how to convert our cheak box button act as a radio button Pin
dan!sh 26-Mar-10 21:51
professional dan!sh 26-Mar-10 21:51 
Questionbulkcopy.writetoserver() Pin
RajaAhmed26-Mar-10 19:16
RajaAhmed26-Mar-10 19:16 
actully i want to copy the XML file into the database table, but in distination table there is an extra column. i want to add a new column and gave it a value.

DataSet ds = new DataSet();
ds.ReadXml("C:\\abc.xml");
DataTable sourceData = new DataTable();
sourceData = ds.Tables[0];


DataColumn UID = new DataColumn();
UID.DataType = System.Type.GetType("System.Int32");
UID.ColumnName = "UID";

sourceData.Columns.Add(UID);
sourceData.Columns["UID"] = 12;

i have done the mapping....

bulkCopy.ColumnMappings.Add("UID", "UID");
.
.
.
.
and in end
bulkCopy.DestinationTableName = "Contact";

bulkCopy.WriteToServer(sourceData);


but UID column always gave the null value in database...
any idea??
AnswerRe: bulkcopy.writetoserver() Pin
RajaAhmed26-Mar-10 21:43
RajaAhmed26-Mar-10 21:43 
QuestionDesign Question Pin
programmervb.netc++26-Mar-10 17:24
programmervb.netc++26-Mar-10 17:24 
AnswerRe: Design Question Pin
Luc Pattyn26-Mar-10 17:33
sitebuilderLuc Pattyn26-Mar-10 17:33 
AnswerRe: Design Question Pin
programmervb.netc++26-Mar-10 17:36
programmervb.netc++26-Mar-10 17:36 
GeneralRe: Design Question Pin
Ravi Bhavnani26-Mar-10 20:14
professionalRavi Bhavnani26-Mar-10 20:14 
GeneralRe: Design Question Pin
programmervb.netc++26-Mar-10 21:45
programmervb.netc++26-Mar-10 21:45 
GeneralRe: Design Question Pin
AspDotNetDev26-Mar-10 23:35
protectorAspDotNetDev26-Mar-10 23:35 
AnswerRe: Design Question Pin
PIEBALDconsult27-Mar-10 4:31
mvePIEBALDconsult27-Mar-10 4:31 
Questioncheck for URL problem Pin
Jassim Rahma26-Mar-10 12:42
Jassim Rahma26-Mar-10 12:42 
AnswerRe: check for URL problem Pin
Alan N26-Mar-10 13:22
Alan N26-Mar-10 13:22 
GeneralRe: check for URL problem Pin
Jassim Rahma26-Mar-10 13:26
Jassim Rahma26-Mar-10 13:26 
GeneralRe: check for URL problem Pin
AspDotNetDev26-Mar-10 23:48
protectorAspDotNetDev26-Mar-10 23:48 
GeneralRe: check for URL problem Pin
Jassim Rahma27-Mar-10 12:17
Jassim Rahma27-Mar-10 12:17 
GeneralRe: check for URL problem Pin
AspDotNetDev30-Mar-10 23:12
protectorAspDotNetDev30-Mar-10 23:12 
Questionbullets and numberring in RTF Pin
Jassim Rahma26-Mar-10 12:33
Jassim Rahma26-Mar-10 12:33 
Questioncreate Microsoft Word Document in C# Pin
Jassim Rahma26-Mar-10 12:18
Jassim Rahma26-Mar-10 12:18 
AnswerRe: create Microsoft Word Document in C# Pin
Alan N26-Mar-10 13:37
Alan N26-Mar-10 13:37 

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.