Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > HTMLPlaceHolder > Html place holder (Back, Forward, Refresh)

Not answered Html place holder (Back, Forward, Refresh)

Feed from this thread
  • MOHAMMAD avatar

    Posted on May 26, 2011 (permalink)

    Hi Telerik

       I need to make a functionality of refresh, back and forward on HtmlPlaceHolder control, I need also to be able to know id back and forward  allowed

    Reply

  • Kiril Stanoev Kiril Stanoev avatar

    Posted on May 28, 2011 (permalink)

    Hi MOHAMMAD,

    Please examine the attached project and let me know if it helps.

    Greetings,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • MOHAMMAD avatar

    Posted on May 28, 2011 (permalink)

    Thanks a lot it solve most of the problem, But i still can't know if i can go back
     or foreword (for the purpose of enable and disable the buttons)

    Reply

  • Kiril Stanoev Kiril Stanoev avatar

    Posted on Jun 1, 2011 (permalink)

    Hello MOHAMMAD,

    Here you can see the methods and properties which the History object supports. There is a neat property called Length which you can use in this particular scenario to check the size of the history.

    private void Back_Click(object sender, RoutedEventArgs e)
    {
        string historyCountCode = "document.getElementById('myIFrame').contentWindow.history.length;";
        object historyCount = HtmlPage.Window.Eval(historyCountCode);
        if (Convert.ToInt16(historyCount) > 0)
        {
            // Code to be executed
            string code = "document.getElementById('myIFrame').contentWindow.history.back();";
            HtmlPage.Window.Eval(code);
        }
        else
        {
            MessageBox.Show("History is empty");
        }
    }

     

    Greetings,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • Kenz avatar

    Posted on Jan 6, 2012 (permalink)

    Hi,
    i've examined this topic..

    but what i want is playing with absolute URLs..
    Don't want to add html pages in a folder..(or i can add them and give them a quick ridirect ability)
    Btw Urls' total numbers are fixed.(9 links)
    Can u plz attach an example or help me how to do?

    Best regards..

    Reply

  • Kiril Stanoev Kiril Stanoev avatar

    Posted on Jan 11, 2012 (permalink)

    Hi Kazim,

    I've posted an answer to your other forum thread.

    Regards,
    Kiril Stanoev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > HTMLPlaceHolder > Html place holder (Back, Forward, Refresh)
Related resources for "Html place holder (Back, Forward, Refresh)"

Silverlight HtmlPlaceHolder Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]