protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.DeleteNodeValues) || string.IsNullOrEmpty(this.DeleteNodeValues)) { returnCode = ASTreeViewAjaxReturnCode.ERROR; return; } try { if (!IsDeleteValid()) { this.cusMessage = "[Server Said]:Node (or its children) cannot be deleted with the letter 'a'"; this.cusReturnCode = CUS_RETURN_CODE_ERROR; } else { this.DeleteNodes(); } } catch (Exception ex) { this.returnCode = ASTreeViewAjaxReturnCode.ERROR; this.errorMessage = ex.Message; } }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.NodeValue) || string.IsNullOrEmpty(this.NewNodeText)) { returnCode = ASTreeViewAjaxReturnCode.ERROR; return; } try { if (this.NewNodeText.ToLower().IndexOf("a") >= 0) { this.cusMessage = "[Server Said]:Node cannot contain the letter 'a'"; this.cusReturnCode = CUS_RETURN_CODE_ERROR; } else { this.RenameNode(); } } catch (Exception ex) { this.returnCode = ASTreeViewAjaxReturnCode.ERROR; this.errorMessage = ex.Message; } }
protected void Page_Load( object sender, EventArgs e ) { if( string.IsNullOrEmpty( this.DeleteNodeValues ) || string.IsNullOrEmpty( this.DeleteNodeValues ) ) { returnCode = ASTreeViewAjaxReturnCode.ERROR; return; } try { if( !IsDeleteValid() ) { this.cusMessage = "[Server Said]:Node (or its children) cannot be deleted with the letter 'a'"; this.cusReturnCode = CUS_RETURN_CODE_ERROR; } else { this.DeleteNodes(); } } catch( Exception ex ) { this.returnCode = ASTreeViewAjaxReturnCode.ERROR; this.errorMessage = ex.Message; } }
protected void Page_Load( object sender, EventArgs e ) { if( string.IsNullOrEmpty( this.NodeValue ) || string.IsNullOrEmpty( this.NewNodeText ) ) { returnCode = ASTreeViewAjaxReturnCode.ERROR; return; } try { if( this.NewNodeText.ToLower().IndexOf( "a" ) >= 0 ) { this.cusMessage = "[Server Said]:Node cannot contain the letter 'a'"; this.cusReturnCode = CUS_RETURN_CODE_ERROR; } else { this.RenameNode(); } } catch( Exception ex ) { this.returnCode = ASTreeViewAjaxReturnCode.ERROR; this.errorMessage = ex.Message; } }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.DeleteNodeValues) || string.IsNullOrEmpty(this.DeleteNodeValues)) { returnCode = ASTreeViewAjaxReturnCode.ERROR; return; } try { this.DeleteNodes(); } catch (Exception ex) { this.returnCode = ASTreeViewAjaxReturnCode.ERROR; this.errorMessage = ex.Message; } }
protected void Page_Load( object sender, EventArgs e ) { if( string.IsNullOrEmpty( this.NodeValue ) || string.IsNullOrEmpty( this.NewNodeText ) ) { returnCode = ASTreeViewAjaxReturnCode.ERROR; return; } try { this.RenameNode(); } catch( Exception ex ) { this.returnCode = ASTreeViewAjaxReturnCode.ERROR; this.errorMessage = ex.Message; } }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.NodeValue) || string.IsNullOrEmpty(this.NewNodeText)) { returnCode = ASTreeViewAjaxReturnCode.ERROR; return; } try { Int64 aSSiteMapNodeID = Int64.Parse(this.NodeValue); this.RenameNode(aSSiteMapNodeID, this.NewNodeText); } catch (Exception ex) { this.returnCode = ASTreeViewAjaxReturnCode.ERROR; this.errorMessage = ex.Message; } }