Hi guys:
Could you expand on why the output of Console.WriteLine(m.Groups[1]); would be "Contoso, Inc"?
And could you also elaborate on the matching steps of this example? Thanks.
PS: I'm not familar with the concept of groups
string input = "Company Name: Contoso, Inc.";
Match m = Regex.Match(input, @"Company Name: (.*$)");
Conso...
Hi all
I am trying to use DevExpress with vs2010 , and got that error .
It comes from line private DevExpress.XtraTreeList.TreeList treeList1;
But I have already a Reference to that DevExpress.XtraTreeList.v9.3 and have there copy
local flag set to true.
How i can solve that issue ?
...
I have a function which requires to be run in STA apartment state. I wan't to check if it is being run as STA, and if not spawn a new thread which runs in STA.
How can I check which apartment state the current thread is being run in?
...
I am a web and mobile application developer and I prefer to use MVC frameworks for development. I have just started to a desktop application (in C#). Application development is not a problem. I had written various desktop application before but they were for personal use or for small companies.
Is there a good open source project that I...
How to make exported .XLS file Editable
Thid code makes .XLS File Read Only
:(
using System;
using System.Data;
using System.Configuration;
using System.IO;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
p...
Hi all,
I created a custom http module and want to add this module to the web config. The web application is a project that contains several "sub applications". A sub application is just a folder, and within that folder it has its own web.config. I'm doing this so each application has its own application related contents, stylesheets, c...
we have some problems with serializing an empty list.
here some code in .NET using CF 2.0
//Generating the protobuf-msg
ProtoBufMessage msg = new ProtoBufMessage();
msg.list = new List<AnotherProtobufMessage>();
// Serializing and sending throw HTTP-POST
MemoryStream stream = new MemoryStream();
Serializer.Serialize(stream, msg);
byte[]...
Please provide a sample stateful webservice in java which would be accible in both java and .net clients.
...
Cant display the video in Silverlight.Which i saved in sql server and retrieve it from database as byte[] and subsequently convert it as Stream and put as SetSource of Media element.But cant display anything.
Plz help me.
Like this:
MediaElement SoundClip = new MediaElement();
SoundClip.SetSource(stream);
SoundCl...
Hi,
I want to trace all the parent controls of a control
(e.g) if i have a form which contains panel which in turn contains another panel which contains button,
i want to trace all the parents(form,panel,panel) from button
how to do that?
...
This is one of those subjective community wiki questions (hope you don't mind), but recently I have been doing a lot of work on the WCF front and specifically hosting in IIS (not self hosting).
Is it just me, or does anyone have issues fine tuning timeout values. I'll start by mentioning the sheer number of timeouts you need to fine tu...
Hi Folks,
This one goes round and round I know but I can't seem to find a satisfactory response.
Should assemblies go in the GAC? These questions: when-and-when-not-to-install-into-the-gac and What are the advantages and disadvantages of using the GAC, address exactly that but the answers are very much "it is recommended that..." or "y...
How can we find how many columns and rows are there in the html file ? How can we count that how many td tags are there in the html file ?
...
I am serializing an object, which has several sub-objects(which are also serializable). Can i check the size of the stream in between the serialization process? ( I just want to limit the size of the stream to which i am serializing )
...
i am developing a chat application i need a javascript function to open seperate window for each online users now i am using following javascript code
var myWindow;
function openWindow(url)
{
var width = 700;
var height = 500;
var left = parseInt((screen.availWidth/2) - (width/2));
var top = parseInt((screen.availHeight/2) - (height/...
Hi Folks, I'm trying to track down a memory leak in an application using ANTS profiler. I tracked it down to the Garbage collector where we have a list of objects System.Transactions.SafeIUnknown that sit there forever in the garbage collector, are in the finalizer queue but never get released.
I can find not documentation what so ever ...
Hi Guys,
Eg:-- When I type "A" all the elements starting with A should be displayed... If "B" then elements with B....etc)
Ex:
<asp:DropDownList ID="ddlLocation" style="width:140px" runat="server">
<asp:ListItem Value="1" >India</asp:ListItem>
<asp:ListItem Value="2" >India - Hyderabad</asp:ListItem>
<asp:ListItem...
I need to schedule windows service on daily basis at pre-defined time to run and then sleep till the next day, How can i do that?
Solution:
Added a timer to timeout every 30 minutes and then validate if the time of the day has reached, if yes then perform the desired function, make sure that, mark a flag once its done for the day.
...
I have a standalone winforms application localized in 4 languages. For authentication and security reasons, I had to embed the main control in internet explorer (to be able to use an authentication session cookie created earlier when the user sign-in with his browser).
I embedded the control in IE by making my assembly and main control ...
I'm a rookies of EF so, sorry for my perhaps foolish question.
I've 2 entities without any relationship (VS does not load the join and I can't manually add it because the primary key of the child uses a derivated key of its parent).
Example
Entity master
Products
keys GKey_K, Product_K
fields .....
Entity detail
GenericInformation
...