NavigateUrl = "javascript

4 posts, 0 answers
  1. Kalpesh Shah
    Kalpesh Shah avatar
    1 posts
    Member since:
    Jan 2008

    Posted 29 Dec 2010 Link to this post

    Hello. I have this code where I'm trying to pop-up a small window with javascript from my dynamic list. My code is below, I get two pop-up windows, one (resim.aspx) and another one that has "'Resim.aspx?ID=12345678','my_window','width=300,height=300');my_window.focus()" on the address bar. How can I make this sure that only one pop-up window comes up. Thank you.

    foreach (String strC in ServiceList)


    TreeNode newNode = new TreeNode(strC.ToString());

    newNode.NavigateUrl = "'Resim.aspx?ID=12345678','my_window','width=300,height=300');my_window.focus()"

                newNode.Target = "_blank";

                newNode.SelectAction = TreeNodeSelectAction.Select;

                newNode.PopulateOnDemand = false;



  2. Nikolay Tsenkov
    Nikolay Tsenkov avatar
    734 posts

    Posted 04 Jan 2011 Link to this post

    Hi Kalpesh Shah,

    Just remove the Target setting and it should be fine.

    Nikolay Tsenkov
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. DevCraft R3 2016 release webinar banner
  4. Jayaram
    Jayaram avatar
    1 posts
    Member since:
    Sep 2016

    Posted 08 Sep in reply to Nikolay Tsenkov Link to this post

    We am not using Telerik control, but regular <ASP:TreeView> control and adding TreeNode dynamically from code behind.

    If we set both TreeNode1.NavigateUrl = "" and TreeNode1.Target = "_blank", we get 2 popups and the parent page remains as is.

    If I remove Target="_blank", the current parent page is submitting to itself with the query string passed to (how's that possible) and throwing error as current parent page doesn't accept query string

  5. Ivan Danchev
    Ivan Danchev avatar
    788 posts

    Posted 09 Sep Link to this post

    Hello Jayaram,

    This thread's product is RadTreeView, whereas the issue you are experiencing is with the asp:TreeView. Since we do not provide assistance with controls not included in the Telerik UI for ASP.NET AJAX suite, I would suggest posting your question in stackoverflow.

    Ivan Danchev
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top