Ok Im building AN API but also wanting to have that API used by my own Application.
I am pondering WCF, LinQ and JSON for my Webservices and Data and Silverlight for my application.
I have a few questions.
1) would you recommend XML over JSON or Json over XML?
a) is Json going to transfer and deserialize faster natively or is XML g...
Consider this document structure:
<FlowDocument><Paragraph>loreM Ipsum</Paragraph></FlowDocument>
And my caret position is between 'M' and 'I' in the RichTextBox. How can I get the parent element from caret position? In this case the parent would be the Paragraph.
...
I am trying to host my site that uses DotNetOpenAuth (OpenID) behind ISA 2006 (reverse proxy), and after it authenticated with a provider (such as Google), and it returns with a URL with %253A in the URL. However, ISA HTTP filter rejects the request.
What I need to do is, on ISA web publishing rule, right click > config HTTP policy pro...
...and can those steps also be applied to a 3rd party assembly (that might already be strong-named)?
The context for my question should not be important, but I'll share anyway: I'm thinking of making a logger (or log-wrapper) that always knows what "log source" to target, regardless of whether the assemblies using it are in one appdomai...
It is fairly common to take an Expression tree, and convert it to some other form, such as a string representation (for example this question and this question, and I suspect Linq2Sql does something similar).
In many cases, perhaps even most cases, the Expression tree conversion will always be the same, i.e. if I have a function
public...
In my NAnt script I have a compile target that calls csc. Currently it fails because no inputs are specified:
<target name="compile">
<csc
target="library"
output="${umbraco.bin.dir}\Mammoth.${project::get-name()}.dll">
<sources>
<include name="project/*.cs" />
</sources>
<references>
<...
Hi guys, looking for opinions/recommendations/links for the following scenario im currently facing.
The Platform:
.NET 4.0 Web Application
SQL Server 2008
The Task:
Overhaul a component of the system that performs (fairly) complex mathematical operations based on a specific user activity, and updates numerous tables in the databas...
I'm using the MPXJ library in .NET for parsing MS Project (MPP) files, and it's working great. The one issue I'm having is trying to translate the task Start and Finish date into .NET DateTime to use with my data models.
I am going through all the tasks and calling task.getFinish() and task.getStart() that both return javva.util.Date o...
Is there any API or webservices that allows us to manage online Office web apps documents (on sky drive)?
What I would like to do is to use this API (or webservice) in order to create some reports in excel format without the need to use the HTML table trick, neither to have the Excel Com components installed on my server.
...
After converting my data access layer project from EntityFramework v1 to v4 a got a bunch of errors for each of the entity classes:
Error 10016: Error resolving item 'EntityTypeShape'. The exception message is: 'Unresolved reference 'NS.EntityName1'.'. DataAccessLayer\Model.edmx
and
Error 10016: Error resolving item 'AssociationCo...
Hello,
I have been doing a lot of work with WCF "self" hosted applications. I recently was requested to write a web service where the calling client was a Linux based program named "WGET". I would like to use WCF instead of a traditional ASMX web service. The web service is returning a standard XML response. I am not sure of the underli...
Hello,
In C#, .NET 3.5, in a Windows Forms application...
How does one get the integer count of the number of items that a given RSS url returns?
Example:
For my blog at: http://forgefx.blogspot.com/feeds/posts/default
The expected result would be: postCount = 25
Thanks!
...
Say the current date is 1st Mar 2010, I want to display it like this...
20100301 so like first 4 digits = year, 2 digits = Month, 2 digits = day
is there an easy way to do this?
...
As per MSDN, SqlDataReader.GetSchemaTable returns column metadata for the query executed. I am wondering is there a similar method that will give table metadata for the given query? I mean what tables are involved and what aliases it has got.
In my application, I get the query and I need to append the where clause programically. Using...
Hi all,
I have designed my DB using the ORM in VS 2008.
What is the best way to export this to an SQL server so it will create the tables and relations on SQL Server?
Thanks,
JD
...
Hi All,
I'm using .Net 4.0 parallel library. The tasks I execute, ask to run some other task, sometimes synchronously and sometimes asynchronously, depending on some conditions which are not known in advanced. For async call, i simply create new tasks and that's it. I don't know how to handly sync call: how to run it from the same threa...
I've been trying to figure this out all night, but I guess my knowledge of the .Net Framework just isn't that deep and the problem doesn't exactly Google well, but if I can get a nod in the right direction I'm sure I can implement it, one way or another.
I'd like to be able to declare a property decorated with a custom attribute as such...
How can i learn table Name in database an how can i learn any Table's Column name?
SELECT Col.COLUMN_NAME, Col.DATA_TYPE
FROM INFORMATION_SCHEMA.COLUMNS AS Col
LEFT OUTER JOIN INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE AS Usg ON Col.TABLE_NAME = Usg.TABLE_NAME AND Col.COLUMN_NAME = Usg.COLUMN_NAME
LEFT OUTER JOIN INFORM...
Can anyone expalin me how to dynamically ger the Role from a DB table instead of hard coding it in the code.
ClaimsIdentity outputIdentity = new ClaimsIdentity();
outputIdentity.Claims.Add(new Claim(System.IdentityModel.Claims.ClaimTypes.Name, principal.Identity.Name));
outputIdentity.Claims.Add(new Claim(ClaimTypes.Role...
How might one go about creating a Modeless MessageBox? Do I have to just create my own Windows Form class and use that? If so, is there an easy way of adding a warning icon (rather than inserting my own image of one) and resizing based on text volume?
...