I am trying to consume data from a webservice published by a 3rd party. I have a SDK win-app that is able to call the service (from my dev machine) and get results, but a web-app (running on the same machine) which has the same code, is getting nothing back.
My question is:
Is there a difference (from the server's prospective) as to...
The .NET libraries do an excellent job at resizing images that look great:
Bitmap newImage = new Bitmap(newWidth, newHeight);
using (Graphics gr = Graphics.FromImage(newImage))
{
gr.InterpolationMode = InterpolationMode.HighQualityBilinear;
gr.DrawImage(srcImage, new Rectangle(0, 0, newWidth, newHeight));
}
One problem I'm ha...
I am just browsing the code in the SQLHelper Class V2 and I notice the following
public static int ExecuteNonQuery(SqlTransaction transaction, CommandType commandType, string commandText, params SqlParameter[] commandParameters)
{
if( transaction == null ) throw new ArgumentNullException( "transaction" );
if( transaction != null &...
Generally speaking, Will a .net winforms application work in a 64-bit OS or does it need to be modified?
...
In c#.net I have the following DataSource setup that I am trying to dynamically assign a WHERE clause to in the code behind...
<asp:LinqDataSource ID="LinqDataSource1" runat="server"
ContextTypeName="MyNameSpace.DataClasses1DataContext"
TableName="MyTableWithADateTimeColumn" >
</asp:LinqDataSource>
The code behind looks som...
We are importing from CSV to SQL. To do so, we are reading the CSV file and writing to a temporary .txt file using a schema.ini. (I'm not sure yet exactly why are are writing to this temporary file, but that's how the code currently works). From there, we are loading a DataTable via OleDB using the following connection string (for ASCII...
Well I have a Pop up in the WebBroswer control of the .NET Framework that I capture with the NewWindow event handler like so.
WebBrowser w = new WebBrowser();
SHDocVw.WebBrowser_V1 web = (SHDocVw.WebBrowser_V1)w.ActiveXInstance;
web.NewWindow += new SHDocVw.DWebBrowserEvents_NewWindowEventHandler(web_NewWindow);
The new Popup is in a ...
Hello,
I would like to create a .NET application that utilizes multiple instances of the WebBrowser control. The catch is that I'd like each web browser control to be running it's own session. IOW, I have a requirement that the collection of session cookies, javascript global namespace, etc. is separate for each instance and that all ...
This question is along the lines of http://stackoverflow.com/questions/371088/html-table-horizontal-spacing
We have an old code base and can not use css. When an entire column in a table is empty, the resulting table is very ugly. We have a text email solution that adds spaces to the end up a word up to the remaining set of characters...
I'm currently converting a small WPF project to MVVM. I have a List<CustomObject> in the ViewModel of the main window that my ItemsControl binds to and uses a DataTemplate to build the UI of each element. My old code used an event handler inside the DataTemplate to handle a click event. I want to use some kind of command binding to el...
I have a WinForm application querying SqlCe database using typed-dataset tabledapters. I have a main form assembly and a database assembly which handles every db operation. I'm having problems with updating using tableadapter in a transaction and I'd appreciate if anyone could give me any ideas why.
Update() method gives this error:
"...
I am checking out the code in the reflector, but I haven't yet found out how it can enumerate through a collection backwards?
Since there is no count information, and enumeration always starts from the "start" of the collection, right?
Is it a drawback in the .NET framework? Is the cost higher than regular enumeration?
...
I have a set of .NET components that were developed long ago (1.1). I would like to continue to provide them for 1.1 for any clients that need that version, but also offer versions - in some cases the same code, in some cases with enhancements - for .NET 2 and for .NET 3(.5). In each later case, I might want to take advantages of newer f...
I'm working on a WCF service that requires Membership and Profile access.
I got the Membership stuff working by using System.Web.Security.Membership class and calling CreateUser() and ValidateUser() but i can't get the Profile to work. I don't even know what class to call, all the samples that i have seen are for ASP.net like the one i ...
VS 2005, C# 2.0, .NET 2.0/3.0, Win2003
I'm trying to install a set of performance counters for a MultiInstance. I noticed that some system performance counter categories manage to keep a "total" alive even when there are no other instances. ASP.NET Apps 2.0.50727 is an example.
So I've been trying to duplicate this. I created the follo...
I am writing jquery ajax code to call wcf service.
In this case WCf returns html as string.
Some how when data is back in jquery it is in {d:"data"} format, What is this d element?
below is code
$.get('<%= ResolveClientUrl("~/AjaxServices/ListingBrowse.svc/GetNewsHTML") %> ',
null,
function(data) {
a...
I can't find the effective policy viewer tool for enterprise library 4. All the links I find on the net point to source I have to compile against entlib 3 dll's.
Does anyone know where I can find the updated tool? Or does the old one work and can someone provide the binaries?
...
I want to be able to store information about a song that has been opened using my application. I would like for the user to be able to give the song a rating and this rating be loaded every time the users opens that file using my application.
I also need to know weather I should store the ratings in a database or an xml file.
...
Hey guys,
I want to write a simple DSL in C#. Nothing too complicated. I'm looking for the .NET equivalent of Lex & Yacc. The easiest one I've found so far is GOLD Parser builder. The other choice is to use the lex & yacc available with F#, but I'm not keen to program in F# right now.
If you have any suggestions for the .NET version of...
I'm looking for a .NET component that free and include the following features:
Real-time syntax highlighting (HTML, VBScript,..)
Intellisense (I can build my own intellisense library)
Line number
I found ScintillaNET from
http://scintillanet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=15804
but I wonder if there is a better...