monkeymagic2222
Technical User
Hi,
Is it possible to bind a TextBox in an InsertItemTemplate to the results of an SQL Query?
All I want to do is insert a new record into a database (using DetailsView) but I want the first textbox (FleetNo) to automatically be populated with the result of another sql query (all it does is a max of the FleetNo field and adds one to it).
Now I know I could do this automatically with SQL by setting Identity to on but I need to be able to give the user extra flexibility as theres the chance the FleetNo won't always be the next available number.
I am using VB.NET and Visual Studio 2005.
Thanks in anticipation!
Is it possible to bind a TextBox in an InsertItemTemplate to the results of an SQL Query?
All I want to do is insert a new record into a database (using DetailsView) but I want the first textbox (FleetNo) to automatically be populated with the result of another sql query (all it does is a max of the FleetNo field and adds one to it).
Now I know I could do this automatically with SQL by setting Identity to on but I need to be able to give the user extra flexibility as theres the chance the FleetNo won't always be the next available number.
I am using VB.NET and Visual Studio 2005.
Thanks in anticipation!