I need to save WPF FlowDocuments to SQL Server. What is the best format for doing that? String? Blob? Does it matter in a document less than 5K words or so?
Is it possible to set the BorderBrush property in a style, to the value of the BorderBrush property of an instance of another control?
Something like:
<Style x:Key="{x:Type Controls:TimePicker}" TargetType="Controls:TimePicker">
<Setter Property="BorderBrush" Value="[ElementName=txtText Property=BorderBrush]"/>
</Style>
…
I'm toying with a little 2D game engine in C# and decided to use Direct2D and DirectWrite for rendering. I know there's the Windows API Code Pack and SlimDX, but I'd really like to dig in and write an interface from scratch. I'm trying to do it without Managed C++, but Direct2D and DirectWrite don't appear to use traditional COM objects. They…
Hi,
I need to copy a few sample files from my app's resource folder and place them in my app's document folder. I came up with the attached code, it compiles fine but it doesn't work. All the directories I refer to do exist. I'm not quite sure what I am doing wrong, could someone point me in the right direction please?
NSFileManager*manager…
I have a class Something that implements ISomething. How can I convert/cast from an IQueryable<Something> to an IQueryable<ISomething>. When I try to cast, I am able to compile, but the result of the cast is always NULL.
I am having a problem using Visual Studio data driven testing. I have tried to deconstruct this to the simplest example.
I am using Visual Studio 2012. I create a new unit test project.
I am referencing system data.
My code looks like this:
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
…
I'm working on changes to an application to have a local data store instead of connecting directly to the database server. The client app will then sync changes both ways between the server database and its local data store. I'm trying to implement the syncing solution using Microsoft Sync Framework. To be clear there is no server…
Let me explain my question. I have a daily report about one PC's free space as in text file (sp.txt) like:
DateTime FreeSpace(MB)
----- -------------
03/01/2010 100.43
DateTime FreeSpace(MB)
----- -------------
03/02/2010 98.31
....
Then I need to use this file as input to generate a…
SELECT Question.userid, user.uid
FROM `question`
WHERE NOT `userid`=2
LIMIT 0, 60
INNER JOIN `user`
ON `question`.userid=`user`.uid
ORDER BY `question`.userid
returns Error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INNER JOIN User…
How come when I have a div style at display: block; float: right, in IE6 the div still goes under the text, and not in the middle of it just floated to the right. It works in all other browsers, including IE7+. I need to have display block because if i do display inline, then the menu inside the div is all messed up.
…
Hi folks,
after digging into this topic and having the requirement, that a single page should be totally cached, except for a
Html.RenderPartial("LogOnUserControl");
i couldn't find any working solution on this... the only "it getting warmer" thing i foudn was this solution , which unfortunately is not working with…
Hi,
I am doing a silverlight project in Silverlight 4 and I included the BlackLight project in my project so that I could use their new controls, especialy the dockpanel and the autoexpander, which is causing me at the moment some little problems.
What I would like to do is to have several auto-expander that will…
I created a WCF service and I planned to consume this in a Silverlight application. So I created the WCF service in the Website host project. The service is a simple WCF service that only returns a number - something like a Hello World WCF-SL.
So after adding a service reference in the silverlight client project to…
I'm using the following mapping:
public class LoadMap : IAutoMappingOverride<Load> {
public void Override(AutoMapping<Load> mapping) {
mapping.HasMany(x => x.Bids).OptimisticLock.None();
mapping.Version(x => x.Version);
}
}
But when I try to create the session I get the…
I'd like to perform efficient paging using containstable.
The following query selects the top 10 ranked results from my database using containstable when searching for a name (first or last) that begins with "Joh".
DECLARE @Limit int;
SET @Limit = 10;
SELECT TOP @Limit
c.ChildID, c.PersonID, c.DOB, c.Gender…
I have a block of text which occasionally has a really long word/web address which breaks out of my site's layout.
What is the best way to go through this block of text and shorten the words?
I have a WPF ListBox that I would like to
Enable multiple selection in the ListBox, and
Databind the ListBox to my view model.
These two requirements appear to be incompatible. My view model has an ObservableCollection<T> property to bind to this ListBox; I set up a binding in XAML from the property to…
Hi,
late considere i conider if got a table who got an Id and a clob content like:
create table v_EXAMPLE_L (
nip number,
xmlcontent clob
);
we insert our data:
Insert into V_EXAMPLE_L (NIP,XMLCONTENT)
values (17852,'delta548484646846484');
Insert into V_EXAMPLE_L (NIP,XMLCONTENT)
…
Hi,
I need to send a file to MobileMe via Cocoa. I stumbled across a .Mac framework from Apple but it hasn't been updated in years, so I don't want to use it due to possible compatibility problems it may cause. I think that the MobileMe.framework is private, so I don't think I can use it.
What kind of…
After tracing the DB activity from a DNN 5.2.3 site I noticed that there are numerous identical calls to the database whilst loading the home page for the first time (afterwards the caching works successfully).
//Procedure : Number of executions
exec dbo.aspnet_Membership_GetUserByName…
All,
A few of our internal users are editing one of our classic ASP sites (Not a SharePoint site) via Sharepoint Designer which I believe uses FrontPage Server Extensions.
I would like to give a particular user author rights to a single folder - ie, /products and any items and folders…