Click here to Skip to main content
15,890,345 members
Home / Discussions / C#
   

C#

 
QuestionSystem Modal Form in .NET Pin
Lav Pathak1-May-06 5:37
Lav Pathak1-May-06 5:37 
AnswerRe: System Modal Form in .NET Pin
Josh Smith1-May-06 6:09
Josh Smith1-May-06 6:09 
GeneralRe: System Modal Form in .NET Pin
Lav Pathak1-May-06 6:22
Lav Pathak1-May-06 6:22 
GeneralRe: System Modal Form in .NET Pin
Josh Smith1-May-06 7:11
Josh Smith1-May-06 7:11 
AnswerRe: System Modal Form in .NET Pin
Ravi Bhavnani1-May-06 7:23
professionalRavi Bhavnani1-May-06 7:23 
GeneralRe: System Modal Form in .NET Pin
Dan Neely1-May-06 7:48
Dan Neely1-May-06 7:48 
AnswerRe: System Modal Form in .NET Pin
S. Senthil Kumar1-May-06 6:56
S. Senthil Kumar1-May-06 6:56 
QuestionConverting the XML form of resultset to string in C# Pin
PrashantJ1-May-06 5:11
PrashantJ1-May-06 5:11 
Hi,

In my C# application I am trying to execute a SQL query, transform the query results (using XSL) returned in a form of XML, and ultimately want the resutlset as a string in resultSetToAscii. I have started working on C# very recently, so I am sure that I am doing some silly mistake. Basically my code fails in the 3rd line here and the error desc is "Data at root level is invalid". Anybody any ideas?

XPathDocument destination;
XPathDocument source;
source = new XPathDocument(new StringReader("//row"));
destination = new XPathDocument(_xsl.Transform(source, null, (XmlResolver)null));

XPathNavigator nav = destination.CreateNavigator();
{
XPathNodeIterator iterator = nav.Select("//row");
while (iterator.MoveNext())
{
foreach (Field field in _destinationFields)
{
string data = "";
if (field.name != null)
data = iterator.Current.GetAttribute(field.name, String.Empty);
resultSetToAscii = data.PadRight(field.size, ' ');
}
}
}

AnswerRe: Converting the XML form of resultset to string in C# Pin
Guffa1-May-06 5:23
Guffa1-May-06 5:23 
GeneralRe: Converting the XML form of resultset to string in C# Pin
PrashantJ1-May-06 5:27
PrashantJ1-May-06 5:27 
AnswerRe: Converting the XML form of resultset to string in C# Pin
Guffa2-May-06 11:08
Guffa2-May-06 11:08 
QuestionHow to determine what encoding a file has Pin
WCup1-May-06 4:11
WCup1-May-06 4:11 
AnswerRe: How to determine what encoding a file has Pin
Dan Neely1-May-06 4:39
Dan Neely1-May-06 4:39 
GeneralRe: How to determine what encoding a file has Pin
WCup1-May-06 4:48
WCup1-May-06 4:48 
GeneralRe: How to determine what encoding a file has Pin
Dave Kreskowiak1-May-06 6:41
mveDave Kreskowiak1-May-06 6:41 
QuestionC# Dialer Application Pin
Ashwani_kumar1-May-06 3:49
Ashwani_kumar1-May-06 3:49 
QuestionC# GDI+ Pin
codebala1-May-06 3:31
codebala1-May-06 3:31 
AnswerRe: C# GDI+ Pin
Josh Smith1-May-06 4:03
Josh Smith1-May-06 4:03 
GeneralRe: C# GDI+ Pin
codebala1-May-06 5:29
codebala1-May-06 5:29 
GeneralRe: C# GDI+ Pin
codebala1-May-06 7:08
codebala1-May-06 7:08 
AnswerRe: C# GDI+ Pin
kasik1-May-06 5:13
kasik1-May-06 5:13 
GeneralRe: C# GDI+ Pin
codebala1-May-06 5:22
codebala1-May-06 5:22 
QuestionDifferent exception handling behavior when running application in standalone mode instead of from visual studio Pin
Dan Neely1-May-06 3:23
Dan Neely1-May-06 3:23 
AnswerRe: Different exception handling behavior when running application in standalone mode instead of from visual studio Pin
Drew McGhie1-May-06 4:45
Drew McGhie1-May-06 4:45 
GeneralRe: Different exception handling behavior when running application in standalone mode instead of from visual studio Pin
Dan Neely1-May-06 5:08
Dan Neely1-May-06 5:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.