This is a migrated thread and some comments may be shown as answers.

Html place holder (Back, Forward, Refresh)

5 Answers 80 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
MOHAMMAD
Top achievements
Rank 1
MOHAMMAD asked on 26 May 2011, 04:57 PM
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

5 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 28 May 2011, 03:47 PM
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
0
MOHAMMAD
Top achievements
Rank 1
answered on 28 May 2011, 05:48 PM
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)
0
Kiril Stanoev
Telerik team
answered on 01 Jun 2011, 01:17 PM
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
0
Kenz
Top achievements
Rank 1
answered on 06 Jan 2012, 02:57 PM
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..
0
Kiril Stanoev
Telerik team
answered on 11 Jan 2012, 12:27 PM
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 >>

Tags
HTMLPlaceHolder
Asked by
MOHAMMAD
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
MOHAMMAD
Top achievements
Rank 1
Kenz
Top achievements
Rank 1
Share this question
or