In my database I have a field that is storing a simple string. The user can edit it, as it will be used as the text on a button later.
The storing of the string is working fine, but when I try to pull the string out again in case the user wants to edit it, the code behind is showing me the error:
Cannot implicitly convert type 'store.storeProductsDataTable' to 'string'
I have an XSD with a super basic get statement to retrieve the text and the field in the database is flagged as type text. Like I mentioned, it’s storing the string great. Also on the same page, it successfully retrieves the product’s name, description, price, etc using the same method.
All I am trying to do with the string is apply it to a textbox with the following code:
customBuyNowText.Text = pdb.getBuyNowText(pID);
Any suggestions on what I could be missing for it to cause this error?
I’ll try this yet again in C#: if it’s a datatable, try: