ASP.Net AJAX controls, adding via .ashx page

Posted by Matt Dawdy on Stack Overflow See other posts from Stack Overflow or by Matt Dawdy
Published on 2010-05-05T14:32:26Z Indexed on 2010/05/05 14:38 UTC
Read the original article Hit count: 309

Filed under:
|

Okay, this is a continuation of a previous question of mine, but it is distinct enough to be its own question. Based on user interaction, I'm calling a .ashx handler via a jquery ajax call, and that handler is building some html for me that includes some Telerik controls like a masked textbox (masked for a phone number like "(###) ###-####".

I got around all the hurdles of using Render() to get the html output of a server control even when it doesn't have a "Page" object or a ScriptHandler object.

However, when I show the control to a user, I see the mask in the text of the textbox, but the mask doesn't "work" in the sense that when a user starts typing, it is as if the mask is really just text.

So, my question is, after putting the html code out for a masked textbox, how do I tell whatever javascript is supposed to mask the input to really start masking on that specific control?

I really hope this made sense. Please tell me if you need any clarification.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about AJAX