| Author: Mohan Kumar 26 Mar 2008 | Member Level: Diamond | Rating: Points: 2 |
hi,
You can not store the value in Notepad, instead of you can wite the value as a text file.
-Mohan
|
| Author: Tamilarasan 26 Mar 2008 | Member Level: Silver | Rating: Points: 2 |
Hi,
StreamWriter sw = new StreamWriter("D://Sample.txt"); string result = "";
DataSet dsGetResult = new DataSet(); //Write Code to Bind data with DataSet(dsGetResult)
for (i = 0; i <dsGetResult.Tables[0].Rows.Count; i++) { for (j = 0; j < dsGetResult.Tables[0].Columns.Count; j++) { result = result + dsGetResult.Tables[0].Rows[i].ItemArray[j].ToString(); }
sw.WriteLine(result); result = "";
} sw.Close();
|