I am doin a sivleright 4 app.
i would like to check whether a paritcular folder exist on SERVER on a button click.
If not create it.
how can this be done?
private void btn_checkfolder_Click(object sender, RoutedEventArgs e)
{ // code to check if directory exist on server}
Silverlight is a client-side technology hence has no knowledge of server side resources. Since your hosting environment is IIS and I assume you want to determine the existence of physical path, think your best shot is to craft a Silverlight enabled web service that will expose a function checking if your desired path exists, then consume it in your Silverlight app.