Exemplo n.º 1
0
        private void populateLinkBehaviors()
        {
            DataTable mDataTable = new DataTable();
            int       mNavType   = GWWebHelper.LinkBehaviorNameValuePairSequenceId;

            NameValuePairUtility.GetNameValuePairDetails(ref mDataTable, mNavType);
            dropLinkBehavior.DataSource     = mDataTable;
            dropLinkBehavior.DataTextField  = "NVP_DET_TEXT";
            dropLinkBehavior.DataValueField = "NVP_SEQ_DET_ID";
            dropLinkBehavior.DataBind();
            if (m_Profile.Id != -1)
            {
                NameValuePairUtility.SetDropSelection(dropLinkBehavior, m_Profile.LinkBehavior.ToString());
            }
        }
Exemplo n.º 2
0
        private void bindData(MSearchCriteria searchCriteria)
        {
            int mNVP_SeqID = int.Parse(searchCriteria.WhereClause.Replace("NVP_SEQ_ID = ", ""));

            searchCriteria.OrderByColumn = "Table_Name";
            DataTable mDataTable = NameValuePairUtility.GetNameValuePairDetails(mNVP_SeqID);

            DataHelper.GetPageOfData(ref mDataTable, searchCriteria);
            if (mDataTable != null && mDataTable.Rows.Count > 0)
            {
                DataView mDataView = mDataTable.DefaultView;
                recordsReturned.Value    = mDataTable.Rows[0][0].ToString();
                searchResults.DataSource = mDataTable;
                searchResults.DataBind();
            }
            else
            {
                noResults.Visible = true;
            }
        }