473,387 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Scripting and webforms

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

Nov 15 '05 #1
2 947
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.

--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Jax" <an*******@discussions.microsoft.com> schreef in bericht
news:05****************************@phx.gbl...
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

Nov 15 '05 #2
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
-----Original Message-----
http://www.codeproject.com/aspnet/scriptgen.asp
The new state management and postback features of ASP.NET are indeed veryexciting. They provide developers with a whole new range of mechanisms forproducing dynamic web pages. The ability to write your own custom controlstakes that ability to a whole new level allowing you to write a control withcustom functionality that can easily be reused in multiple pages by simplydefining custom tags, similar to any other HTML element. The personimplementing the layout for a page no longer needs to know all the detailsof how to write client-side code to get the dynamic behavior that has becomeso popular. However, there are some pitfalls that developers need to beaware of. ASP.NET promotes server-heavy designs. Network traffic can bedramatically increased as each client-side event can potentially cause around trip to the server. Many of the effects that result from thesefrequent trips to the server can easily be accomplished with a few simpleJavaScript functions. Calls to the server should be kept to a minimum, withas much being done on the client as possible. Using custom controls togenerate client-side script we can take advantage of Dynamic HTML on theclient while still providing a measure of separation between the layout andthe logic.

--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Jax" <an*******@discussions.microsoft.com> schreef in berichtnews:05****************************@phx.gbl...
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

.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: rachel | last post by:
Hi all, I am new in ASP.Net. I have a question on link multiple web forms together. Here is the scenario: I create an Index.aspx WebForm which consists of a banner and three navigator...
1
by: Paul R | last post by:
Hi, I have a Winforms application that access some SQLServer2000 stored procedures. I have now written some new Webforms pages to use some of the same stored procs. The Webforms use the SAME...
3
by: Netserver | last post by:
Hi have a question hope there is a simple answer. I want to enter data in to 2 arrays from several webforms in project and be able to recall that data from any of the webforms, other then using a...
3
by: | last post by:
All the fields in webforms are automatically declared as protected. If I change them to public, they are converted back to protected. Why is this happening ? Thanks
20
by: Martin Rosén-Lidholm | last post by:
Although an impossible question to answer, I fell urged to raise it anyhow. Given a fairly complex ERP application scenario, what's your estimation for the X-ratio dev. time for...
2
by: Piotr Karwatka | last post by:
Hi! I have a little problem an qeustion. In .NET Windows Forms I can do something like that: - i have forms - Form1 Form2, on first form i have TextBox1 control on 2nd form I have Button1...
0
by: Joergen Bech | last post by:
Trying to implement my own webforms designer to be hosted in a WinForms environment. Basically: I know that mshtml is used in the VS.Net 2003 WebForms designer, but the HTML behind the scenes is...
4
by: 3Cooks | last post by:
I have a windows application written in Visual Basic 6.0 that is going to be redeveloped in dotNET. We are trying to decide if we should deploy using Webforms or Winforms and I need advice from...
5
by: Bit byte | last post by:
Can I use C# (Winforms) to design a website?. I am from C/C++ background but know nothing about Internet programming. My understanding of WebForms are that they are similar to WinForms in that...
0
by: JM | last post by:
Hi, I have uploaded an application written in asp.net 2.0 on server. By web controls started giving Javascript error and I figured it out from discussion groups that I have to put WebForms.js...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.