Code snippet to call WCF RIA Methods
private void LoadExplorer(string path)
{
Web.Services.ExplorerContext context = new Web.Services.ExplorerContext();
EntityQuery<DirectoryInfoItem> query = context.EnumerateDirectoryQuery(path);
Action<LoadOperation<DirectoryInfoItem>> completeProcessing = delegate(LoadOperation<DirectoryInfoItem> loadOp)
{
if (!loadOp.HasError)
{
[...]
Let say you have csv file with two columns “Name” and “EmpID” and you want to use the values in your web based application.One option is to load the file into SQL server via some back end job and eliminate the use of file.But this will be only required (or suggested) if file is very [...]
Here is small code to trigger button’s Click event using automation peer from source code :
if (button is Button)
{
ButtonAutomationPeer peer = new ButtonAutomationPeer((Button)button);
IInvokeProvider ip = (IInvokeProvider)peer;
ip.Invoke();
}
Trick will be used in upcoming article “Smart shortcut keys” for adding accessibility to silverlight applications.
Blog Summary
1 contributors have published
70 posts that generated
258 commentsCategories
- .Net Concepts (18)
- Architecture (8)
- Asp.Net (7)
- C# (22)
- COM (3)
- Forms (5)
- General (11)
- HTA (2)
- Javascript (3)
- RIA (6)
- Silverlight (26)
- SQL (5)
- Tips (11)
- Tools (1)
- VB 6.0 (2)
- VB.Net (2)
- VC++ (2)
- WCF (7)
- WPF (13)
Rajneesh On
