Link to home
Start Free TrialLog in
Avatar of MCallas
MCallasFlag for United States of America

asked on

How do I write a SQLDataSource Update Command to the Screen for Troubleshooting?

Hi,
I've got an sds update command that is not updating the underlying db nor is it throwing any errors. I would like to print the update string to the screen after it generates so I can see why the update is failing. The command is in sds located in the aspx file.
Thanks.
Avatar of gopaltayde
gopaltayde
Flag of India image

If I understood the question correctly then you want to print the update commad on the page for troubleshooting. Can we try Response.Write(Sqldatasource1.UpdateCommand.ToString()); or just check with the sql server profiler whats going wrong.
ASKER CERTIFIED SOLUTION
Avatar of MCallas
MCallas
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MCallas

ASKER

No sense in beating a dead horse here. Thanks anyway.