I’m interested to hear peoples preferred methods or approaches to implementing the search results from a Google Search Appliance into an existing website. More specifically how do people prefer to implement/embed the search results into their existing site and persist the surrounding website elements (menus, membership etc) around the se...
Hi,
We are migrating a .Net windows application to Windows 7. This application can be used in multiple languages, but only English is installed by default. There is a menu item that allows users to download additional languages.
This application is using the standard .Net satellite resources folder organization: http://msdn.microsoft.com...
I'm looking for a list of reasonable use cases of putting attributes in a parameter.
I can think of some good cases for attributes in a method, but can't seem to see a good usage of a parameter attribute. Please, enlighten me.
And what about attributes on the return type of a method?
...
VS2010 Threads window shows 25 threads and Process.Threads.Count.50
What are the other 25 are doing?
...
Per MSDN, calling Type.GetMethods() stores reflected method information in a MemberInfo cache so the expensive operation doesn't have to be performed again.
I have an application that scans assemblies/types, looking for methods that match a given specification. The problem is that memory consumption increases significantly (especially ...
I'm looking at trying to start a process from F#, wait till it's finished, but also read it's output progressively.
Is this the right/best way to do it? (In my case I'm trying to execute git commands, but that is tangential to the question)
let gitexecute (logger:string->unit) cmd =
let procStartInfo = new ProcessStartInfo(@"C:\Pr...
Hi,
How can I change the HttpContext.Current.Request.UserAgent property using reflection?
Thanks
...
Pretty simple test:
[TestClass]
public class MyTestClass
{
private TestContext _testContext;
protected TestContext TestContext
{
get { return _testContext; }
set { _testContext = value; }
}
[TestMethod]
[HostType("ASP.NET")]
[UrlToTest("http://localhost/MyPage.aspx")]
public void TestMyPa...
I've hit a snag. I am trying to use WatiN to upload a file. I can load the upload box, but it quickly disappears. The last line of my code at the moment is:
ie.FileUpload(Find.ById("profile_file")).Click();
It loads the dialog to select a picture but disappears. Is it possible to set the path of the box automatically example, load "C:...
Currently we are doing a payroll application in Microsoft Visual Studio 2008 (.Net 3.5) using some of the latest features like WCF, WF and the development for the same has almost completed.
However, clients have shown their interest in migrating the developed payroll application in Microsoft Visual Studio 2008 (.Net 3.5) to Microsoft V...
I'm trying to create a LINQ query (or queries) that count the total number of occurences of a combinations of items in one list that exist in a different list. For example, take the following lists:
CartItems DiscountItems
========= =============
AAA AAA
AAA ...
I'm building a windows mobile app. And using SqlCe.
I'm looking for a good sql query builder. So instead of writing "SELECT COLUMNS FROM TABLE WHERE etc...
Is there a good free library that can build this sort of query?
EDIT:
You know when you write your code with ADO.net something like this
SqlCeCommand command = new SqlCeCommand(...
I'm trying to load an assembly that was installed as part of .Net 3.5 SP1 using Assembly.Load() by referencing its strong name. This works fine on my computer right now, but is it future proof?
Will the strong name of core .Net assemblies change when patches are installed or new versions of the .Net framework are released?
Edit: If .Ne...
How can you tell the difference between a request going to 127.0.0.1 and localhost.
This line of code on Windows 7 and VS2010 built-in web server can not tell the difference.
if (Request.ServerVariables["SERVER_NAME"].ToLower() == "localhost")
{
}
try hitting your own built-in web server with:
http://127.0.0.1/
and then
http://local...
I've made a class that is a cross between a singleton (fifth version) and a (dependency injectable) factory. Call this a "Mono-Factory?" It works, and looks like this:
public static class Context
{
public static BaseLogger LogObject = null;
public static BaseLogger Log
{
get
{
return LogFactory...
Anyone know if there is a more "up to date" way of enumerating all available SQL Server instances via .Net, i.e. without using System.Data - DataTable/DataRow bits.
SqlDataSourceEnumerator sqlEnumerator = SqlDataSourceEnumerator.Instance;
DataTable dt = sqlEnumerator.GetDataSources();
foreach(DataRow row in dt.Rows)
{
Console.WriteL...
I want to download VS 2010 Ultimate through my MSDN licence, but I don't see one for the 64-bit. There's Visual Studio Team Foundation Server 2010 (x86 and x64) - DVD (English), but is that just the server or can I use it for dev too?
...
right now I am working on a tool that does a lot of work via the Process object through the command line. So there are times when I want the command window to not show up and times when I want it to stay open so that the user can see what happened, possibly respond with the appropriate input.
Dim pro As New Process
pro.StartInf...
Hello everybody,
I have looked some videos and read some articles about MVC, MVP, MVVM. I think, that I understood basic principles and differences. But it seems to me that samples in articles and videos are very easy.
I think that it's easy to learn how to apply these patterns when you can look on some projects.
So I'd like to look ...
I have two GraphicsBuffer in c#, I want to take XOR of both the buffers and stored in third variable. Kindly guide me so that I can make it possible.
...