Variables in ASPX page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fabrizio

    Variables in ASPX page

    HI,
    my problem is that i need to create an aspx page(no code
    behind) assigning a variable value to an HTML control (eg
    labels, buttons captions).
    There is any example on line?
    thanks
    Fabrizio.
  • Cowboy \(Gregory A. Beamer\)

    #2
    Re: Variables in ASPX page

    If you place HTML controls on a page, and do not use runat=server, you can
    work with them the same way you do any other HTML page that submits back to
    a server.

    For ASP.NET, you will have to pull the values from Request.Form() collection
    to process them.

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA

    *************** *************** *************** *************** **********
    Think Outside the Box!
    *************** *************** *************** *************** **********
    "Fabrizio" <fmaltese@liber o.it> wrote in message
    news:01cb01c3ad 42$0ab07890$a40 1280a@phx.gbl.. .[color=blue]
    > HI,
    > my problem is that i need to create an aspx page(no code
    > behind) assigning a variable value to an HTML control (eg
    > labels, buttons captions).
    > There is any example on line?
    > thanks
    > Fabrizio.[/color]


    Comment

    • Yura2000

      #3
      RE: Variables in ASPX page

      Use the same way as legacy ASP

      <input value="<%Respon se.Write("blahb lah")%>"
      o
      <input value="<%=("bla hblah")%>" >

      Comment

      Working...