473,500 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server Events vs. DHTML

Hi,

I'm an application developer from Malaysia. I wanted to know how ASP.NET
server-side events vs. client-side DHTML for FORM manipulations, may be in
terms of performance and practicality? To my understanding, server events
will only work when user sends request to server. Any FORM object
manipulations will need to go through the Web server, whereas for DHTML, the
FORM objects are manipulated on the fly. The most beutiful thing of DHTML
is, clicking the 'Back' button will not go back to the previous user action
for the form but it dismisses the entire page. Need your advice on that.
Thanks in advance.

Best Regards,
Antonio
Nov 18 '05 #1
5 1309
Sometimes one is more appropriate than the other. There are quite a few
considerations that make the determination. These include the type of
processing that needs to occur (some processing can only bo done on the
server), performance issues (you have brought up some of them), speed of
development, and code maintainablility, to name the most common.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Antonio Ooi" <an*******@yahoo.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
Hi,

I'm an application developer from Malaysia. I wanted to know how ASP.NET
server-side events vs. client-side DHTML for FORM manipulations, may be in
terms of performance and practicality? To my understanding, server events
will only work when user sends request to server. Any FORM object
manipulations will need to go through the Web server, whereas for DHTML, the FORM objects are manipulated on the fly. The most beutiful thing of DHTML
is, clicking the 'Back' button will not go back to the previous user action for the form but it dismisses the entire page. Need your advice on that.
Thanks in advance.

Best Regards,
Antonio

Nov 18 '05 #2
Your understanding is correct.
If you don't need to post back to the server to handle something, then you
probably shouldn't. Client side code is a great way to keep your code
responsive and efficient.
If all your users are using a recent version of IE then this can work out
great for you, but if you have to support other browsers then it can be a
real pain to make sure your client side code works properly with all
browsers - you'd need to do a lot of testing and tweaking.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Antonio Ooi" <an*******@yahoo.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
Hi,

I'm an application developer from Malaysia. I wanted to know how ASP.NET
server-side events vs. client-side DHTML for FORM manipulations, may be in
terms of performance and practicality? To my understanding, server events
will only work when user sends request to server. Any FORM object
manipulations will need to go through the Web server, whereas for DHTML, the FORM objects are manipulated on the fly. The most beutiful thing of DHTML
is, clicking the 'Back' button will not go back to the previous user action for the form but it dismisses the entire page. Need your advice on that.
Thanks in advance.

Best Regards,
Antonio

Nov 18 '05 #3
Sometimes one is more appropriate than the other. There are quite a few
considerations that make the determination. These include the type of
processing that needs to occur (some processing can only bo done on the
server), performance issues (you have brought up some of them), speed of
development, and code maintainablility, to name the most common.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Antonio Ooi" <an*******@yahoo.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
Hi,

I'm an application developer from Malaysia. I wanted to know how ASP.NET
server-side events vs. client-side DHTML for FORM manipulations, may be in
terms of performance and practicality? To my understanding, server events
will only work when user sends request to server. Any FORM object
manipulations will need to go through the Web server, whereas for DHTML, the FORM objects are manipulated on the fly. The most beutiful thing of DHTML
is, clicking the 'Back' button will not go back to the previous user action for the form but it dismisses the entire page. Need your advice on that.
Thanks in advance.

Best Regards,
Antonio

Nov 18 '05 #4
Your understanding is correct.
If you don't need to post back to the server to handle something, then you
probably shouldn't. Client side code is a great way to keep your code
responsive and efficient.
If all your users are using a recent version of IE then this can work out
great for you, but if you have to support other browsers then it can be a
real pain to make sure your client side code works properly with all
browsers - you'd need to do a lot of testing and tweaking.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Antonio Ooi" <an*******@yahoo.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
Hi,

I'm an application developer from Malaysia. I wanted to know how ASP.NET
server-side events vs. client-side DHTML for FORM manipulations, may be in
terms of performance and practicality? To my understanding, server events
will only work when user sends request to server. Any FORM object
manipulations will need to go through the Web server, whereas for DHTML, the FORM objects are manipulated on the fly. The most beutiful thing of DHTML
is, clicking the 'Back' button will not go back to the previous user action for the form but it dismisses the entire page. Need your advice on that.
Thanks in advance.

Best Regards,
Antonio

Nov 18 '05 #5
Thanks for the ideas. I think as long as I can do the same for server-side
events of ASP.NET, whereby I can have a "< Back" button to go back to the
previous form and have all my previously entered values filled up, with the
minimum amount of codes, I will consider shifting my projects to ASP.NET. In
the conventional way, I need to issue only one line of code to have all my
previously entered values filled up, that is onclick="history.back()" in the
INPUT tag. Any workaround in ASP.NET in achieving the same result?

Thanks again!

Antonio
MCSD
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eO***************@TK2MSFTNGP09.phx.gbl...
Your understanding is correct.
If you don't need to post back to the server to handle something, then you
probably shouldn't. Client side code is a great way to keep your code
responsive and efficient.
If all your users are using a recent version of IE then this can work out
great for you, but if you have to support other browsers then it can be a
real pain to make sure your client side code works properly with all
browsers - you'd need to do a lot of testing and tweaking.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Antonio Ooi" <an*******@yahoo.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
Hi,

I'm an application developer from Malaysia. I wanted to know how ASP.NET
server-side events vs. client-side DHTML for FORM manipulations, may be in terms of performance and practicality? To my understanding, server events will only work when user sends request to server. Any FORM object
manipulations will need to go through the Web server, whereas for DHTML,

the
FORM objects are manipulated on the fly. The most beutiful thing of DHTML is, clicking the 'Back' button will not go back to the previous user

action
for the form but it dismisses the entire page. Need your advice on that.
Thanks in advance.

Best Regards,
Antonio


Nov 18 '05 #6

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

Similar topics

1
2370
by: Andrus | last post by:
User enters an item code to a browser <input type=text> field. I need to verify the code entered using server callback. If item code is wrong, user is not allowed to leave the field. So I think...
1
1661
by: Brian Genisio | last post by:
Hello all, In IE, when an event occurs, as long as it returns true, and cancelBubble is not set, the event will bubble up through the elements in the DOM tree. Though, there is at least one...
2
2676
by: ohaya | last post by:
Hi, I'm trying to debug a problem with a page, and I was wondering if there was any way to capture all events within a BODY? I don't know if this is possible, but I was thinking of something...
3
4465
by: Rick Strahl [MVP] | last post by:
I'm working on an app that's using the WebBrowser control. I got the control working fine, hooking to the document object. But I've run into a major issue with hooking the Document events....
2
1928
by: Seb | last post by:
Hello All, I want to enable the User to define visible cols in a DataGrid. Is there a way to set a contextMenu for my DataGrid (or at least the Page)? Does anyone now, how I can handle...
14
6266
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
3
209
by: Antonio Ooi | last post by:
Hi, I'm an application developer from Malaysia. I wanted to know how ASP.NET server-side events vs. client-side DHTML for FORM manipulations, may be in terms of performance and practicality? To...
6
2375
by: Dave | last post by:
Hello there. I'm interesting how do I create server side menu in ASP.NET, I was searching for some menus, but they are all done with DHTML or JavaScript, so I have some problems to use them. I...
2
1992
by: danny.dion | last post by:
Hi ! I have a question about JScript : I have an object class wich dynamically creates a control in the page. Then it binds an event to that control, pointing on one of its methods (the...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7018
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
7232
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...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7397
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.