I need to design a "Conditions of Use" dialog that is presented to users after they logon to Windows XP. It must not allow the user to proceed until they check an "I agree" box. It must not be possible to shut it using Task Manager or any other method. And it should be fullscreen and modal. The "I agree" will remain checked automatically...
I wrote this for finding the sql server instances on the local machine:
using System;
using System.Data;
using Microsoft.SqlServer.Management.Smo;
namespace Application3
{
class Program
{
static void Main(string[] args)
{
string srvname = string.Empty; string srvnames = null;
DataTable...
I left the .net about 3 years back when I was working on .net 2.0. And in these three years I wasn't working on .net at all. Now, I have got a project which is in .net 3.5. But I have noticed there are a lot of technologies introduced between these two versions.
Is there any resource which can help me to quickly grasp the things which a...
Hi guys
I have just started using OutputCache on some of my controller actions and I am not quite getting the response I would expect.
I have set the cache time to 5 minutes and the Expires header is coming up the same as the Last-Modified header which is the time that the request was made.
This is the header I am currently getting:
...
Hello everyone,
I want to know whether unhandled exception will make WCF service crash. I have written the following program which shows unhandled exception in a thread started by WCF service will make the whole WCF service crash.
My question is, I want to confirm whether unhandled exception in threads (started by WCF service) will mak...
Hello everyone,
I am using VSTS 2008 + .Net + C# 3.5 to develop WCF service (self-hosted as a Windows Service). From client side, I am using ChannelFactory to connect to WCF service. My confusion is, when I change client side code from "public string response" to "public string responseAliasName", the value of responseAliasName is null....
I'm creating a client to visit a website and log in + do some tasks automatically, however they recently updated their cookies to (for whatever reason...) contain a comma inside their identification cookie.
So for example, the Cookie will have a value similar to this:
a,bcdefghijklmnop
The problem is, according to msdn you can't use...
I'm getting the following error from my WCF service which is returning the results of a query in C# objects.
The maximum message size quota for incoming messages (131072) has been exceeded
I know how to resolve this via MaxReceivedMessageSize What I'm looking to find out is how do I find out what contributes to the message size. It do...
I'd like to define a delegate that takes a couple of dates, an unknown number of other parameters (using the params keyword), and that returns a list of objects;
Func<DateTime, DateTime, params int[], List<object>>
Visual Studio doesn't like the syntax which is making me think this isn't allowed. Can anyone tell me why?
...
Note:
Using Windows Forms
preferably C# .NET
Question:
Best method for implementing a drag-over-window tool, similar (or identical) to that featured in process explorer, to obtain the process ID corresponding to the selected Window
...
My .NET application needs to access specific file types without searching the entire system. So, I would like to implement a file indexer so that I can access the list of files of a particular type easily. Which is the most optimal way to save the file details for faster searching based on file types.
Is there any free library available...
Hello everyone,
I am using Silverlight 2 + VSTS 2008 + C#. And I downloaded source code from the popular sl2videoplayer, http://sl2videoplayer.codeplex.com/ then I build the solution and then using IE to open default.html. But no video is played, here is the error message from IE and screen snapshot from IE. Any ideas what is wrong and ...
I need to write an application (not a sevrice or web service) that consumes messages from an MSMQ 4.0 queue and want to make use of 4.0's features such as poison message handling. I see a lot of examples of WCF Services to consume messages from MSMQ queues, for example http://www.devx.com/enterprise/Article/39015, is this the sort of th...
I've set MaskedTextBox's Mask to: "Fl\air H\al ###.## , something here: ####.##"
When user inputs the value final text looks something like this:
Flair Hal 987.67 , something here: 1234.12
What will be the best way to extract 976.67 and 1234.12 from the MaskedTextBox's Text. I am looking for a List which will have all the values of th...
Hello everyone,
I am using Silverlight 2 + VSTS 2008 + C#. And I downloaded source code from the popular sl2videoplayer, http://sl2videoplayer.codeplex.com/ then I build the solution and then using F5 to debug (IE tries to open default.html). But seems the page cannot be opened, here is the screen snapshot. Any ideas what is wrong?
htt...
I have a set of Folders(in Resources) which contains the Configuration files,I need to save this folder in the User's path.(if they don't have) for this reason only i added the Folders in Resources. Do anyone have any idea on how to save the Files in the Resources.
...
I need to be able to detect whether the current language my user is viewing is an RTL (Right To Left) language like Arabic, so I can include a specific CSS file in my pages.
At the moment I'm just detecting this based on the language code of the CultureInfo object, but there must be a better way?
...
Hi,
I need to submit data from a form to an SQL2005 database via a stored procedure. The difficult part is that i also need to get 5 random records from a secondary table and insert these as part of the inserted record in table 1.
My structure is akin to this:
Tbl_Organisations (table to get the 5 random records from)
Key | organis...
We are developing a web service in .Net, and our client would like the responses of the service to be encoded in something other than UTF-8. Is it possible?
This page seems to indicate it is not possible, but I'd like a second opinion.
The service is an asmx webservice. We are considering switching to WCF if it's the only way to go, b...
Currently I just have a file like this that I manually parse into a Dictionary:
str1=Hello
str2=World
This is no longer practical for several reasons:
I need lists of strings that I can access by index
I want to split the key value pairs into groups
I consider using XML now because:
Good for key value pairs and groups
I could us...