Error CS0120 - object reference

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
dire
User
Posts: 41

Error CS0120 - object reference

Post 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?


motfs
User
Posts: 258

Post 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) { //***


dire
User
Posts: 41

Post by dire »

Yep "static" did the trick.

Thanks


Post Reply