Solved

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

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add or delete table rows 10 63
reading excel file in .net 2 30
ASP.net Markup for Sub Menu 2 39
Validation for Passport expiry in asp.net 2 8
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

735 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