• Post Reply Bookmark Topic Watch Topic
  • New Topic

Javascript and .NET  RSS feed

 
Jerry Langley
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know of a book or preferably on-line tutorial which would explain best practices and methods for including Javascript for client side dynamics in .NET pages?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have not seen any books or tutorials that talk about it....

I program in VB.NET for my job and I try to implement JavaScript to limit post backs that are not needed. I have seen aplications that post back to hide a panel with no other operations.

Personally I see that is a waste of bandwidth since the server did no real processing.

My rule of thumb:
If no processing is needed on the server than JavaScript should do it. Now I know others that will fight my point, but bandwidth costs money!

What are you looking for exactly? I maybe could help explain certain points more.

Eric
 
Jerry Langley
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Eric. (For the other one as well about the book)
I know how to do things in Javascript with ASP.NET such as adding script to a button that will close a window or how to attach attributes to an image button to pass a onmouseover script. When I have an object created with ASP.NET I can see how to send Javascript so it passes through to the client side and adds attributes.
What I am trying to learn is how to pass through code which will create objects on the client side such as functions and larger blocks of script such as if I were to want to incorporate something such as your digital clock script in an ASP.NET page.
Thanks for your help.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!