Getting mediaelement source from table..

Posted by Jayakumarkm under WPF on 4/9/2010 | Views : 3069 | Status : [Member] | Replies : 0

thanks for replies..

i am storing the media element's source string(hosanna.mp3) in table..
and retrieving it from datagrid selection changed to the media element source..

check my code..
private void dgO_SelectionChanged(object sender, SelectionChangedEventArgs e)
for (int i = 0; i < dsM.Tables[0].Rows.Count; i++)
txturi.Text= dsM.Tables[0].Rows[i][15].ToString();
mediaElement1.Source =New Uri(txturi.Text);

error is thrown at this point "New Uri(txturi.Text);"
is this rite;


(No response found.)

Login to post response