1.Resizable Server Properties
TargetControlID - The ID of the element that becomes resizable
HandleCssClass - The name of the CSS class to apply to the resize handle
ResizableCssClass - The name of the CSS class to apply to the element when resizing
MinimumWidth/MinimumHeight - Minimum dimensions of the resizable element
MaximumWidth/MaximumHeight - Maximum dimensions of the resizable element
OnClientResizeBegin - Event fired when the element starts being resized
OnClientResizing - Event fired as the element is being resized
OnClientResize - Event fired when the element has been resized
HandleOffsetX/HandleOffsetY - Offsets to apply to the location of the resize handle
1 .frameImage 2 { 3 width:130px; 4 height:65px; 5 overflow:hidden; 6 float:left; 7 padding:3px; 8 } 9 10 .frameText 11 { 12 width:100px; 13 height:100px; 14 overflow:auto; 15 float:left; 16 background-color:#ffffff; 17 border-style:solid; 18 border-width:2px; 19 border-color:Gray; 20 font-family:Helvetica; 21 line-height:normal; 22 } 23 24 .handleImage 25 { 26 width:15px; 27 height:16px; 28 background-image:url(images/HandleHand.png); 29 overflow:hidden; 30 cursor:se-resize; 31 } 32 33 .handleText 34 { 35 width:16px; 36 height:16px; 37 background-image:url(images/HandleGrip.png); 38 overflow:hidden; 39 cursor:se-resize; 40 } 41 42 .resizingImage 43 { 44 padding:0px; 45 border-style:solid; 46 border-width:3px; 47 border-color:#B4D35D; 48 } 49 50 .resizingText 51 { 52 padding:0px; 53 border-style:solid; 54 border-width:2px; 55 border-color:#7391BA; 56 }
1 protected void Button2_Click(object sender, EventArgs e) 2 { 3 System.Drawing.Size s = ResizableControlExtender1.Size; 4 ResizableControlExtender1.Size = new System.Drawing.Size(s.Width / 2, s.Height / 2); 5 }