Call non-static function from static function
<p>I am not able to call a non-static function from a static function (or) i want to call a javascript function from static function.</p>

<pre><code>[WebMethod]
public static void add_items(string itemslist)
{
    get_price(itemslist); // Error An object reference is required for non-static

    //(or)
    ScriptManager.RegisterStartupScript(this, 
        this.GetType(), 
        "script", 
        "&lt;Script language='javascript' "
           + "type='text/javascript'&gt;message();&lt;/script&gt;", 
        false); //Error in this, this
}

protected void get_price(string item_id)
{

}
</code></pre>
