hello, the below event hadler invoke th btn2 clickevent, when you click btn_click.
protected void btn_click(object sender, EventArgs e)
{
EventHandler handler = btn2_click; // Where Foo is the event name
if (handler != null)
{
handler (this, e);
}
}
protected void btn2_click(object sender, EventArgs e)
{
Response.Write("hello");
}
likewise, i need to invoke this below event handler. I tried this like above.But It throws an error.
protected void ListView2_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e)
{
}
i need to invoke that ListView2_PagePropertiesChanging inside the another method of clickevent. like below.
Protected void btn_click(object sender, eventargs e)
{
method1();
}
public void method1()
{
// here i want to invoke tha ...
Go to the complete details ...