setting properties of new window

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default setting properties of new window

    Hi

    Put anchor tag href as #.
    Add onclick event for anchor.
    In onclick event call a javascript method, which will
    open a new with specified width and height.



    HTH

    Ravikanth


    >-----Original Message-----
    >How do I add to this anchor tag so that I can set the
    width and height
    >etc of the new window?
    >
    ><a href='<%# "oli_display.aspx?OLI=" +
    >DataBinder.Eval(Container.DataItem, "OLI") + "&OS=" +
    >DataBinder.Eval(Container.DataItem, "Incoming Route") %>'
    >target="_blank">
    >
    >
    >Any advice would be much appreciated.
    >
    >
    >Cheers,
    >
    >Mike
    >
    >
    >*** Sent via Developersdex [url]http://www.developersdex.com[/url]
    ***
    >Don't just participate in USENET...get rewarded for it!
    >.
    >
    Ravikanth[MVP] Guest

  2. Similar Questions and Discussions

    1. Exception during setting of properties
      I am finishing up work on a custom treeview control that has a Nodes property. Each TreeNode in the collection also has a Nodes property. If I...
    2. setting properties - what am I doing wrong?
      Hell I'm trying to set the properties of a shape on my stage. Here's my script on (release) setProperty("_level0.circle", _x, 50) I...
    3. Setting Properties Dynamically?
      Ok, I have an action script that dynamically creates multiple buttons, using the duplicate movie action. Within each object is a dynamic text layer...
    4. properties not showing in properties window at design time
      I created a usercontrol using vb but the properties will not show in the properties pane however the properties show up in the intellisence list....
    5. Setting Window Title On New Window
      Why will the following code not change the window title of the new window? window.open "Default.htm" ,"YO"
  3. #2

    Default Re: setting properties of new window

    Mike,

    You can find sample javascript to open a new window pretty easily on the
    web. If you want a .net object that opens a new window to set sizes I have
    built one and have it available for free on my web site. (Actually
    everything on the site is free.) I also have some raw javascript examples to
    open windows. Both are available in the code library on my site:
    [url]www.aboutfortunate.com[/url]. Just click the "Javascript" button in the left menu
    if you want to use the .net object. Otherwise search the code library for
    "open window" and you'll get a couple of examples.

    Good luck!

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Mike P" <mrp@telcoelectronics.co.uk> wrote in message
    news:uhDqBQpWDHA.1748@TK2MSFTNGP12.phx.gbl...
    > How do I add to this anchor tag so that I can set the width and height
    > etc of the new window?
    >
    > <a href='<%# "oli_display.aspx?OLI=" +
    > DataBinder.Eval(Container.DataItem, "OLI") + "&OS=" +
    > DataBinder.Eval(Container.DataItem, "Incoming Route") %>'
    > target="_blank">
    >
    >
    > Any advice would be much appreciated.
    >
    >
    > Cheers,
    >
    > Mike
    >
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    S. Justin Gengo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139