Ask a Question related to ASP, Design and Development.

  1. #1

    Default Write Positioning


    Does any one know how I can position the output at certain
    point? Such as If I want to print "hello" starting at
    position 50 from the left in the file.

    Ken
    Ken Guest

  2. Similar Questions and Discussions

    1. CSS Content Box Positioning - Help Please
      Hello! I'm currently working on a website for a client of mine. This is the first time I'm using CSS for positioning, and came across some issues...
    2. Positioning of content
      Hi everyone got this following code - and when i try to add the template -<cfinclude template="resultarticle links.cfm"> it doesn't appear at the...
    3. positioning
      im trying to move a div tag to the right side, ive tried using "float" but it doesnt work the way i want it to. i tried setting its position as...
    4. CSS Div Positioning
      Anybody know how to cause a DIV to be aligned to the bottom of the page? If you go to: http://www.tilaru.com/NewSite/index.php you'll see that my...
    5. write to database without giving write permission to IIS
      Hi there, I have some ASP code that writes to access database. For security reason I do not want IUSER to give write permission to database...
  3. #2

    Default Re: Write Positioning

    What file? Just an normal html response? If so, you could probably do this
    with some css stuff. Try asking in a group that covers css or html design.
    I find comp.infosystems.[url]www.authoring.stylesheets[/url] to be an alright group.

    Ray at work

    "Ken" <anonymous@discussions.microsoft.com> wrote in message
    news:0b6501c39a43$cdfef3b0$a601280a@phx.gbl...
    >
    > Does any one know how I can position the output at certain
    > point? Such as If I want to print "hello" starting at
    > position 50 from the left in the file.
    >
    > Ken

    Ray at Guest

  4. #3

    Default Re: Write Positioning

    I am trying to print to simple flat file.
    >-----Original Message-----
    >What file? Just an normal html response? If so, you
    could probably do this
    >with some css stuff. Try asking in a group that covers
    css or html design.
    >I find comp.infosystems.[url]www.authoring.stylesheets[/url] to be
    an alright group.
    >
    >Ray at work
    >
    >"Ken" <anonymous@discussions.microsoft.com> wrote in
    message
    >news:0b6501c39a43$cdfef3b0$a601280a@phx.gbl...
    >>
    >> Does any one know how I can position the output at
    certain
    >> point? Such as If I want to print "hello" starting at
    >> position 50 from the left in the file.
    >>
    >> Ken
    >
    >
    >.
    >
    Ken Guest

  5. #4

    Default Re: Write Positioning

    Print?

    <% Response.Write String(49, " ") & "X" %>

    That will put 49 spaces before X in the response.

    Ray at work


    "Ken" <anonymous@discussions.microsoft.com> wrote in message
    news:0c0701c39a46$67e73620$a501280a@phx.gbl...
    > I am trying to print to simple flat file.
    >
    > >-----Original Message-----
    > >What file? Just an normal html response? If so, you
    > could probably do this
    > >with some css stuff. Try asking in a group that covers
    > css or html design.
    > >I find comp.infosystems.[url]www.authoring.stylesheets[/url] to be
    > an alright group.
    > >
    > >Ray at work
    > >
    > >"Ken" <anonymous@discussions.microsoft.com> wrote in
    > message
    > >news:0b6501c39a43$cdfef3b0$a601280a@phx.gbl...
    > >>
    > >> Does any one know how I can position the output at
    > certain
    > >> point? Such as If I want to print "hello" starting at
    > >> position 50 from the left in the file.
    > >>
    > >> Ken
    > >
    > >
    > >.
    > >

    Ray at Guest

  6. #5

    Default Re: Write Positioning

    If you have your response in a variable, like:


    sTheResponse = "kja kjsd fjasldf8alkjlaudsfajsdlkfj alkjdiosfjaldkfj
    alksjdfa98sdjflaksdjflkajsdf8jaslekfjal;sdifual;sd jf8asjdflakjsd
    fiaj;dslifj"

    You could do:

    If Len(sTheResponse) > 49
    sTheResponse = Left(sTheResponse, 49) & "hello" & Right(sTheResponse,
    Len(sTheResponse) - 49)
    Else
    sTheResponse = Replace(Left(sTheResponse & String(49, " "), 49), " ",
    "&nbsp;") & "hello"
    End If

    Response.Write sTheResponse


    Ray at work


    "Ken" <anonymous@discussions.microsoft.com> wrote in message
    news:07b901c39a4c$3117ef30$a001280a@phx.gbl...
    > But if I print something before that?
    > I want to justify the location so even though there is
    > something printed before that "X", I want to make it print
    > exactly at the position 50.
    >
    > p.s. sorry about opening up another thread.
    >
    > >-----Original Message-----
    > >Print?
    > >
    > ><% Response.Write String(49, " ") & "X" %>
    > >
    > >That will put 49 spaces before X in the response.
    > >
    > >Ray at work
    > >
    > >
    > >"Ken" <anonymous@discussions.microsoft.com> wrote in
    > message
    > >news:0c0701c39a46$67e73620$a501280a@phx.gbl...
    > >> I am trying to print to simple flat file.
    > >>
    > >> >-----Original Message-----
    > >> >What file? Just an normal html response? If so, you
    > >> could probably do this
    > >> >with some css stuff. Try asking in a group that covers
    > >> css or html design.
    > >> >I find comp.infosystems.[url]www.authoring.stylesheets[/url] to be
    > >> an alright group.
    > >> >
    > >> >Ray at work
    > >> >
    > >> >"Ken" <anonymous@discussions.microsoft.com> wrote in
    > >> message
    > >> >news:0b6501c39a43$cdfef3b0$a601280a@phx.gbl...
    > >> >>
    > >> >> Does any one know how I can position the output at
    > >> certain
    > >> >> point? Such as If I want to print "hello" starting at
    > >> >> position 50 from the left in the file.
    > >> >>
    > >> >> Ken
    > >> >
    > >> >
    > >> >.
    > >> >
    > >
    > >
    > >.
    > >

    Ray at Guest

  7. #6

    Default Re: Write Positioning

    I thought about that, but I thought there must be some
    command that justifies where it will print.
    >-----Original Message-----
    >If you have your response in a variable, like:
    >
    >
    >sTheResponse = "kja kjsd fjasldf8alkjlaudsfajsdlkfj
    alkjdiosfjaldkfj
    >alksjdfa98sdjflaksdjflkajsdf8jaslekfjal;sdifual;s djf8asjdf
    lakjsd
    >fiaj;dslifj"
    >
    >You could do:
    >
    >If Len(sTheResponse) > 49
    > sTheResponse = Left(sTheResponse, 49) & "hello" &
    Right(sTheResponse,
    >Len(sTheResponse) - 49)
    >Else
    > sTheResponse = Replace(Left(sTheResponse & String
    (49, " "), 49), " ",
    >" ") & "hello"
    >End If
    >
    >Response.Write sTheResponse
    >
    >
    >Ray at work
    >
    >
    >"Ken" <anonymous@discussions.microsoft.com> wrote in
    message
    >news:07b901c39a4c$3117ef30$a001280a@phx.gbl...
    >> But if I print something before that?
    >> I want to justify the location so even though there is
    >> something printed before that "X", I want to make it
    print
    >> exactly at the position 50.
    >>
    >> p.s. sorry about opening up another thread.
    >>
    >> >-----Original Message-----
    >> >Print?
    >> >
    >> ><% Response.Write String(49, " ") & "X" %>
    >> >
    >> >That will put 49 spaces before X in the response.
    >> >
    >> >Ray at work
    >> >
    >> >
    >> >"Ken" <anonymous@discussions.microsoft.com> wrote in
    >> message
    >> >news:0c0701c39a46$67e73620$a501280a@phx.gbl...
    >> >> I am trying to print to simple flat file.
    >> >>
    >> >> >-----Original Message-----
    >> >> >What file? Just an normal html response? If so,
    you
    >> >> could probably do this
    >> >> >with some css stuff. Try asking in a group that
    covers
    >> >> css or html design.
    >> >> >I find comp.infosystems.[url]www.authoring.stylesheets[/url]
    to be
    >> >> an alright group.
    >> >> >
    >> >> >Ray at work
    >> >> >
    >> >> >"Ken" <anonymous@discussions.microsoft.com> wrote in
    >> >> message
    >> >> >news:0b6501c39a43$cdfef3b0$a601280a@phx.gbl...
    >> >> >>
    >> >> >> Does any one know how I can position the output at
    >> >> certain
    >> >> >> point? Such as If I want to print "hello"
    starting at
    >> >> >> position 50 from the left in the file.
    >> >> >>
    >> >> >> Ken
    >> >> >
    >> >> >
    >> >> >.
    >> >> >
    >> >
    >> >
    >> >.
    >> >
    >
    >
    >.
    >
    Ken Guest

  8. #7

    Default Re: Write Positioning

    No, I don't believe there is. If there were, it'd be something like
    Response.write "this text", 1, 50 for column, row, but like, that's really
    not the way ASP works.

    Just out of curiosity, what's the reason you want text in a specific spot?
    You are "screen scraping" are you?

    Ray at work

    "Ken" <anonymous@discussions.microsoft.com> wrote in message
    news:083c01c39a52$759b8cb0$a001280a@phx.gbl...
    > I thought about that, but I thought there must be some
    > command that justifies where it will print.

    Ray at Guest

  9. #8

    Default Re: Write Positioning

    No. I am trying to generate file that can be import into
    certain program.
    >-----Original Message-----
    >No, I don't believe there is. If there were, it'd be
    something like
    >Response.write "this text", 1, 50 for column, row, but
    like, that's really
    >not the way ASP works.
    >
    >Just out of curiosity, what's the reason you want text in
    a specific spot?
    >You are "screen scraping" are you?
    >
    >Ray at work
    >
    >"Ken" <anonymous@discussions.microsoft.com> wrote in
    message
    >news:083c01c39a52$759b8cb0$a001280a@phx.gbl...
    >> I thought about that, but I thought there must be some
    >> command that justifies where it will print.
    >
    >
    >.
    >
    Ken 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