Try our conversational search powered by Generative AI!

PageBrowser.aspx popup dialog in button click event in view mode


A page in view mode has a text box and a button. On button click we would like to bring the

/edit/pagebrowser.aspx  Dialog popup. When a page is selected in the Page Browser  the page

will be populated in the text box on the page in view mode.

We are able to bring the PageBrowser popup, but the select button does not function.


<html xmlns="">
<head id="head1" runat="server">

    <script language="javascript" type="text/javascript">
    function OpenGetPageDialog()
        document.getElementById('PageAddValue').value = "";
        document.getElementById('PageAddText').value = "";



%>','','False','False','PageAddText','PageAddValue','en', PageDialogClosed);
    function PageDialogClosed(returnValue, callbackArguments) {
        if (document.getElementById('PageAddValue').value.length > 0) {
            // document.getElementById('PageAddValue') contains the PageId

    <form runat="server" id="form1">
    <asp:TextBox runat="server" ID="PageAddText"></asp:TextBox>
    <asp:TextBox runat="server" ID="PageAddValue"></asp:TextBox>
    <asp:Button runat="server" ID="btnBrowse" Text="Browse"

OnClientClick="OpenGetPageDialog()" />

I am able to view the pagebrowser but when I select a page it is not returning the selected

page to the 'PageAddText' textbox

May 28, 2008 14:47
Jun 03, 2008 8:58
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.