I'm working on a piece of software that needs to copy a file to a given directory on the filesystem. It needs to work on both UAC-aware OSs (Vista, 7) as well as XP. To get around the issue of writing to a directory where UAC elevation is required, the app actually kicks off another process with a manifest that states that UAC is require...
I have the following
<ul>
<li>Main
<ul>
<li><input type="checkbox" onclick="$.SelectChildren(this);" /> parent 1
<ul>
<li><input type="checkbox" onclick="$.SelectChildren(this);" />sub 1</li>
<li><input type="checkbox" onclick="$.SelectChildren(this);" />sub 2
<ul...
I have a Win7 PC and have all of a sudden gotten the "Specified method is not supported" error when calling Membership.GetUser, etc methods. On another dev machine, the same project (WPF in SVN) executes fine. We're referencing the same System.Web.Security (2.0) dll in the GAC. How do I fix this ghost error?
...
I have an application using Fluent NHibernate on the server side to configure the database. Fluent uses Lazyloading as default, but I explicitly disabled this as this gave me problems when sending the objects to the client side. Obviously the client can't load the objects lazily as it doesn't have access to the database.
Now I try reen...
Possible Duplicate:
How do I remove diacritics (accents) from a string in .NET?
I have the following string
áéíóú
which I need to convert it to
aeiou
How can I achieve it? (I don't need to compare, I need the new string to save)
Not a duplicate of How do I remove diacritics (accents) from a string in .NET?. The accept...
Hello,
I have to develop a .NET C# application that supports plugins. I’ve found a lot of information on the internet and it doesn’t seem to be so hard.
I just have a specification that the Assemblies of the modules must be validated on the assembly level. When the late binding occurs and the assembly loads, the host application must b...
Hi all, I am relatively new to the wonderfulworld of Solr and have the following question. What is the best way to process documents in terms of extracting the document structure and passing it onto Solr for indexing.
I would like to be able to extract the text from Word Docs, PDF's, Spreadsheets, HTML pages etc. In fact virtually any d...
I am reading an excel file in C#.NET. The data is being read successfully but there is problem with some hyperlinks stored in the excel file.
I can read their text but i dont know how to get the underlying link/url of the column.
I couldnt find much help on google as well. if someone has worked in a similar situation please let me kn...
Hi all,
I have some XML:
<metadata>
<dataIdInfo>
<idCitation>
<resRefDate>
<refDate>1996</refDate>
<refDateTyp>
<DateTypCd value="007" />
</refDateTyp>
</resRefDate>
<resRefDate>
<refDate>1998</refDate>
<refDateTypCd>
<DateTypCd value="003" />
<...
I'm writing a sample console application in VS2008. Now I have a Console.WriteLine() method which displays output on the screen and then there is Console.ReadKey() which waits for the user to end the application.
If I press Enter while the Console.WriteLine() method is displaying then the application exits.
How can I clear the input ...
Say I have a non-.NET app which needs to write data to be deserialized by a .NET app via DataContractSerializer. Where's the specification describing the exact format necessary?
Such a spec should describe a lot of stuff, including:
Does the order of sibling elements matter?
Should the xml namespace URIs always begin with http://schem...
I've had been told that since .net linq is so slow we shouldn't use it and was wondering anyone else has come up with the same conclusion, and example is:
Took 1443ms to do 1000000000 compares non-LINQ.
Took 4944ms to do 1000000000 compares with LINQ.
(243% slower)
the non-LINQ code:
for (int i = 0; i < 10000; i++)
{
foreach (MyLi...
how can i add text to a legend from code behind
...
I have a
string word = "degree/NN";
What I want is to remove the "/NN" part of the word and take only the word "degree".
I have following conditions:
The length of the word can be different in different occasions. (can be any word therefore the length is not fixed)
But the word will contain the "/NN" part at the end always.
How c...
This is one of the entries I have in a huge XML file of over 200 such entries.
<TradeFills>
<TradeFill>
<Broker>xxx</Broker>
<CustomerAccount/>
<qwFillTransID>xxxxxxxxxxxxxxxxxxx</qwFillTransID>
<qwPrevTransID>xxx</qwPrevTransID>
<qwGroupTransID>xxxxxxxxxxxxxxxxx</qwGroupTransID>
<GroupTransID>xxxxxxxx</GroupTransID>
<Tra...
I have this in a VB.NET console application:
Dim p As ProcessStartInfo
p = New ProcessStartInfo(Environment.CurrentDirectory & "\bin\javac.exe",ClassName & ".java")
Dim ps As Process = Process.Start(p)
This does run the java compiler on the file, but it does so in a new window. I want the output from javac to appear in the same conso...
I've been reading Scott Guthrie's post on Passing ViewData from Controllers to Views, but I don't think the lesson is clicking for my specific situation.
(Note: Due to client proprietary restrictions, I can't talk paste the actual code, so I apologize if my made up case is a bit stupid/confusing.)
I have a Controller called ScenarioCon...
When I run a stored procedure that does
truncate table TargetTable;
WITH TyreDimensionList as
(
SELECT
col1,
col2,
col3
FROM Table1 t1
INNER JOIN Table2 t2
ON t1.col1 = t2.col1
)
Insert into dbo.TargetTable
(
col1,col2,col3
)
SELECT
col1,col2,col3
FROM ...
I have a Windows form (.NET 3.5) that contains a propertygrid control. The propertygrid control gets refreshed periodically do display any changes that may have occurred in the class which it represents. I want the refresh to only occur if the user is not currently editing a property in the grid. Is there a way to detect if the user is c...
difference between type conversion and type casting?
ii will be better if you make it by an example..
...