or
// Resize image to the required resolutionEditableImage image = new EditableImage(currentImage);image.Resize(imageWidth, imageHeight);' Try to execute below code at web user control page load or another location at
' the vb.net asp.net 3.5 code
' I encounter the script error combo is null' str1 of type StringBuilder str1.Append("var combo = $find('" & RadComboBox1.ClientID & "');")str1.Append("combo.disable();")ScriptManager.RegisterStartupScript(Me.Page, Me.Page.GetType(), "key1", str1.ToString(), True)Posted 1 minute ago (permalink)
var grid = $('[id$=GridProducts]')[0]; in the Masterpage javscript since Masterpages changes the ID of the grid and it becomes something like ct100_Masterpagecontent_productGrid.ON MASTER PAGE JAVASCRIPT: <script type="text/javascript"> function showFilterItem(grid) { //This finds the grid object but I cannot access get_masterTableView() functions var grid = $('[id$=GridProducts]')[0]; //Throws error Object reference not found??? grid.get_masterTableView().showFilterItem(); } function hideFilterItem(grid) { //Throws error cant find get_masterTableView() ?? grid.get_masterTableView().hideFilterItem(); } </script> CONTENT PAGE HTML <div style="text-align:center"> <br /> Show Filters:<input id="rad1" type="radio" name="showHideGroup" checked="checked" onclick="showFilterItem()" /><label for="rad1">Yes</label> <input id="rad2" type="radio" name="showHideGroup" onclick="hideFilterItem()" /><label for="rad2">No</label> </div>