Page 1 of 1
Error CS0120 - object reference
Posted: Thu Sep 21, 2017 5:49 pm
by dire
I want to implement solution as is writen down in help file
Ajax by Server Events and Client Scripts -> Example 1: Auto-Fill synchronously
i just change the name of sql and select it self. Everything is at it's writen.
ew_SetClientVar("MyCustomSql", ew_Encrypt("SELECT UnitPrice FROM products WHERE ProductID = {query_value}"));
any idea?
Re: Error CS0120 - object reference
Posted: Fri Sep 22, 2017 10:56 am
by motfs
Try to modify the template file "aspxfn.cs" as follows (see the line marked with //***:
// Set client variable
//*** public void ew_SetClientVar(string name, object value) {
public static void ew_SetClientVar(string name, object value) { //***
Re: Error CS0120 - object reference
Posted: Fri Sep 22, 2017 11:20 am
by dire
Yep "static" did the trick.
Thanks