This value is for a time out in some automation I'm working on. that bit me a while back and I don't remember how I solved it (I know it was probably not pretty[:$]) but now I do... Cheers, Al Dass What's funny (and frustrating) about this is.... [: O] But, Grid View and Details View are all working and happy together, now. Master ALDass , a little out of the time , but thank you very much for your previews detailed and methodic post , I found them very useful using VS 2008 with . In Visual Studio, for the Sql Data Source Update Query parameters collection you have to add one parameter for each parameter in the update query but the name of the parameter (and this is the key point) must be just the column name without the ? Using this, all my update queries make it to the server with the values in the formview fields. The server's My Sql version, or my My Sql ODBC provider version may be different from what you used. The key requirement, as you said, is the name of the asp:parameter being just the column name without the ? Also, I don't know if this was true in your case but the order of the asp:parameter elements has to match the order of the '? Edit: Just realized schido was using the My Sql Connector /Net instead of the ODBC connector, which probably explains the differences. I had to go into the properties for that column and set the Data Format String to a numeric general format value (I know, it seems so obvious now). and also for the info about mixed string/int columns... I refreshed the schema of the form in design view and scratched my head for a bit until I realized that I needed to go back and set the formatting. NET assign values on bound fields (in my case I am using a Form View) to the parameter collection of the update query. Saludos, This was a key to solving my problem, which is updating a Form View using the ODBC connection to a remote server My Sql database.If we can do that, we can build the query in vb and put it in the sqldatasource. However, the posts in this thread have helped me sort it out and get my Grid View working, and this is what I did. Visible = True ' force databinding Customer Detail. In sqldatasource_rowupdating event : dim sql as string="Update Table set field1=" & Modified Value & " where field0=value" sqldatasource.updatecommand=sql If you can't grab hold of the title name with the request object then you might just have to parse the column out of the name and go from there or maybe even try doing it by index #... Also, just in case you don't know, turn on page tracing so you can see exactly what variable names the server is recievign on a post. I had been using the format '@variable Name' but that doesn't work. Although I haven't found direct information on the '@' not working with My SQL queries, it definitely doesn't work for me. ' notation and Update Parameters tags, which works for me with the code below. " Select Command="SELECT DISTINCT Client ID, Company, Name, Address1, Address2, City, State, ZIP, Country Code, Email, Phone, Fax, Web Site FROM client ORDER BY Company" Update Command="UPDATE client SET Company=? Data Bind() ' update the contents in the detail panel Pnl Customer Detail. Show() End Sub Public Sub Ods Customer Detail_Selecting(By Val Sender As Object, By Val e As Sql Data Source Selecting Event Args) 'Object Data Source Selecting Event Args) e. Any help in getting the delete and insert functions working properly would be greatly appreciated. " Delete Command="DELETE FROM zen_orders WHERE id=? u problem occur den ask me freely Hi, Hope someone here will help me... Hide() ' add the css class for our yellow fade ' The control I want to send data to ' The data I want to send it (the row that was edited) ' refresh the grid so we can see our changed script Manager. " So it is taking the insert value literally rather than as a parameter. )" configure your data source and then enter ur connection string through wizard then u must select the table u want to show in grid after that u can enter the query through query builder.. The Bind("User Name") will get the username from the database and display it on the screen and it will also send the username back to the database when you update.Now, consider a situation where you don't want to display the username from the database but you want to display the current user in the txt User Name Text Box.
Does anybody know how can I get the modified value for a field? I don't have it figured out yet, but they block the variables from being posted or something. This has been bugging me for a few days now as I too have got into the same problem. LF Public Sub Gv Customers_Selected Index Changed(By Val sender As Object, By Val e As Event Args) ' set it to true so it will render Customer Detail.
This is exacly what I am trying to achieve and I am so close to a solution.
I am very new to and have tried what you suggested.
' in the XXXCommands and the lack of the INSERT: “ERROR  [My SQL][ODBC 3.51 Driver][mysqld-5.0.45-log]You have an error in your SQL syntax; check the manual that corresponds to your My SQL server version for the right syntax to use near ''44', 'name? I downloaded that driver, registered the binaries, and placed them in the bin folder.
In Visual Studio, for the Sql Data Source Update Query parameters collection you have to add one parameter for each parameter in the update query but the name of the parameter (and this is the key point) must be just the column name without the ? Using this, all my update queries make it to the server with the values in the formview fields. Anyway, I think the major issue is the comment from my post: Note: the My SQL Connector/ODBC 5.1 connection, the use of only the '?