Hi All,
I just picked up an ASP.NET "Mortgage Calculator" example with
code-behind from Prosise's 2002 "Programming 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 2 1350
The easiest way would be to generate client-side JavaScript and add it using
the RegisterClientScriptBlock() 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********@hotmail.com http://www.nathansokalski.com/
"Richard" <Ri**********************@USComputerGurus.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com... Hi All,
I just picked up an ASP.NET "Mortgage Calculator" example with code-behind from Prosise's 2002 "Programming 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
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 RegisterClientScriptBlock() 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********@hotmail.com http://www.nathansokalski.com/
"Richard" <Ri**********************@USComputerGurus.com> wrote in message news:11**********************@i39g2000cwa.googlegr oups.com... Hi All,
I just picked up an ASP.NET "Mortgage Calculator" example with code-behind from Prosise's 2002 "Programming 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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,...
|
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...
|
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...
|
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
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM).
In this month's session, the creator of the excellent VBE...
|
by: MeoLessi9 |
last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
Hello Experts!
I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
|
by: Aftab Ahmad |
last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below.
Dim IE As Object
Set IE =...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: marcoviolo |
last post by:
Dear all,
I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
| |