blah blah blah is here! blah blah » Close

0
votes
1 answers

Linq question to extract items

I have the following: <emphasis role="bold" xmlns="http://something> <emphasis role="underline">Bold with underline</emphasis></emphasis> I am trying to use linq to extract the words &q ...

0
votes
0 answers

Silverlight 4.0 question

I have developed Silverlight 4.0 applications, but never done the deployment etc and had a few questions. 1) How do you deploy the application to a webserver (Directories to deploy to and certain files I need to copy,etc)? 2) Does the ...

0
votes
1 answers

Checking a filesize limit?

I want to make sure when a user selects a file, that it does not exceed 10 meg. I have: int _maxFileSize = 10240; OpenFileDialog dlg = new OpenFileDialog(); if ((bool)dlg.ShowDialog()) { if (dlg.File.Length > _maxFileSi ...

0
votes
1 answers

C# how to use linq query to get column types

I have the following: Dictionary<int, List<DataRow>> fundValues What I need is based off the very first record for a column called "ValueFooted", I need to find out the type this column is (already know it is a ...

0
votes
1 answers

Need help with Linq to remove an xml tag

I have the following: <section name="Test"> <Statement Type="XX"> <Names> <Proper Name="My Name" /> </Names> <AccountPeriods> <Period Ty ...

0
votes
1 answers

Can an enum be passed a string and pass back a string?

I need a enum where I pass in "IBM" and it passes back "I.B.M", etc.. Is this possible?

0
votes
1 answers

String format for textbox

I have a textbox that will contain decimal values. I currently have String.Format("{0:0,0,0.00}" which displays my commas, but what I want is to show the commas when it doesn't have focus, but when it has focus, to remove the ...

0
votes
1 answers

Need help to convert PDF to string?

I need help with converting a PDF file into a string object. I first have the following to convert to a byte array: byte[] byteArray=null; byteArray = File.ReadAllBytes(filepath); Now I need to take that byteArray and since it is in a m ...

0
votes
1 answers

Problem with endpoint

I am working on a Silverlight 3 project and added a Service Reference, however when trying to instantiate the client I am getting an error: "Could not find default endpoint element that references contract 'ABC.TEST123' in the Service ...

0
votes
1 answers

Silverlight 2.0 question to dynamically change Grid.Row location.

I have a label control that is part of a grid and has the current value at design time: Grid.Row = "6" What I want to do, is when a user presses a certain button to change it to: Grid.Row = "2" Thanks

0
votes
1 answers

Write input XML back out to output XML

I have an XML file being read in through a XmlTextReader and going through a while loop. I just want to write the results of the file out in the while loop, eventually I will need some other special processing. I have: XmlTextWriter textW ...

0
votes
1 answers

Help needed with Web Services authentication

I'm new to creating Web Services in Visual Studio 2005. I want to implement Active Directory as the patter for direct authentication. My question is, when an XML file is coming across the wire with the username/password supplied within it ...

0
votes
1 answers

How to create a web service in VS 2008?

I need to create a web service in VS 2008, some examples I have seen say to put an http: in the "Location" field, which turns off the OK button and then some say to just fill the "Location" field with a spot for the proj ...

0
votes
1 answers

XDocument.Parse issue with Data at root level

I have the following in a method, the method has a string being passed called "xmlfile", which is an xml file. XDocument xmlMyData = XDocument.Parse(xmlfile) When it gets to this line it says: "Data at the root level is in ...

0
votes
1 answers

Silverlight 2 question

I am just starting out on Silverlight 2 and have Visual Studio 2008, however when I try to create a new project, I'm not seeing the "Silverlight Project" as an available template. I know I have Silverlight 2 installed, as I see i ...

Feedback