Showing posts with label number. Show all posts
Showing posts with label number. Show all posts

Wednesday, March 28, 2012

Change Mask of MaskedEditExtender?

Is it possible to change the Mask of a MaskedEditExtender without posting back?

I have a field for telephone number in format "999-9999"

When the checkbox beside the textbox is checked, it should change to "(999)-999-9999" format, and should go back to previous format when unchecked.

Hi Seven21,

Try out this.

if (CheckBox1.Checked)

{

TextBox1_MaskedEditExtender.Mask ="999-9999";

}

else

TextBox1_MaskedEditExtender.Mask ="(999)-999-9999";

Monday, March 26, 2012

Centering a progress indicator over an UpdatePanel

I have a number of GridViews in my application that are wrapped in UpdatePanels. I would like to display a progress indicator directly in the center of the GridView while the panel is refreshing. I started out using the UpdateProgress control, but I couldn't find a decent way to center it over the GridView. I ended up using the UpdatePanelAnimationExtender and using the ScriptAction to do the work. It seems to work OK, but I am thinking there must be a better way of doing this - this seems like it would be a pretty common requirement. Anyway here is a link to the description of the apporach I am currently usinghttp://mattberseth.com/blog/2007/05/ajaxnet_example_using_an_updat.html. Any feedback would be appreciated.

Matt Berseth

http://mattberseth.com

This isn't a polished solution, but this should provide some insight for you:http://codeclimber.net.nz/archive/2007/05/17/How-to-make-a-Gmail-like-loading-indicator-with-ASP.NET-Ajax.aspx