Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
AnswerRe: can we Record the Phone call using C#.net Pin
Rhuros12-May-11 22:21
professionalRhuros12-May-11 22:21 
AnswerRe: can we Record the Phone call using C#.net Pin
RaviRanjanKr15-May-11 2:50
professionalRaviRanjanKr15-May-11 2:50 
QuestionDetect mouse over & out on minimize SDI window in MDI application c# Pin
Tridip Bhattacharjee12-May-11 1:30
professionalTridip Bhattacharjee12-May-11 1:30 
AnswerRe: Detect mouse over & out on minimize SDI window in MDI application c# Pin
BobJanova12-May-11 1:38
BobJanova12-May-11 1:38 
AnswerRe: Detect mouse over & out on minimize SDI window in MDI application c# Pin
SilimSayo12-May-11 2:41
SilimSayo12-May-11 2:41 
QuestionRe: Detect mouse over & out on minimize SDI window in MDI application c# Pin
Eddy Vluggen12-May-11 3:30
professionalEddy Vluggen12-May-11 3:30 
AnswerRe: Detect mouse over & out on minimize SDI window in MDI application c# Pin
Eddy Vluggen12-May-11 3:31
professionalEddy Vluggen12-May-11 3:31 
Question"Input string was not in a correct format." when updating datatable... [modified] Pin
siva45511-May-11 19:07
siva45511-May-11 19:07 
Hi,
String temp;
foreach (DataRow row in Table.Rows)
                    {
                        foreach (DataColumn column in Table.Columns)
                        {
                            if(row[column].ToString().Contains("%"))
                            {
                                temp = row[column].ToString().Replace("%"," ");
                               row[column] = temp;
                            }
                        }
                    }
                    Table.AcceptChanges();
Table is nothing but a datatable...
and when im trying to run the below code... im getting error like input string was not in a correct format  
in the below highlighted line of code..
 String tem;
foreach (DataRow row in Table.Rows)
                {
                    foreach (DataColumn column in Table.Columns)
                    {
                        if (row[column].ToString().Contains(" "))
                        {
                            tem = row[column].ToString().Replace(" ", "%");
                            row[column] = temp; //getting error in this line...
                        }
                    }
                }
                Table.AcceptChanges();


Please help me regarding the same..

modified on Thursday, May 12, 2011 1:14 AM

AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
Joshi, Rushikesh11-May-11 19:42
professionalJoshi, Rushikesh11-May-11 19:42 
GeneralRe: "Input string was not in a correct format." when updating datatable... Pin
siva45511-May-11 20:03
siva45511-May-11 20:03 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
Subin Mavunkal11-May-11 19:55
Subin Mavunkal11-May-11 19:55 
GeneralRe: "Input string was not in a correct format." when updating datatable... [modified] Pin
siva45511-May-11 20:05
siva45511-May-11 20:05 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
Subin Mavunkal11-May-11 21:35
Subin Mavunkal11-May-11 21:35 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
OriginalGriff11-May-11 21:44
mveOriginalGriff11-May-11 21:44 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
OriginalGriff11-May-11 21:42
mveOriginalGriff11-May-11 21:42 
GeneralRe: "Input string was not in a correct format." when updating datatable... Pin
siva45512-May-11 0:49
siva45512-May-11 0:49 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
Luc Pattyn12-May-11 0:57
sitebuilderLuc Pattyn12-May-11 0:57 
GeneralRe: "Input string was not in a correct format." when updating datatable... [modified] Pin
siva45515-May-11 19:43
siva45515-May-11 19:43 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
Luc Pattyn15-May-11 23:09
sitebuilderLuc Pattyn15-May-11 23:09 
AnswerRe: "Input string was not in a correct format." when updating datatable... Pin
BobJanova12-May-11 2:03
BobJanova12-May-11 2:03 
Questionproblem with unicode. [modified] Pin
prasadbuddhika11-May-11 5:48
prasadbuddhika11-May-11 5:48 
AnswerRe: problem with unicode Pin
Luc Pattyn11-May-11 5:51
sitebuilderLuc Pattyn11-May-11 5:51 
GeneralRe: problem with unicode. Pin
prasadbuddhika11-May-11 6:30
prasadbuddhika11-May-11 6:30 
GeneralRe: problem with unicode. Pin
Luc Pattyn11-May-11 6:54
sitebuilderLuc Pattyn11-May-11 6:54 
GeneralRe: problem with unicode. Pin
prasadbuddhika11-May-11 7:15
prasadbuddhika11-May-11 7:15 

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.