This is driving me crazy! I have read at least 5 questions on here closely related to my problem, and probably 5 or so more pages just from googling. I just don't get it.
I am trying to have a jqueryui dialog come up after a user fills out a form saying 'registration submitted' and then redirecting to another page, but I cannot for the ...
I've started writing a Com addin for Excel 2003 using C#. I'm looking for a code example showing how to read in cell data from the active worksheet. I've seen that you can write code like this:
Excel.Range firstCell = ws.get_Range("A1", Type.Missing);
Excel.Range lastCell = ws.get_Range("A10", Type.Missing);
Excel.Range worksheetCells =...
if i run Server App. Exception occurs: on Dinle.Start()
System.Net.SocketException - Only one usage of each socket address (protocol/network address/port) is normally permitted
How can i solve this error?
Server.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
u...
I have a normal web service. Many java and .net users are accessing it. Can I update it to wcf without anyone having to change their code? Any tutorials?
...
We initially didn't use any logging or debug tracing but after spending few weeks to trace down some data corruption we decided to put required Debug.Write and Trace for production and Debug.Assert
So now question is What is the best practice to use debug and trace logging. I am just looking for some thing generic.
public void AddRecto...
I use OpenXml to create Word document with simple text and some tables under this text. How can I force Paragraph with this text to show always on new page? Maybe this paragraph should be some Header but I'm not sure how to do this.
Thanks
...
I get a strange exception when a window containing a GeckoWebBrowser is loaded.
This is the exception message:
An unhandled exception of type System.Runtime.InteropServices.COMException occurred in Skybound.Gecko.dll Additional information: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
This is the win...
Ok, im still a bit new to using nullable types.
I'm writing a reflecting object walker for a project of mine, im getting to the point where im setting the value of a reflected property with the value i've retrieved from a reflected property.
The value i've retrieved is still in object form, and it dawned on me, since i want my object w...
I need to solicit feedback about a recent security policy change at an organization I work with. They have recently banned the bin-deployment of DLLs to shared IIS 6 application servers. These servers host many isolated web application pools. The new rules require all DLLs to be installed in GAC.
The is a problem for me because I ...
I m trying to access a data after invoking a URL which redirects the output to another page with query strings.
ie:
$.ajax({
url: 'http://foo.com/results/bar.aspx?fooid = 123&more=1',
success: function(data) {
alert('Load was performed.'+data);
}
});
Reponse results empty. This URL is a redire...
If I'm using a .NET WebBrowser control, and I dynamically populate the HTML, JS content, what exactly are the rules for AJAX cross-domain requests? I know I don't technically have a domain since it's local content, but I'm not sure how the browser handles this.
...
I have a seperate Log4Net.config file. I added
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log4Net.config", Watch = true)]
to AssemblyInfo.cs
When I run the application with debug mode, lognet is logging. When i publish the application to IIS, lognet is not logging anything.
I have the followings also :
BasicConfigurat...
I am displaying a new Form from one process by passing the Show method the handle of a Form created in another process. I only want this new Form to display above the passed Form, like a MessageBox.
However, this newly launched Form appears above other application windows, despite:
Setting Process.WindowStyle.Hidden to the Form-disp...
I am just starting off with C#. I managed to get a list of running processes and getting a particular process ID. Can someone tell me how to get a list of files that are opened by a given process ID?
...
To pop-up a message box, I'm using MessageBox.Show(...). I usually wrap the call in an Invoke:
BeginInvoke (new Action (() => {
MessageBox.Show ());
}));
(I removed a part of the original question which was answered elsewhere)
Do I always need to wrap the MessageBox call in an (Begin-)Invoke if I'm calling from a non-GUI thread?
...
Hi
How can I do these 2 scenarios.
Currently I am doing something like this
public class Repository
{
private LinqtoSqlContext dbcontext = new LinqtoSqlContext();
public void Update()
{
// find record
// update record
// save record ( dbcontext.submitChanges()
}
public void Insert()
{
// make a dat...
These days I am interested in learning F#, and would like to use it for GUI applications. Unfortunately I have no previous background in .Net or C#. Are there any good resources (web sites, books) for learning this without going through C# first?
Many thanks in advance.
...
I have a set of numerical libraries in C++ and I want to call them interactively in a interpretive language like F# or IronPython.
So I have two choices now:
Compile the library in native DLL and use PInvoke to call functions in it.
Compile the C++ library to .Net dll using visual c++ (/clr:pure compile option).
The advantage of 1...
Does anyone have any ideas how I can reliably disable a FileSystemWatcher object when my application makes changes to the files in the directory, so that I am only watching for external changes to the directory?
I've tried setting EnableRaisingEvents to false immediately before performing a write and setting it back to true immediately ...
Hi All
I have been reading the articles on MSDN, but my mind is dead (this usually happens when I read MSDN (No offense MSDN, but your articles confuse me at times.)), and I'm trying to do some "background work" in my app, but not sure how. It's just a single method. But the application hangs, and I have to wait up to 1 - 3 minutes for ...