Solved

ASP.NET Client-Side Scripting for Text Box with Run at Server setting

Posted on 2013-11-20
2
307 Views
Last Modified: 2013-11-20
I have a page that I need to update other elements when a text box has changed text.

<asp:TextBox ID="txtAmountPledged" runat="server" MaxLength="12" Columns="6" >

Open in new window


This needs to be client side so Auto Post Back is not an option. I found that the big problem is the RunAt Server setting causes a compile error with the "OnTextChanged="PopUpAlert()"" where the function is java script on the page.
0
Comment
Question by:etsellinc
2 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 39663369
Use onchange instead of OnTextChanged, although onchange is nt a valid serverside property it will be rendered to the html and will call the javascript function

<asp:TextBox ID="txtAmountPledged" runat="server" MaxLength="12" Columns="6" onchange="PopUpAlert()">
0
 

Author Closing Comment

by:etsellinc
ID: 39663468
Quick and concise! Thank you
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now