Cleaning a Place Holder from a class
Hello:
From a class I want clean a place holder contained in a web form.
Iâm using this code:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace WUC_CreDes
{
public class Class1
{
public static bool Hay_PostBack()
{
WUC_CreDes.WebForm1 parent1 = (WUC_CreDes.WebForm1) this.Page;
parent1.Example.Controls.Clear();
return false;
}
}
}
Where âExampleâ is my place holder within the web form.
When I compile my Project itâs sending me this error: âKeyword âthisâ is not valid in a static property, a static method or as startup of static fieldâ.
Does somebody has some idea about how can I attain it?
Thanks you in advance.
Greetings.
A.L.
El Hombre que tiene Amigos ha de mostrarse Amigo
__________________
El Hombre que tiene Amigos ha de mostrarse Amigo
|