Hi guys!
I'm working in a WCF project and we need to reuse some legacy components from vb6.
In the service, we need to mantain state for each user as we need to store one COM Interop object (per user) which is costly to construct. The project can grow in the future so it's possible we may need to use StateServer/SqlServer-based sessio...
I want to programmatically access Mail.box file in Domino Server.
Using C#.
Before opening it i was to see it's contents.
My question is that how can we open file with .box extension?
Especially Mail.box file in Domino Server.
...
I am using an active viewer component in my .net application to view a words document in my web application.
Now I want to print out the document appearing on the viewer component with java script. I am not able to print the document in the viewer. Any ideas
Many thanks in advanced
...
I have a user control with several child controls. I need the user interface to react to keypresses, so I decided to put the handling code in a MainControl_KeyDown event. However, when I press a key in my application, this event does not fire.
I have found a solution through a search engine which relies upon use of the Windows API, whic...
I was able to make a simple webpart by following what was on this website
http://www.codeguru.com/csharp/.net/net_asp/webforms/article.php/c12293/
But now I would like to add controls like TextBoxes, Buttons, TreeViews ...
How can I do that? The place I coded into was just a class library!! How can I use a designer and a page for coding?...
Hi,
Whenever I read an article on linq to entities, I sounds like I should embed my business logic in the generated entity-classes.
This would means that the "user" of the business-objects (controller, service-layer, ...) would have to know about the datacontext-object that's needed to use linq.
It would also mean that the DAL-logic a...
I have a table that could have thousands (millions maybe?) of records. It is basically an audit trail table that stores special log entries. It's called "Logs".
There is also a related table called "LogsExtended" which stores zero or many additional records for each entry in the Logs table.
There is a foreign key relationship setup, co...
I have a VS2008 solution containing two projects, a web service (the actual work I'm doing) and a web application (that I'm using to test the service). The latter has a "web reference" to the former. It is also set as the startup project, so that when I start debugging VS sets up two ports on localhost, one for the app (which runs its de...
I am trying to create a resizable GridView wrapped up as a server control. I am using the ResizableControlExtender from the AJAX Control Kit, which as far as I know requires that
the control that is to be resized
must reside inside a panel
the initial panel size
must match the initial target control
size.
I can do this happ...
What are the datatypes that can be returned by webservices and web methods?
...
i can save a file using savefiledialog . once the file is saved and if we edit it and then save it again then it should be saved without opening the savefiledialog.please help me with the code.
This code is made in Visual Studio 2005 in Windows forms.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using Sy...
I'm developing application in WPF but some components are written using WinForms. I wan't these components to pull key gesture from WPF part and convert them to Keys enum (used in WinForms).
Is there a built in converter for that? (probably not)
Do you know "easier than big switch case" method to do that?
...
Scenario: We have a server where there are multiple ASP.NET websites hosted on it. A few days ago quite a few of these websites "broke" with the following error:
Warning 44 Could not resolve this reference. Could not locate the assembly "AjaxControlToolkit, Version=1.0.10920.32880, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, ...
Hi
I create an Excel Workbook solution in Visual Studio 2008. When I build the solution I get a .XLS file and a .DLL (customize assembly).
I can now start up the Excel sheet just by double clicking on the .XLS and there is my sheet functioning with all my C# code.
But in cast of that customize dll unavailable. I start up Excel workboo...
I don't know how many times I've come across old code I've written and been able to replace it with a FCL class and halved the amount i needed to write,..but it's a LOT!
From simple things like StringBuilder and Path through to more advanced, less obviously useful types like TypeConverter and StackFrame.
I'm always on the look out to w...
I was reading a blog today (http://somewebguy.wordpress.com/2009/07/20/is-encrypting-your-web-config-a-waste-of-time/) about both how to encrypt your appsettings/connectionstrings etc. using the aspnet_regiis tool.
He has a follow up post with some feedback from others saying this is a waste of time.
My question is, what do you think?...
HI,
I have a .NET application which uses threads excessively. At the time of exit the process does not kill itself. Is there is any tool that can show what is causing the problem? although I have checked thoroughly but was unable to find the problem.
Abdul Khaliq
...
Hello Everyone...
i'm developing an addin for outlook 2007. i want to display a form on the main explorer window of outlook. i have created a commandbar with button ,i'm also getting button click event but not able to display if on explorer windows...
Thanks in advance
...
I am trying to do a simple JSON return but I am having issues I have the following below.
public JsonResult GetEventData()
{
var data = Event.Find(x => x.ID != 0);
return Json(data);
}
I get a HTTP 500 with the exception as shown in the title of this question. I also tried
var data = Event.All(...
What is the proper way to include an output of one build as a binary in another build?
Lets say I have a solution called CompanyName.Domain (my Domain Layer). I have it set up as a build and it builds nightly.
Now I want to add a solution called SomeProject.Web. And I want to include the binary out of CompanyName.Domin into a Binaries ...