Hi,
You cannot , SqlCommands are not part of the Controls collection.
IMO your algorithm is not correct, you can create a SqlCommand inside a
method and get an exception from it. This instance is not a member of the
page.
Can you modify the code?
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Nawoct" <na****@gmail.com> wrote in message
news:11**********************@f6g2000cwb.googlegro ups.com...
Hi,
I am writing some debugging code for my company's web based C# system.
I am trapping errors and send emails to the dev team. What I would like
to do is to find each SqlCommand that is 'on' the particular page and
cycle through its params and get the values for each.
So if I have a handle on the page (I can cycle through the controls)
how do I get to the SqlCommands?
Tim