Solved

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

Posted on 2013-11-20
2
313 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 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

737 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