AI OnAI Off
Hi Anders Hattestad ,
Thanks for replaying quickly.Can you please provide us some sample code or a reference link, so that we know how to achive this?
public override System.Web.UI.Control GetControl(EPiServer.PageBase hostPage)
{
Control ctr=CreateYourControlHere();
ctr.ID="ThisIsAStaticID_EPiServer_DontProvide_One";
return ctr;
}
Hi again,
I have already added this in the class " DemoShow:IDynamicContent" as
public System.Web.UI.Control GetControl(EPiServer.PageBase hostPage)
{
var userControl = (UserControls.ViewClinic)hostPage.LoadControl("~/Templates/DynamicContent/aaa/view/ViewClinic.ascx");
return userControl;
}
Inside this usercontrol "ViewClinic.ascx", i have the repeater control and its child control(image button.). Still the item Command not firing..
And also this works fine in the development sever but not in the Production server.
Please get back asap....
Hi ,
No luck .. i added the id as
public System.Web.UI.Control GetControl(EPiServer.PageBase hostPage)
{
var userControl = (UserControls.ViewClinic)hostPage.LoadControl("~/Templates/DynamicContent/aaa/view/ViewClinic.ascx");
userControl.ID ="abc";
return userControl;
}
still the same result ... event (ItemCommand) not getting fired.
Hi ,
I don't think its b'cos of cache... i added a button inside repeater control and an event to that on click ="btnX_Click" like the one below.
protected void btnX_Click(object sender, EventArgs e)
{
if (e.CommandName == "UpdateRow")
{
------------------------works till here --------------
foreach (RepeaterItem ri in rcUnitsRows.Items) --->breaks here
{
}
"rcUnitsRows" which is my repeater control becomes "Null"..............
Hi,
We are using Episerver cms 6 and developed a dynamic content in which we have a repeated control .This repeter control has a image button in it,when we click on this image button the even is not fired but the page refreshes. Please let us know how to fix this issue ?