private bool ReadQueryString() { try { Subject = Request.QueryString["subject"]; } catch (Exception) { return(false); } try { Child = Request.QueryString["child"]; } catch (Exception) { return(false); } try { _subjectType = (LinkTree.SubjectType) int.Parse(Request.QueryString["type"]); } catch (Exception) { return(false); } return(true); }
private bool ReadQueryString() { try { _depth = int.Parse(Request.QueryString["depth"]); } catch (Exception) { return(false); } try { _maxNodes = int.Parse(Request.QueryString["maxNodes"]); } catch (Exception) { return(false); } try { Subject = Request.QueryString["subject"]; } catch (Exception) { return(false); } try { _subjectType = (LinkTree.SubjectType) int.Parse(Request.QueryString["type"]); } catch (Exception) { return(false); } return(true); }