protected void cmdSearch_Click(object sender, ImageClickEventArgs e) { Response.Redirect(NavigatePageURL(PortalUtils.GetUserCustomersPageId(), PortalUtils.USER_ID_PARAM, PanelSecurity.SelectedUserId.ToString(), "FilterColumn=" + ddlFilterColumn.SelectedValue, "FilterValue=" + Server.UrlEncode(txtFilterValue.Text))); }
protected void Page_Load(object sender, EventArgs e) { // bind groups BindGroupings(); // other controls this.ContainerControl.Visible = (PanelSecurity.SelectedUser.Role != UserRole.User); lnkAllCustomers.NavigateUrl = NavigatePageURL(PortalUtils.GetUserCustomersPageId(), PortalUtils.USER_ID_PARAM, PanelSecurity.SelectedUserId.ToString()); }
protected void Page_Load(object sender, EventArgs e) { // bind groups BindGroupings(); // other controls this.ContainerControl.Visible = (PanelSecurity.SelectedUser.Role != UserRole.User); lnkAllCustomers.NavigateUrl = NavigatePageURL(PortalUtils.GetUserCustomersPageId(), PortalUtils.USER_ID_PARAM, PanelSecurity.SelectedUserId.ToString()); if (!IsPostBack) { /*searchBox.AddCriteria("Username", GetLocalizedString("SearchField.Username")); * searchBox.AddCriteria("FullName", GetLocalizedString("SearchField.Name")); * searchBox.AddCriteria("Email", GetLocalizedString("SearchField.EMail")); * searchBox.AddCriteria("CompanyName", GetLocalizedString("SearchField.CompanyName")); * searchBox.Focus();*/ } }
protected void cmdSearch_Click(object sender, ImageClickEventArgs e) { if (tbObjectId.Text.Length > 0) { Response.Redirect(PortalUtils.GetUserHomePageUrl(Int32.Parse(tbObjectId.Text))); } else { String strText = tbSearchText.Text; if (strText.Length > 0) { Response.Redirect(NavigatePageURL(PortalUtils.GetUserCustomersPageId(), PortalUtils.USER_ID_PARAM, PanelSecurity.SelectedUserId.ToString(), "FilterColumn=" + ddlFilterColumn.SelectedValue, "FilterValue=" + Server.UrlEncode(FilterValue))); } else { Response.Redirect(PortalUtils.NavigatePageURL(PortalUtils.GetObjectSearchPageId(), PortalUtils.USER_ID_PARAM, PanelSecurity.SelectedUserId.ToString(), "Query=" + Server.UrlEncode(tbSearch.Text), "FullType=Users")); } } }
public string GetUserCustomersPageUrl(string parameterName, string parameterValue) { return(NavigatePageURL(PortalUtils.GetUserCustomersPageId(), PortalUtils.USER_ID_PARAM, PanelSecurity.SelectedUserId.ToString(), parameterName + "=" + parameterValue)); }