I browsed the source code of FormsAuthentication, and noticed it ends in
context.Response.Redirect(strUrl, false);
The 'false' parameter stands for "don't terminate execution of the current page".
Why wouldn't a call to FormsAuthentication.RedirectFromLoginPage() need to terminate viewing the current page? What is the correct behavi...
Hi
I'm trying to get the html code of certain webpage,
I have a username and a password that are correct but i still can't get it to work,
this is my code:
private void buttondownloadfile_Click(object sender, EventArgs e)
{
NetworkCredentials nc = new NetworkCredentials("?", "?", "http://cdrs.globalpopsvoip.com/0000069/20091229/2009...
An upcoming project at work looks like it might involve Silverlight. We're a .NET shop without all that much Silverlight-experience, but it looks like we need to ramp up our knowledge for this.
So I'm wondering, what tools should we get?
We are using Visual studio 2008, and will most likely not be able to jump to .NET 4.0, although we ...
Is there an list of Contextual Information (ie ${longdate}, ${level}, ${message}) online? I want to set the log file in a folder the user's AppData\Local. Is it maybe ${appdatalocal}? And how would I access the file to send as an email attachment maybe like
message.Attachments.Add("${appdatalocal}\somefolder\Application.log")?
...
Hi,
I've recently wrote a C# console time tabling algorithm that is based on a combination of a genetic algorithm with a few brute force routines thrown in. The initial results were promising but I figured I could improve the performance by splitting the brute force routines up to run in parallel on multi processor architectures. To d...
Hi, I write applications for Windowe ME and CE in
C# .NET 2.0. Sometimes I’ve got problems because
applications don’t work on some navigation devices.
On Windowe ME it is not problem because .NET can be
installed from a cab, but on most Windows CE devices
it is impossible because after soft reset all changes
disappear. I found out that ...
I am having problems with XPathNavigator. I have a document with a bunch of "topic" elements w/o namespace in a stream.
I am using (expression dumbed down to bare minimum, first I thought my expressions were wrong):
XPathDocument xmlDoc = new XPathDocument( stream );
XPathNavigator xml = xmlDoc.CreateNavigator();
XPathNodeIterator iter...
I've recently moved my dev environment (VS.NET 2008 SP1 on VMWare) over to a new network, using a more restrictive firewall. During subsequent builds, the license compiler (lc.exe) took a long time to complete (several minutes). I assume it was timing out because it was not able to connect through the firewall, but I can see no evidence ...
In C#, I'm trying to take some random file selected by a user, and determine the Windows Association for the program.
I'd like to use this to provide some helpful information to the user about the program which will run.
This is a portfolio tool where generic files can be attached to a record.
...
I need to maintain distributed transactions in my application
Assume Service1 is installed on Server1
[ServiceContract]
IService1
{
[OperationContract]
Operation1();
}
Service2 is installed on Server2
[ServiceContract]
IService2
{
[OperationContract]
Operation2();
}
and the client is consuming the two services
usi...
I found architecture of Blogengine.net good and interesting. Are there other very well designed opensource web apps written in .Net ?
...
How to save email attachments to local hard disk in C#
...
Here's my context:
I am writing a WPF add-in for an application.
This Application's main thread is unmanaged.
I want to add a global exception handling system for this add-in to handle any unhandled exceptions.
Here's what I've tried but not working:
I cannot add a try-catch block to my Application.Run() code line. Because I am an ...
We are considering to re-implement or change our product (implemented in C#) to use SharePoint as a content manager and business process automation engine at the backend. This software mainly handles all the mailings, manages organization's various business specific worklfows and documents, and all these are connected (ie. from a mail a ...
In my current solution I have 18 projects and most of them have their own configuration files (app.config or web.config). Each project uses single shared BLL assembly. I'm using Autofac to handle dependencies but haven't come with a decent way of managing my configuration.
Configuration entries are roughly the same, but values are differ...
Hi I've deveoped a windows setup applicaiton using c#. When I try to install it in one of my friend's system it is asking about windows installer is not installed and .net framework also not installed messages.
How can I install those two things before I install my application. I want to integrate those values into my setup application...
Hi!
The case: there is a large zipped xml file which need to be parsed by a .NET program. The main issue is the too big size of the file so it can not be loaded fully in the memory and unzipped.
The file need to be read part by part in a way that after unzipping this parts they are "consistent". If a part includes only half of a node i...
I'm working on a C# .net project using Visual Studio 2008, so my question is specifically for this case. However, the question should be the same to many other environments, so I'll be glad to hear opinions from people in similar environments.
My solution is organized in several projects. All of which have some belonging unit tests. Th...
By best I mean:
Cheapest development cost (1.1 project is unlikely to live > 6 months)
Easiest migration to WCF or similar
By communicate between I mean:
Remote communication between computers
Most likely no firewall restrictions
With .Net 1.1 the options appear to be: sockets, remoting, and various flavours of web service.
The ...
I am looking at sharing my class library code between .NET 3.5 and Silverlight 3.
Since I am mainly developing for .NET, I am looking at auto-generating the Silverlight project file(s) from the corresponding .NET project file(s).
Thus, I have a T4 file, which complains in Silverlight with the following error message:
Error 1 Comp...