|
Does the node which causes the error contain child elements? The MSDN documentation for the XmlReader.ReadElementContentString method states:
This method reads the start tag, the contents of the element, and moves the reader past the end element tag. It expands entities and ignores processing instructions and comments. The element can only contain simple content. That is, it cannot have child elements.
It also states that an XmlException exception will be raised when calling this method if the current element contains child elements.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
hello
I want to catch any value in the datareader begin with a special string
Sysdiagrams, if i the value begin with cath it'll be rejected
any idea will greatly appreciated
Thanks in advance
Assaf
|
|
|
|
|
you may use the string as an array ...
like arrayName[indexValue]...
and 2nd option is use a char pointer..and again you can manipulate is
as an array
rao
|
|
|
|
|
The obvious choise would be to filter out the records in the SQL query, so that the don't end up in the result in the first place.
If you absolutely don't want to do that, you can use the StartsWith method of the string class.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Thanks StarWith is the choice
Assaf
|
|
|
|
|
how to use rss feeds in desktop applications in c#..
i have beeb trying to do so by using webbrowser control available in c#
but it just opens the website, not the rss feeds..
i tell u ..how i tried .
i gave in url .....http://rss.news.yahoo.com/rss/science
but in response some html displayd..
plz help me...
rao
|
|
|
|
|
|
creating 2-dim array from 1 -dim array
Gaurav
|
|
|
|
|
just like building a proper question from words
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
mav.northwind wrote: just like building a proper question from words
These days with things like google translator, it should be rather doable
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
G.K.M. wrote: creating 2-dim array from 1 -dim array
Yes? And what is your question? If you want to create a 2 dimensional array out of a 1 dimensional array, it can be done, but why?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
i need to know how it can be created because it was asked in written test of a company
Gaurav
|
|
|
|
|
How to convert a user control created in .Net Windows to an Active - X control.
How to use the user control in an ASP.Net application.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Did you consider using the search function[^]?
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
how can i make a web application ..I have to make a project of web messenger...???
|
|
|
|
|
First you write the code, then you compile it.
We help people with their code, your question is way to broad to hope to get an intelligent answer. You want to make a chat app like gchat ? You'll need to learn AJAX and perhaps ASP.NET.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
phizza wrote: how can i make a web application ..I have to make a project of web messenger...??
1. Design it
2. Code it
3. Compile it
4. Debug (hopefully not too much if you did step 1 and 2 very well)
5. Deploy it.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi
I have seen applications that have a popup dialog that displays help tips on how to use that application.
My question is: Is there a generic name for this dialog so I can search the web and find a snipit of code that does this?
I thought I saw this in visual studio as a template but I can't find it now. Using C# now this may be why.
thanks
Mike
|
|
|
|
|
tool tips.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I think of 'tool tips' as the popups over buttons when the mouse hovers.
this is a dialog box that lets you click next to see the application help tip. the dialog also has a check box to 'not show again at startup'
What this called???
|
|
|
|
|
You're thinking about the "Tip of the day" dialog box.
Virtual1ty "Any fool can learn from his own mistakes, but a wise man learns from mistakes of others"
|
|
|
|
|
Ah - it's just a dialog box, there's nothing to look up. You just need to impliment a setting to not show it again and a collection of items to show on it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
mikep1998 wrote: Is there a generic name for this dialog
It is your basic dialog box or form. Nothing super fancy about it. You have it get called up when the program starts and have a checkbox if the user doesn't want to see it again. This would require having some kind of datastore to save the configuration.
mikep1998 wrote: find a snipit of code that does this
You could get away with using the splashscreen template and tweak it a bit.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi there,
i have a problem in calling method on one form from another active form
for example
i have three forms
first form shows second form like this
form2 fr = new form2();
fr.ShowDialog();
second form have a method "filldata()" and an event handler, the event handler shows third form like this
form3 fr = new form3();
fr.ShowDialog();
now i want to call "filldata()" method on form2 from form3
can someone tell how can i do that...??
thanks
Becoming Programmer...
|
|
|
|
|
Set up delegates between the forms. There are many articles on this here on code project.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|