Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a watch to a gridview update

Status
Not open for further replies.

Dashley

Programmer
Dec 5, 2002
925
US
Is there anyway I can add a watch or somthing to the like to a Gridview update statement? The GV is bound to a data source but its not updating the data.

I've chopped the update staement down to basics.

Code:
UpdateCommand="UPDATE freightloads SET quantity = @quantity WHERE indx = 4">


 <UpdateParameters>                               <asp:Parameter Name="quantity" Type="Int32" />
</UpdateParameters>


If I use just:
UpdateCommand="UPDATE freightloads SET quantity = 4
The data updates
If I change the statement back to the first one above the data won't update.
I've tried it with/wo brackets, used a ? oinstead of @ and every way that I could think of with no luck.
I'm using Sql Server for the back end & VS 2005
 
Disregard. I had another procedure fired from a page_load event repopulating the GV prior to the update. Duhhh.
 
Is there anyway I can add a watch or somthing to the like to a Gridview update statement? The GV is bound to a data source ...
This is why I always discourge the use of datasource controls. You CAN'T debug them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top