My requirent is "how to bind textfile data into listbox using silverlight".....By using openfile dialog we can do but i want without using openfile dialog concept....plz if it possible send me direct code because its on urgent requirement.
Loading
My requirent is "how to bind textfile data into listbox using silverlight".....By using openfile dialog we can do but i want without using openfile dialog concept....plz if it possible send me direct code because its on urgent requirement.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaganathan BantheswaranPosted Aug 2, 2012, 1:59 AM
What is the Error ?
[EDIT]:
You can try this version:
using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{ravi kiranPosted Jul 30, 2012, 1:11 AM
try { string fileData;
IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication();
using (IsolatedStorageFileStream isoStream = new IsolatedStorageFileStream("ravi10.txt", FileMode.Open, file))
{ using (StreamReader reader = new StreamReader(isoStream))
{ fileData = reader.ReadToEnd(); } }
listBox1.ItemsSource = fileData.Split(' '); }
catch (Exception ex)
{ MessageBox.Show(ex.Message); }
please if it possible can u do it and send me code because its very urgent requirement for me.please help me.
Shubham SaxenaPosted Jul 27, 2012, 5:59 PM
Cheers.