Scripting and webforms

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

    #1

    Scripting and webforms

    You'll have to excuse first of all my ignorence as i'm
    relatively new to web development.
    I have a question.
    Is it possible to script in a web form (ASP.NET)?
    I have some code that works fine in a HTML page but
    refuses to work in a web form.
    Is there a particular place i have to put it or do i have
    to change some settings somewhere?
    Failing that how would it be possible to send information
    from the html page back into a web form?
    Thanks for any help given.

    jax

  • Jan Tielens

    #2
    Re: Scripting and webforms


    The new state management and postback features of ASP.NET are indeed very
    exciting. They provide developers with a whole new range of mechanisms for
    producing dynamic web pages. The ability to write your own custom controls
    takes that ability to a whole new level allowing you to write a control with
    custom functionality that can easily be reused in multiple pages by simply
    defining custom tags, similar to any other HTML element. The person
    implementing the layout for a page no longer needs to know all the details
    of how to write client-side code to get the dynamic behavior that has become
    so popular. However, there are some pitfalls that developers need to be
    aware of. ASP.NET promotes server-heavy designs. Network traffic can be
    dramatically increased as each client-side event can potentially cause a
    round trip to the server. Many of the effects that result from these
    frequent trips to the server can easily be accomplished with a few simple
    JavaScript functions. Calls to the server should be kept to a minimum, with
    as much being done on the client as possible. Using custom controls to
    generate client-side script we can take advantage of Dynamic HTML on the
    client while still providing a measure of separation between the layout and
    the logic.

    --
    Greetz,
    Jan
    _______________ _______________ ____
    Read my weblog: http://weblogs.asp.net/jan
    "Jax" <anonymous@disc ussions.microso ft.com> schreef in bericht
    news:056d01c3c7 dc$698fa520$a50 1280a@phx.gbl.. .[color=blue]
    > You'll have to excuse first of all my ignorence as i'm
    > relatively new to web development.
    > I have a question.
    > Is it possible to script in a web form (ASP.NET)?
    > I have some code that works fine in a HTML page but
    > refuses to work in a web form.
    > Is there a particular place i have to put it or do i have
    > to change some settings somewhere?
    > Failing that how would it be possible to send information
    > from the html page back into a web form?
    > Thanks for any help given.
    >
    > jax
    >[/color]


    Comment

    • Guest's Avatar

      #3
      Re: Scripting and webforms

      Thanks Jan!

      That looks far better, i'm not very comfortable with
      html, if I can do it in code that's way better.
      :)

      jax
      [color=blue]
      >-----Original Message-----
      >http://www.codeproject.com/aspnet/scriptgen.asp
      >The new state management and postback features of ASP.NET[/color]
      are indeed very[color=blue]
      >exciting. They provide developers with a whole new range[/color]
      of mechanisms for[color=blue]
      >producing dynamic web pages. The ability to write your[/color]
      own custom controls[color=blue]
      >takes that ability to a whole new level allowing you to[/color]
      write a control with[color=blue]
      >custom functionality that can easily be reused in[/color]
      multiple pages by simply[color=blue]
      >defining custom tags, similar to any other HTML element.[/color]
      The person[color=blue]
      >implementing the layout for a page no longer needs to[/color]
      know all the details[color=blue]
      >of how to write client-side code to get the dynamic[/color]
      behavior that has become[color=blue]
      >so popular. However, there are some pitfalls that[/color]
      developers need to be[color=blue]
      >aware of. ASP.NET promotes server-heavy designs. Network[/color]
      traffic can be[color=blue]
      >dramatically increased as each client-side event can[/color]
      potentially cause a[color=blue]
      >round trip to the server. Many of the effects that result[/color]
      from these[color=blue]
      >frequent trips to the server can easily be accomplished[/color]
      with a few simple[color=blue]
      >JavaScript functions. Calls to the server should be kept[/color]
      to a minimum, with[color=blue]
      >as much being done on the client as possible. Using[/color]
      custom controls to[color=blue]
      >generate client-side script we can take advantage of[/color]
      Dynamic HTML on the[color=blue]
      >client while still providing a measure of separation[/color]
      between the layout and[color=blue]
      >the logic.
      >
      >--
      >Greetz,
      >Jan
      >______________ _______________ _____
      >Read my weblog: http://weblogs.asp.net/jan
      >"Jax" <anonymous@disc ussions.microso ft.com> schreef in[/color]
      bericht[color=blue]
      >news:056d01c3c 7dc$698fa520$a5 01280a@phx.gbl. ..[color=green]
      >> You'll have to excuse first of all my ignorence as i'm
      >> relatively new to web development.
      >> I have a question.
      >> Is it possible to script in a web form (ASP.NET)?
      >> I have some code that works fine in a HTML page but
      >> refuses to work in a web form.
      >> Is there a particular place i have to put it or do i[/color][/color]
      have[color=blue][color=green]
      >> to change some settings somewhere?
      >> Failing that how would it be possible to send[/color][/color]
      information[color=blue][color=green]
      >> from the html page back into a web form?
      >> Thanks for any help given.
      >>
      >> jax
      >>[/color]
      >
      >
      >.
      >[/color]

      Comment

      Working...