473,382 Members | 1,368 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,382 software developers and data experts.

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 1305
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
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
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
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
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
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
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
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
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.