I would like to simulate "Publish..." menu item from WCF Service project (or ASP.NET Web Application or...) context menu in Visual Studio 2008. I do not have a need to publish it to a running IIS instance, just to put the web content together with bin folder on some local dir. Is there any way to add it in post build events, or as a MSBu...
HI All,
i wish begin to work about a feature new for me ,i'n my project i have a database( with SqlServer) and an application (developing in WPF) the purpose of this application is to manage/handle about Accountancy and other Departement,so i created a Passwords and Roles(for Users) to access in the application ,now i will create a syst...
What problems will I have if I change my Entity Framework queries from this:
var contracts = from contract in Context.Contracts select contract;
to this:
var contracts = from contract in Context.Contracts select new MyContract{ Key = contract.key, Advertiser = new MyAdvertiser{ Key = contract.Advertiser.Key } };
i.e. Changing from ...
My situation:
I have a .Net Windows application in VB.Net
I'm upgrading from .Net Framework 1.1 to 2.0
I'm using Infragistics NetAdvantage 2004 Volume 3
My issue:
I have an object hierarchy that looks like this, where ArrayListOfBand1Objects is my DataSource for an UltraWinGrid:
ArrayListOfBand1Objects [ArrayList]
[Band1Class]
C...
Hi folks,
I'm using the OleDbConnection class to retrieve data from an Excel 2000/2003 workbook:
string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=" + filename + ";" +
"Extended Properties=\"Excel 8.0;IMEX=1\";";
OleDbConnection connection = new OleDbConnec...
I am creating a regex library to work with HTML (I'll post it on MSDN Code when it's done). One of the methods removes any whitespace before a closing tag.
<p>See the dog run </p>
It would eliminate the space before the closing paragraph. I am using this:
public static string RemoveWhiteSpaceBeforeClosingTag(string text)
{
...
We are currently looking at either using CAB or MEF for our next application. I didn't see any examples on codeplex of how event brokering is handled for sibling control communication, maybe I missed it. How does inter-control communication work in MEF?
Also, we are planning on using Infragistics which has provided additional compon...
I've been writing a C# .NET application. i'm using WinForms.
so, I've some forms that load really slowly especially due to the fact that they fetch some data from some XML files and display them in ListBox controls.
What I'm asking is : how do I make the forms load faster. or how do I proceed to show some image of rotating wheel (the on...
Hey all,
I've got a bit of a dilemma where I need a list of all the country names in German. I can get this info for English using the following code but I'm not sure how to do it for German. Any ideas?
Dim countries As Generic.List(Of String) = New Generic.List(Of String)
For Each ci As Globalization.CultureInfo In Globalizati...
The code is fairly simple --- the issue is that there is an invalid character in the groupPath string (a '/' to be exact).
What I'm trying to do (at least as a stop gap) is skip over DirectoryEntries that I can't get the cn for --- regardless of why.
However when I run this code the catch block doesn't run and I get instead:
The server...
What materials do you recommend for an experienced ASP.NET to learn ASP.NET MVC?
...
I'v been able to return a HashTable from a Web Service that I setup for a .Net 2.0, but the service fails to retun a DataTable in JSON. I keep getting the following error: 'A circular reference was detected while serializing an object'. Any tips?
[WebMethod(EnableSession = true) ]
public DataTable getSavedAddresses()
{
DataTable ...
I am following the tutorial here: http://www.aspfree.com/c/a/XML/Applying-XSLT-to-XML-Using-ASP.NET/2/
The tutorial shows how one converts xml to html via xslt. Unfortunately, one of the first steps is to "Drag an XML control from toolbox on to the webform". Which section of tools is this and which control are they talking about?
...
I've been tasked with creating a simulation of people moving around. It could be a bunch of people walking through a restaurant or exiting a school. Searching around, I've found a bunch A* related stuff which is fine for one person but I will have a bunch. Is there a standard library people use for this stuff? Or a kind of algorithm ...
I have two bitmap images. One contains a picture taken with a usb camera. The other will contain a shape, like a rectagle, but it can also be a trapezoid, or lets say, a random shape with only one color in it. The rest of the image is white right now.
The two images aren't of the same size but scaling algorithms aren't the most difficul...
I get an exception from .net process that is using interop call to win32 api function.
I have a debugger attached and I want to see the value of LastError.
Is it possible to see the value of LastError from Visual Studio debugger?
Two notes: The process that throws the exception is not mine and I can't modify its source code to get the...
Hi, I have a WPF Hyperlink that I am able to click and get it's NavigateUri property just fine. However, I want to be able to bundle some additional information with the Hyperlink so I can process it in my event handler. This is how it looks right now:
<TextBlock Grid.Row="0">
<Hyperlink ToolTip="{Binding Path=Contact.ToolTipPerso...
I am trying to read a binary file with the BinaryReader class, and I need to read it in as blocks of UInt32, and then do some bit shifting etc. afterwords.
But, for some reason bit order is reversed when I use the ReadUInt32 method.
If I for example have a file where the first four bytes looks like this in hex, 0x12345678, they end up ...
How do I detect if an arbitrary user is an administrator on a machine? I have the user's domain and username but not password. The user is NOT the currently logged in user, so I can't just use WindowsIdentity.GetCurrent.
...
I have a modal form with a single instance of the built-in .NET 2.0 tab control. The tab control has several pages, and on one of them is a combo box that isn't populated until the user activates it for the first time. When that happens, I handle the DropDown event and run a process that takes several seconds, then I add the items return...