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

Make This Work in ASP.NET?

I found an interesting article on automatically populating the city and
state after the user enters a ZIP code
(http://www.codeproject.com/aspnet/Aj...select=1191985)
but I don't see how to make that work on an aspx page. How can I trigger the
javascript when an <asp:textbox id="ZIP" runat="server".....> object loses
focus?
Nov 19 '05 #1
2 902
try the onchange javascript event

This can be added through the code behind as follows

ZIP.Attribute.Add("onchange", "javascript:MyFunction");

"Wayne Wengert" <wa***********@wengert.org> wrote in message
news:OX***************@TK2MSFTNGP12.phx.gbl...
I found an interesting article on automatically populating the city and
state after the user enters a ZIP code
(http://www.codeproject.com/aspnet/Aj...select=1191985)
but I don't see how to make that work on an aspx page. How can I trigger
the javascript when an <asp:textbox id="ZIP" runat="server".....> object
loses focus?

Nov 19 '05 #2
Grant;

Thanks for that suggestion. I'll give it a try.

Wayne

"Grant Merwitz" <gr***@workshare.com> wrote in message
news:ev**************@TK2MSFTNGP12.phx.gbl...
try the onchange javascript event

This can be added through the code behind as follows

ZIP.Attribute.Add("onchange", "javascript:MyFunction");

"Wayne Wengert" <wa***********@wengert.org> wrote in message
news:OX***************@TK2MSFTNGP12.phx.gbl...
I found an interesting article on automatically populating the city and
state after the user enters a ZIP code
(http://www.codeproject.com/aspnet/Aj...select=1191985)
but I don't see how to make that work on an aspx page. How can I trigger
the javascript when an <asp:textbox id="ZIP" runat="server".....> object
loses focus?


Nov 19 '05 #3

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

Similar topics

6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
17
by: stubbsie | last post by:
Hi, I have redesigned our official public government website in .net and it has taken me a few months to redo. I have been the sole designer of the website from its humble beginnning a few years...
7
by: Hal Vaughan | last post by:
I have a problem with port forwarding and I have been working on it for over 2 weeks with no luck. I have found C programs that almost work and Java programs that almost work, but nothing that...
28
by: Steven Bethard | last post by:
Ok, I finally have a PEP number. Here's the most updated version of the "make" statement PEP. I'll be posting it shortly to python-dev. Thanks again for the previous discussion and suggestions!...
7
by: Steven Bethard | last post by:
I've updated PEP 359 with a bunch of the recent suggestions. The patch is available at: http://bugs.python.org/1472459 and I've pasted the full text below. I've tried to be more explicit about...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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
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,...
0
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...
0
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...

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.