or
Hello;
As I have been looking for multiple articles on saving history when performing partial postbackand then pressing back / forword buttons the state of the form reset , most of the examples make ajax request on the same page.
We are using telerik controls 2011 Q3
In my case; we redirect to anther page (as shown in the link below ) sample project and then when we press back button the form is empty or gets loaded like a new request.
Please find the attached project and advise
Appreciated
Thanks
protected Repeater ImageRepeater;
ImageRepeater.ItemTemplate = new ImageTemplate();
ImageRepeater.DataSource = ImageTable;
ImageRepeater.DataBind();
class ImageTemplate : ITemplate
{
Image ToolImg ;
RadToolTip ImgToolTip;
public ImageTemplate()
{ }
public void InstantiateIn(System.Web.UI.Control container)
{
Image Img = new Image ();
ToolImg = new Image ();
Img.DataBinding += new EventHandler(Img_DataBinding);
LiteralControl StartDiv = new LiteralControl("<
div
style=\"float: left; padding-left:10px;\">");
container.Controls.Add(StartDiv);
container.Controls.Add(Img);
ImgToolTip = new RadToolTip();
ImgToolTip.Width = Unit.Pixel(300);
ImgToolTip.Height = Unit.Pixel(300);
ImgToolTip.TargetControlID= Img.ClientID;
ImgToolTip.IsClientID = true;
ImgToolTip.Controls.Add(ToolImg);
container.Controls.Add(ImgToolTip);
LiteralControl EndDiv = new LiteralControl("</
div
>");
container.Controls.Add(EndDiv);
}
void Img_DataBinding(object sender, EventArgs e)
{
Image Img;
Img = (Image )sender;
RepeaterItem container = (RepeaterItem)Img.NamingContainer;
Img.ImageUrl = "/_layouts/images/jobsarathyDemo/TempImages/"+DataBinder.Eval(container.DataItem, "ImageName").ToString();
ToolImg.ImageURL = "/_layouts/images/jobsarathyDemo/TempImages/" + DataBinder.Eval(container.DataItem, "ImageName").ToString();
}
}