Showing posts with label enter. Show all posts
Showing posts with label enter. Show all posts

Monday, March 26, 2012

Dyanimc TextBoxWatermark in GridView Pager Template

I have a textbox in my gridview pager template to allow the user to enter a page number to jump to. I would like the watermark to read Page X of Y. I tried to set the watermark text on the GridView_DataBound event, but that doesn't work.

My guess is this occurs because most (if not all) AJAX controls render client scripts durning the preload event and the databound event executes long after the preload. Is this correct? Is this by design? Will AJAX controls always render in the preload event?

Is there a workaround I could use to generate thePage X of Y for the watermark via javascript or something?

Thank you for your assistance

This should work - have a look at the DataBinding.aspx page in the ToolkitTests directory for an example. If you're still stuck, please post a complete, self-contained sample demonstrating the issue. Thanks!

Wednesday, March 21, 2012

DropDownList displaying press SPACEBAR or ENTER to activate

This message is like the one that appears on embedded flash movies when they are not instantiated correctly.

But I am using MS AJAX and this is just a DropDownMenu. In this case I am using IE6 and the Drop Down is outside of an update panel. Pressing the spacebar activates the dropdown and it works normally.

Has anybody seen this behavior before?

sounds like you used a windows forms dropdownlist control instead of a web dropdownlist control.

check to make sure you're actually using the asp:dropdownlist