Code Behind repeater / WebartA
Override OnInit Event
protected override void OnInit(EventArgs e) { RequestStockHelper.Add("WebPartB", this); base.OnInit(e); }
Code Behind UserControl / WebpartB
Called ReloadData() from another webpart.
protected void LinkButton1_Click(object sender, EventArgs e) { CMSAbstractWebPart webpart = RequestStockHelper.GetItem("WebPartB") as CMSAbstractWebPart; if (webpart != null) { webpart.OnContentLoaded(); } }
Thats all.
By Mohd Zulkamal
NOTE : – If You have Found this post Helpful, I will appreciate if you can Share it on Facebook, Twitter and Other Social Media Sites. Thanks =)
0 comments:
Post a Comment