473,794 Members | 2,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mixing client-side and server-side processing: How?

Hi All,

I just picked up an ASP.NET "Mortgage Calculator" example with
code-behind from Prosise's 2002 "Programmin g Microsoft.NET". Works
great. User enters a few values, clicks button, and monthy payment is
displayed.

When I design apps like this, I like to clear out result fields like
"monthly payment" the minute the user changes any of the parameters of
the mortgage. Doing that server-side looks easy enough, but I'd want
to do it client-side in a real, business app.

So how can I add trapping of onchange events to the asp fields for
client-side processing?

Regards,
Richard

May 11 '06 #1
2 1369
The easiest way would be to generate client-side JavaScript and add it using
the RegisterClientS criptBlock() method and the Attributes.Add( ) method. I
can't really tell you exactly what the code should look like since I haven't
seen your current code, but if you have ever used JavaScript before it
shouldn't be hard to figure out. Good Luck!
--
Nathan Sokalski
nj********@hotm ail.com
http://www.nathansokalski.com/

"Richard" <Ri************ **********@USCo mputerGurus.com > wrote in message
news:11******** **************@ i39g2000cwa.goo glegroups.com.. .
Hi All,

I just picked up an ASP.NET "Mortgage Calculator" example with
code-behind from Prosise's 2002 "Programmin g Microsoft.NET". Works
great. User enters a few values, clicks button, and monthy payment is
displayed.

When I design apps like this, I like to clear out result fields like
"monthly payment" the minute the user changes any of the parameters of
the mortgage. Doing that server-side looks easy enough, but I'd want
to do it client-side in a real, business app.

So how can I add trapping of onchange events to the asp fields for
client-side processing?

Regards,
Richard

May 12 '06 #2
Hi Nathan,

Thanks a lot. I agree: I should be able to figure it out, which I'll
try to do this weekend.

Best wishes,
Richard

Nathan Sokalski wrote:
The easiest way would be to generate client-side JavaScript and add it using
the RegisterClientS criptBlock() method and the Attributes.Add( ) method. I
can't really tell you exactly what the code should look like since I haven't
seen your current code, but if you have ever used JavaScript before it
shouldn't be hard to figure out. Good Luck!
--
Nathan Sokalski
nj********@hotm ail.com
http://www.nathansokalski.com/

"Richard" <Ri************ **********@USCo mputerGurus.com > wrote in message
news:11******** **************@ i39g2000cwa.goo glegroups.com.. .
Hi All,

I just picked up an ASP.NET "Mortgage Calculator" example with
code-behind from Prosise's 2002 "Programmin g Microsoft.NET". Works
great. User enters a few values, clicks button, and monthy payment is
displayed.

When I design apps like this, I like to clear out result fields like
"monthly payment" the minute the user changes any of the parameters of
the mortgage. Doing that server-side looks easy enough, but I'd want
to do it client-side in a real, business app.

So how can I add trapping of onchange events to the asp fields for
client-side processing?

Regards,
Richard


May 12 '06 #3

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

Similar topics

3
3490
by: bergel | last post by:
Hello, Does anyone already have some experience in mixing AWT and Swing? Is it conceptually doable? Does the design of Swing prevent interaction between an AWT and a Swing widget? Regards, Alexandre
6
4910
by: Russell E. Owen | last post by:
At one time, mixing for x in file and readline was dangerous. For example: for line in file: # read some lines from a file, then break nextline = readline() # bad would not do what a naive user might expect because the file iterator buffered data and readline did not read from that buffer. Hence the call to readline might unexpectedly skip some lines.
0
1830
by: Erik Max Francis | last post by:
Is there any prohibition against mixing different protocols within the same pickle? I don't see anything about this in the Python Library Reference and, after all, the pickle.dump function takes a protocol argument for each time it's called. (This is in Python 2.3.3.) I have a pickle containing two objects: a tag string and a (large) object containing many children. The identifying string is there so that you can unpickle it and...
4
23692
by: Rudolf | last post by:
Is it possible to add a vb.net source code module to a c# project and if so how? Thanks Rudolf
1
3421
by: Marc Cromme | last post by:
I would like to ask a question about (good ?) style and possibilities in mixing C FILE* and C++ file streams. The background is that I want to use the C libpng library from within C++, but I would like to open C++ file streams due to easier exception handeling and safe closure of file ressources. Question 1: I open a standard file stream and want to transfer some binary read bits
4
1938
by: Cristian Tota | last post by:
Hi, I'd appreciate any thoughts on mixing C++ and C code. I have a project that uses a given C interface, the rest of the project can be either in C or C++. What would be the recomended design pattern in this case? C++ allows for a better design, but integrating the code with the C code isn't straight forward, it becomes rather messy. Code readability and maintenance are important, since the project will grow in the future. Maybe someone...
2
2420
by: Dan | last post by:
Hi What are the dangers of mixing asp and asp.net? For the .net part of the site i will need to use the global.asax file but for the asp parts it will be using the other global. file, is there anyway to get to both use the same one? For example i want to convert my homepage to aspx first, but in doing so my session var that needs to be initialised wont be as it will use the global.asax and not the global.asa.
28
3104
by: ziman137 | last post by:
Hello all, I have a question and am seeking for some advice. I am currently working to implement an algorithmic library. Because the performance is the most important factor in later applications, I decide to write it in C instead of C++. However, I thought it might be convenient to use some C++ code at some misc places. I'm aware that, I could always use the C++ compiler to get it work.
3
2099
by: jason | last post by:
I've been working with C# for over a year now without touching vb.net code. I had a few light years of vb.net before that. No real vb6 or windows form experience. Suddenly, I have an assignment where I've been asked to create a few new pages on an exsisting website. The website is written in vb.net with vb.net codebehind and classes. My employer says I can use C# for new stuff If I want.
0
1359
by: John Scheldroup | last post by:
Source: Article Mixing C and C++ Code in the Same Program By Stephen Clamage, Sun Microsystems, Sun ONE Studio Solaris Tools Development Engineering http://developers.sun.com/solaris/articles/mixing.html
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10435
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10213
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10163
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6779
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.