[CLOSED] Call window like target=_blank codebehind

  1. #1

    [CLOSED] Call window like target=_blank codebehind

    here my current Function, and i would like to let ext.net.window will show in parent.window like <a href= "" target="_blank">
        Public Shared Function ExtShowWindows(ByVal strTitle As String, ByVal strWindowsID As String, ByVal intWidth As Integer, ByVal intHeight As Integer, ByVal strURL As String, Optional ByVal userICon As Ext.Net.Icon? = Nothing, Optional ByVal intXPos As Integer = 10, Optional ByVal intYPos As Integer = 10) As Ext.Net.Window
            Dim objWin As New Ext.Net.Window
    
            objWin.ID = strWindowsID
            objWin.Title = strTitle
            objWin.Width = intWidth
            objWin.Height = intHeight
            If Not userICon Is Nothing Then
                objWin.Icon = userICon
            End If
            objWin.Modal = True
            objWin.CloseAction = CloseAction.Destroy
            objWin.Loader = New ComponentLoader
            objWin.Loader.Url = strURL
            objWin.ConstrainHeader = True            ''use to bound the title bar not outside the parent
            objWin.Loader.Mode = LoadMode.Frame
            objWin.Loader.LoadMask.ShowMask = True
            objWin.X = intXPos.ToString
            objWin.Y = intYPos.ToString
            'objWin.RenderTo = "parent.ext.getBody()"
            objWin.Render()
            Return objWin
        End Function
    From http://forums.ext.net/showthread.php?9935

    win = new parent.Ext.Window(
    {
        renderTo: parent.Ext.getBody(),
        itemId: _itemId,
        maximizable: _maximizable,
        resizable: _resizable,
        collapsible: _collapsible,
        constrain: false,
        title: _title,
        height: _height,
        width: _width,
        modal: _modal,
        frame: true
    });
    Last edited by Daniil; Mar 26, 2013 at 4:16 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Do you need to implement it without JavaScript at all? If so, then, unfortunately, it is impossible. The code behind of another page doesn't have an access to another page.

    But you could call any JavaScript from code behind.
    X.Js.Call("openWindowInParent", "parameters");

Similar Threads

  1. Replies: 1
    Last Post: Apr 18, 2012, 9:53 AM
  2. [CLOSED] How to call CellSelect event from codebehind
    By tactime10 in forum 1.x Premium Help
    Replies: 10
    Last Post: Feb 27, 2012, 8:34 AM
  3. Replies: 6
    Last Post: Feb 15, 2012, 4:15 PM
  4. [CLOSED] DirectEvents call method codebehind
    By rnfigueira in forum 1.x Premium Help
    Replies: 8
    Last Post: Sep 05, 2011, 3:03 PM
  5. Set target window for Notification object
    By RPIRES in forum 1.x Help
    Replies: 7
    Last Post: Jun 17, 2010, 8:45 PM

Tags for this Thread

Posting Permissions