How can I read an XML attribute using C#'s XmlDocument?
I have an XML file which looks somewhat like this:
<?xml version="1.0" encoding="utf-8" ?>
<MyConfiguration xmlns="http://tempuri.org/myOwnSchema.xsd" SuperNumber="1" SuperString="whipcream">
<Other stuff />
</MyConfiguration>
How would I read the XML attributes SuperNumbe...
Does anyone know if these stats are collected or exist anywhere? Any anecdotal evidence is at least slightly helpful
...
I want to move through the pixels of an image, not by going line by line, column by column in the "normal" way. But begin at the center pixel and going outward in a spiral motion. But I'm not sure how to do this.
Any suggestions on how this can be done?
...
Are there any security issues keeping the .NET PDB files on the real server?
I know that throwing exceptions might take a bit longer , but who throws exceptions during normal execution anyway? :-)
But from a security perspective? any issues?
...
Hi all
let me know any tool to convert image file with text to word, txt or html...
Thanks in advance
Kishore
...
Hello;
I am trying to adapt a class to work with just finished that I am not able to solve the problem.
My question is how to identify the handle to close / / CloseHandle (handle).
My problem is that I am not able to adapt the following code.
for (Int32 i = 0; i < temp_items.Count; i++)
{
string conj_itens = temp...
I'm attempting to read from a serial port a byte at a time. I've got the following code in my Console app:
// Open the serial port in 115200,8N1
using (SerialPort serialPort = new SerialPort("COM1", 115200,
Parity.None, 8,
StopBits.One))
{
se...
Given a filename, how do I efficiently search for that file on disk?
(Visual Studio 2005, i.e. .NET 2.0)
...
i have this scenario:
[Flags]
enum Colors : long
(
red = 1,
blue = 2,
green = 4,
yellow = 8,
)
DataTable dt = new DataTable();
dt.Columns.Add("PersonName", typeof(string));
dt.Columns.Add("CheckOption", typeof(bool));
dt.Columns.Add("Colors", typeof(long));
// note that the values in the Colors column are enumed values...
I have previously used webdav to access the sent messages on an exchange 2003 server based on the subject and time and this has worked.
I now need to implement another feature which means dragging a message from client outlook (not web access) on to a windows form then querying webdav on exchange to get all the information about this me...
Hello there,
My application is multithreaded it has f.ex 25 active threads, and each thread pushes it status to list view item by delegate.
example:
private delegate void SetBackColorDelegate(int index, Color color);
private void SetBackColor(int index, Color color)
{
if (listView1.InvokeRequired)
{
...
I am starting to develop mobile apps in Visual Studio and I wondering if someone could suggest what 3rd parties controls would be the best choice. I tried the standard controls in VS but they are not of much help. I know there is a toolkit from Resco and ComponentOne. Any experience with one of those? Thank you!
...
Is there a way to get the program that is locking a file, in vb 2005?
For instance, when I try to open a file that is already opened by another program, can I get the name of the process/program that has locked this file?
...
What is the maximum memory the garbage collector can allocate for a .NET process? When i compile to x64, Process.GetCurrentProcess.MaxWorkingSet returns about 1,4GB, but when i compile to AnyCPU (x64) the same number is returned. For x64 it should be more like the "Limit" value that is displayed in the Task Manager. How can i get the cor...
Sorry for the bad title of the question apologies if it's a duplicate.
I have two db tables:
Users Documents
------- ---------
ID ID
Name DocumentName
UserID
Say I have 1 record in Users
1, "bob"
and three related records in Documents
1, "Do...
I keep getting errors like this on one of my sites. It tends to happen randomly throughout the day any for periods in the night when I would not expect users on the site.
It is always from different ip addresses
System.Web.HttpException: Invalid
viewstate. at
System.Web.UI.Page.DecryptStringWithIV(String
s, IVType ivType) at
...
i try to generate some codes in web service. But returing 2 error:
1) List is a type but is used like a variable
2) No overload for method 'Customer' takes '3 arguments'
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
public class wstest :...
Look please my web service codes return type List
i get data from web service with listformat List; also created a gridview below and return list to gridview datasource.Bur eror occurs:
A field or property with the name 'name' was not found on the selected data source.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns...
Is there any way to convert a collection of objects into a single new object using LINQ?
I want to use this within another LINQ to SQL expression.
...
I am working on an application that loads plugins at startup from a subdirectory, and currently i am doing this by using reflection to iterate over the types of each assembly and to find public classes implementing the IPluginModule interface.
Since Reflection involves a performance hit, and i expect that there will be several plugins a...