This topic is locked

Error retrieving field value text

7/25/2013 9:03:50 AM
ASPRunnerPro General questions
M
mramalho10 author

As shown in the screenshot below, I'm trying to save the values ​​from the database of the form, when I use "banner.bannerid = values ​​(" bannerid ")" to retrieve the value entered in the field, does not retrieve the value, but when I put the value directly: banner.bannerid = 0 works, it works right. What is wrong?
use ASPRunner 7.0

Sergey Kornilov admin 7/26/2013

Button doesn't provide access to form fields via values() array.
You need to read the value of bannerid in ClientBefore event using Javascript API and then pas it to OnServer event.
More info and code samples:

http://xlinesoft.com/asprunnerpro/docs70/ctrl_getvalue.htm

http://xlinesoft.com/asprunnerpro/docs70/inserting_button.htm