ラベル direction の投稿を表示しています。 すべての投稿を表示
ラベル direction の投稿を表示しています。 すべての投稿を表示

2012年3月28日水曜日

ResizableControlExtender: Allowing only horizontal resizing

Hi; I have a ResizableControlExtender control in my page and I'd like to be able to resize it only in x direction (unlike the one in this forum input text control)

Thanks

Any relations to this code peace?:

<scripttype="text/javascript">
function OnClientClickGrow () {
var rcp = $find('ResizableControlBehavior1');
var size = rcp.get_Size();
rcp.set_Size( { width: size.width*2, height: size.height*2 } );
returnfalse;
}
</script>

Just set the ResizableControlExtender's MinimumHeight and MaximumHeight to the same value.

Joe


:) I've found out but u were faster :)

Thanks...

MinimumHeight="500" MaximumHeight="500"

2012年3月24日土曜日

Reverse AJAX?

Has anyone tried doing anything RAJAX (asyncronously send from server to client) with .NET? If so, could you point me in the direction of a reference? I need to write a small script or app that waits for messages on the server and notifies a client that a message has been received. I can't find anything out there for Microsoft technologies in regard to this, or even a set of white papers fro RAJAX.

Tim

hello.

i think that this kinf of application is also known as comet. some links that might help you:

http://en.wikipedia.org/wiki/Comet_%28programming%29

http://dojotoolkit.com/

http://dojotoolkit.com/

http://www.ajaxian.com/archives/comet-a-new-approach-to-ajax-applications

Reverse direction of veritcal slider?

Is it possible to reverse the direction of the slider extender? I'm using it vertically and would like the higher maximum value to be the top of the slider and the minimum value to be the bottom of the slider.

Hi,

what you can do is using negative numbers and then take the absolute value. For example, setting Minimum="-20" and Maximum="40" and then taking the absolute value of the slider. The problem is that if you use a bound control to display the slider's value, it will display the negative sign.

This scenario will be addressed in the next release, so thank you for reporting this.