Scripting and webforms

  • Thread starter Thread starter Jax
  • Start date Start date
J

Jax

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
 
http://www.codeproject.com/aspnet/scriptgen.asp
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.
 
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
 
Back
Top