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) { }
Protected void btn_click(object sender, eventargs e) { method1(); } public void method1() { // here i want to invoke that paging event. }
ListView2_PagePropertiesChanging(null,null);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)