ClientBin directory


i have s subfolder in clientbin, , wish directory on it.  suggestions appreciated.

 yes yes... krasshirsch correct

 

just add wcf service(silverlight enabled) , add function like

[operationcontract]

public string[] getfiles(string path)

{

return directory.getfiles(system.web.hosting.hostingenvironment.mappath("~/clientbin/" + path));

}

 

and in client, add service reference, use like

someclient sc = new someclient(new basichttpbinding(),new endpointaddress("your url/someservice.svc"));

sc.getfilescompleted += (obj,arg) =>

{

foreach(var v in arg.result)


{

//add v listbox
}

};

sc.getfilesasync();



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........