mysql - asp.net parameters in odbc -
I order a page 3 datacontrols (amount, datalist-> grid-> List View, select the feed in the next one) Works locally completely, using the dot-net connector for mysql. My webhost uses ODBC, and I had to remove [] with the selected statements in my code and put the table name. I [] and removed my page, and showed my 1 / fatalist control, but does not populate my grid control "selected value" My Datawadi.
I imagine theres handles a certain standards with the way ODBC is
The original for my grid.
& lt; ASP: SQLDataSource id = "recipegrid" runat = "server" ConnectionString = "& LT;% $ ConnectionStrings: exoticingConnectionString% & gt;" Provider Name = "& lt;% $ Connection Transiting: Exotic Connection String.Prand Name% & gt;" SelectCommand = Select "[id], [name], [time], [Pro], [Fat], [Carb], [fiber], [T], [sod] where [tblrecipes] ([filenameid] = @ File name) order by [name] "& gt; & Lt; SelectParameters & gt; & Lt; ASP: ControlParameter ControlID = "DataList1" name = "filenameid" property = "selectedValue" type = "int32" /> & Lt; / SelectParameters & gt; & Lt; / ASP: SQLDataSource & gt;
Example of changes to allow my page to run again:
selectcommand = "select tblrecipes.Id, tblrecipes.Name, tblrecipes. Cal, tblrecipes.Pro, tblrecipes.Fat, tblrecipes.Carb, tblrecipes.Fiber, tblrecipes.Chol, where tblrecipes ordered by tblrecipes.filenameid = @filenameid tblrecipes.name "& gt tblrecipes.Sod;
BTW,
I also tried to remove my script manager; Updatepanel, and I'm using autopostbacks instead of my controls, as if nothing else has changed, so I put it back.
changed: WHERE ([filenameid] = @filenameid)
From: WHERE ([Filenameid] =?)
And it worked
Comments
Post a Comment