Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2013-11-20
2
Medium Priority
?
318 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

610 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