Current row in C#

T

Thierry

Hi,

I have some problem to select my current row in C#!

I have an OnAfterChange events on an attributs ID

How I can put one of the repeativive node that is contain this ID in a
IXMLDOMNode?
<ex>
<toto ID="1">Eat</toto>
<toto ID="2">See</toto>
<toto ID="3">Yeah</toto>
</ex>

I have try:
e.source.parentnode.xml that give me ID="2"!

If I try:
e.source.parentnode.parentnode.xml

Visual studio send me an error: Object instance not set to an instance
of an object!

How I can make for select all in my Node for put this in a IXMLDONNode?

Thanks
 
F

Franck Dauché

Salut Thierry,

What happened to your Nickname?

Did you try to start from: e.Site.selectSingleNode(".."); to go up one level
first?

Franck
 
T

Thierry

Merci beaucoup!

I have search one hour on this!!!

It's really simple in fact I don't have think to try in this way! Je me
suis borné a essayé avec parentnode et j'en ai oublié l'autre
possibilité offerte par selectsinglenode!


Thanks a lot!

++

Thierry

P.S. for my nickname I have two account one with my mail and one with
gmail and I have post with the other I believe! I change it back now!
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top