?
Solved

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

Posted on 2013-11-20
2
Medium Priority
?
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

777 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