see07
Regular
Hello:
From a class I want clean a place holder contained in a web form.
Im 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 its 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.
From a class I want clean a place holder contained in a web form.
Im 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 its 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.