This topic is locked

BIND Parameter

2/26/2007 11:03:22 AM
ASPRunner.NET General questions
M
mickj author

I am evaluating ASP Runner.Net 3.0 ( Build 89) compiling for .net framework V2

I have created my site using a MS Access DB and I can log in OK.

I have a number of vegetable products in the database that I would like my various Store Managers to keep a record of when they receive deliveries from ouir suppliers and how many of each.
After logging in (also via an MS Acess DB) I am able to see the grid of items and there is an option to Add New record)

When I click on that, I receive the below message.
=================
Parser Error Message: A call to Bind was not well formatted. Please refer to documentation for the correct parameters to Bind.
Line 154: <asp:TemplateField HeaderText="28 lb Potatoes">

Line 155: <InsertItemTemplate>

Line 156: <asp:TextBox id="fld28_lb_Potatoes" Text='<%# Bind("28 lb Potatoes") %>' runat="server" ></asp:textbox>Â

Line 157:

Line 158: <asp:RegularExpressionValidator runat="server"
====================
I cannot find any refernce to this in the help files or within the forum and I'm, guessing this is an .NET issue, but wehre to start looking is a mystery. I v=can find references within MSDN but they make little sense to someone like me without a Degree in Microsoft Technology <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=4708&image=1&table=forumtopics' class='bbc_emoticon' alt=':o' />
The site has been created by using all default settings etc and just settings obvious parameters to make it work ( up to this stage)
Anyone any ideas what this BiND parameter is telling me and where it may be fixed?

Regards

Mick

Eugene 2/27/2007

Bind method doesn't support field name with spaces. Please rename field "28 lb Potatoes" to "28_lb_Potatoes" in database and rebuild the project in asprunner.net

M
mickj author 3/8/2007

Bind method doesn't support field name with spaces. Please rename field "28 lb Potatoes" to "28_lb_Potatoes" in database and rebuild the project in asprunner.net


Many thanks.

Eventually got around to doing this.

Your suggestion worked perfectly and as a bonus I can rename the Fields in STEP 7 and it still works with the resulting pages displaying the field names as something more sensible.

Thanks again

Mick