|
Thanks Emmanuel. I will check it because it is also using some handler.
My Reading-o-Meter
Previous -> Read "CLR via C#" by Jeffrey Richter.
Current -> Exploring WCF thru Apress' "Pro WCF" by Chris Peiris and Dennis Mulder.
Next -> Need to read "The Art of Computer Programming" by Donald E. Knuth.
My blog - My recent article
|
|
|
|
|
We use handler files for handling HTTP requests in ASP.NET. Silverlight is a RIA framework, it's completely unrelated to APS.NET and thus no ASP.NET technology is present in it.
If you're asking about posting to a handler (.ashx address) you can do that with a HttpRequest, the same way as you would do with any other server.
Good Luck!
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
Source
|
|
|
|
|
Thanks Amitosh. Yes, agreed.
But the launching page and request/response processing is through Asp.Net only for Silverlight apps. Therefore only at client side SL comes into picture but for server side it is Asp.Net, which takes for all the processing.
So, my question is can I call a handler file from a SL screen (Xaml.cs or viewModel)?
My Reading-o-Meter
Previous -> Read "CLR via C#" by Jeffrey Richter.
Current -> Exploring WCF thru Apress' "Pro WCF" by Chris Peiris and Dennis Mulder.
Next -> Need to read "The Art of Computer Programming" by Donald E. Knuth.
My blog - My recent article
|
|
|
|
|
You do it by sending a request through the HttpRequest class to the handler url and passing url parameters and/or custom HTTP headers.
This MSDN Page explains a lot.[^]
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
Source
|
|
|
|
|
Thanks Amitosh.
My Reading-o-Meter
Previous -> Read "CLR via C#" by Jeffrey Richter.
Current -> Exploring WCF thru Apress' "Pro WCF" by Chris Peiris and Dennis Mulder.
Next -> Need to read "The Art of Computer Programming" by Donald E. Knuth.
My blog - My recent article
|
|
|
|
|
hi
i have a listviwe that bind with datatable.
now i want search item on listviwe .
My code is below. Please have a look.
foreach (ListViewItem item in lsvCountry.Items)
{
if (item.Content.Equals(txtSearch .Text ))
{
item.IsSelected = true;
}
else
{
item.IsSelected = false;
}
}
but i give error:
Unable to cast object of type 'System.Data.DataRowView' to type 'System.Windows.Controls.ListViewItem
thank you
|
|
|
|
|
Using Linq would proberbly be the easiest.
|
|
|
|
|
thank you for Answer
but I do not work with Linq.
please Other ways to Give.
thank you very much...
|
|
|
|
|
I think the issue is probably with item.Content, check the type it will not be what you are expecting.
Why are you manipulating the UI, you should be working with the underlying data so rather than iterating through the ListViewItems you should be working with the datatable and setting a field IsSelected which should be bound to the UI control.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
dharmaa.m wrote: Unable to cast object of type 'System.Data.DataRowView' to type 'System.Windows.Controls.ListViewItem
That should give you a clue - the Items collection contains the actual items from your data source, not the ListViewItem s they're wrapped in.
Try:
foreach (DataRowView row in lsvCountry.Items)
{
var item = (ListViewItem)lsvCountry.ItemContainerGenerator.ContainerFromItem(row);
...
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
This is the first time I have started a silverlight project on the current machine I am on with Visual Studio 2010. Until now, I have been programing ni ASP.NET.
When I first tried to start a new Silverlight project, I was told I needed to install a fresh copy of Silverlight. I had to uninstall Silverlight as well as my versions of the Silverlight SDK. After uninstalling and reinstalling (now I have Microsoft Silverlight 5.1.20513.0 and Silverlight 4 SDK 4.0.50826.0) I was finally able to create a Silverlight Project. But the XAML code instantly failed to load in the IDE
http://i67.photobucket.com/albums/h292/Athono/ASP_DOT_NET%20and%20CSS/outofthegate02_zps0bd33d95.png
http://i67.photobucket.com/albums/h292/Athono/ASP_DOT_NET%20and%20CSS/outofthegate01_zpse0f20845.png
Any suggestions?
|
|
|
|
|
I recently started a job at a company doing software testing. The company has a XBAP application where we record our test case data, however all the controls (buttons, labels, tree nodes, etc.) are all in Chinese. Since I'm only person on the test team who doesn't speak/read Chinese, the developers in the company aren't willing to translate the entire application. Right now I have to resort to having someone with me to translate as I use the application.
What I'm hoping to do is develop an application where I can hover over/select a control and have the application translate the underlying text using Google (or some other translation software). I'm hoping this is somehow possible, as it would make my life a lot easier and increase my productivity, but I don't even know where to begin.
I've tried searching on Google with very little luck. The only thing I found that seems like it may be able to help is the System.Windows.Automation library, but I haven't found any examples that are applicable to my situation.
Is there someway that this can be done through a .NET application or an IE plug-in? Any suggestions or links to tutorials/examples on how I can get started on this would be greatly appreciated.
Thanks in advance for any help in this matter.
|
|
|
|
|
Isn't there a browser function/widget/thingy that acts as a magnifying glass, this may be the way to get the part of the screen under the mouse, grab that as an image, do a bit of contrast comparing to get the shapes, turning that into unicode may be a challenge, I expect Google has an api for their translate tool.
Just some thoughts, I have no idea whether all that can all be done and it may be simpler to internationalise the original app!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I wish they would just internationalize the application; I even offered to do it but they won't give me the source code (even though they know my long history of programming experience). The computer has IE10 on it and the only thing I see is a menu option that says "Zoom (100%)" but it is grayed out.
|
|
|
|
|
Am using Datagrid,where am getting an extra column header at the end.i bind the values from server to Datagrid thru 'Tag' property.How to remove the extra column header in this case.
|
|
|
|
|
A DataGrid Column could be hidden, but I dont think you can remove it...
|
|
|
|
|
The DataGrid by default generates its columns automatically. If you set its 'AutoGenerateColumns'-Property to False you can prevent this and maybe the extra column disappears by doing so.
Additionally you can define all the columns manually like so:
<DataGrid>
<DataGrid.Columns>
<DataGridTextColumn Header="Test" />
<DataGridTextColumn Header="Test2" />
</DataGrid.Columns>
</DataGrid>
If you disable auto generation and define your own columns there should appear no additional columns in the DataGrid.
|
|
|
|
|
Are WinForms components inside a WinformsHost element rendered with maximum possible z-index?
They always seem to overlap any WPF wlement, even with a higher Z-Index. Anyways to fix this? This is really causing much trouble when trying to embed a lengthy WinFormsHost component in a scrollable.
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
Source
modified 18-Jul-13 21:45pm.
|
|
|
|
|
It's called the Airspace issue. It's fixed in .NET 4.5.
|
|
|
|
|
XP doesn't support .NET 4.5. Does it?
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
Source
|
|
|
|
|
|
Pete O'Hanlon wrote: It's fixed in .NET 4.5.
Are you sure? From what I've seen, there was a fix in the beta, but they removed it from the final release.
1.3.10 Windows Presentation Foundation (WPF)
1.3.10.1 HwndHost feature has been removed from WPF in the .NET Framework 4.5 Beta
The .NET Framework 4.5 Developer Preview included a WPF HwndHost redirection feature. However, this feature had several known issues and has been removed from the .NET Framework 4.5 Beta. It will not be included in any future releases.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
You're right. Pete Brown, at Microsoft, promised me this would be in and as it wasn't something that I was affected by, I didn't follow up to see if it was delivered. This makes me pretty angry.
|
|
|
|
|
Pete O'Hanlon wrote: Pete Brown, at Microsoft, promised me this would be in
There's your mistake - never trust anyone called "Pete"!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
There's an excellent article here[^] on how to mitigate the airspace issue.
|
|
|
|