Html place holder (Back, Forward, Refresh)

6 posts, 0 answers
  1. MOHAMMAD
    MOHAMMAD avatar
    6 posts
    Member since:
    May 2011

    Posted 26 May 2011 Link to this post

    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

  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1455 posts
    Member since:
    Sep 2012

    Posted 28 May 2011 Link to this post

    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

  3. MOHAMMAD
    MOHAMMAD avatar
    6 posts
    Member since:
    May 2011

    Posted 28 May 2011 Link to this post

    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)

  4. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1455 posts
    Member since:
    Sep 2012

    Posted 01 Jun 2011 Link to this post

    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

  5. Kenz
    Kenz avatar
    19 posts
    Member since:
    Apr 2011

    Posted 06 Jan 2012 Link to this post

    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..

  6. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1455 posts
    Member since:
    Sep 2012

    Posted 11 Jan 2012 Link to this post

    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 >>

Back to Top