コード例 #1
0
    /// <summary>
    /// Gets callback result.
    /// </summary>
    public string GetCallbackResult()
    {
        mParameters            = new Hashtable();
        mParameters["where"]   = gridElem.WhereCondition;
        mParameters["orderby"] = gridElem.SortDirect;

        WindowHelper.Add(Identifier, mParameters);

        string queryString = "?params=" + Identifier;

        queryString = URLHelper.AddParameterToUrl(queryString, "hash", QueryHelper.GetHash(queryString));
        queryString = URLHelper.AddParameterToUrl(queryString, "emailid", EmailID.ToString());

        return(queryString);
    }
コード例 #2
0
    /// <summary>
    /// Gets callback result.
    /// </summary>
    public string GetCallbackResult()
    {
        mParameters            = new Hashtable();
        mParameters["where"]   = gridElem.WhereCondition;
        mParameters["orderby"] = gridElem.SortDirect;

        // Get the dialog identifier
        Guid dialogIdentifier = GetDialogIdentifier();

        // Store the dialog identifier with appropriate data in the session
        WindowHelper.Add(dialogIdentifier.ToString(), mParameters);

        string queryString = "?params=" + dialogIdentifier;

        queryString = URLHelper.AddParameterToUrl(queryString, "hash", QueryHelper.GetHash(queryString));
        queryString = URLHelper.AddParameterToUrl(queryString, "emailid", EmailID.ToString());

        return(queryString);
    }
コード例 #3
0
        private void SetupControls()
        {
            FormatTypeCode.Items.Add(new ListItem(nameof(FormatTypeCode), nameof(FormatTypeCode)));
            SubscribeTypeCode.Items.Add(new ListItem(nameof(SubscribeTypeCode), nameof(SubscribeTypeCode)));

            _privateObject.SetField(nameof(EmailID), new TextBox {
                Text = EmailID.ToString()
            });
            _privateObject.SetField(nameof(EmailAddress), new TextBox {
                Text = _emailAddress
            });
            _privateObject.SetField(Title, new TextBox {
                Text = Title
            });
            _privateObject.SetField(nameof(FirstName), new TextBox {
                Text = FirstName
            });
            _privateObject.SetField(nameof(LastName), new TextBox {
                Text = LastName
            });
            _privateObject.SetField(nameof(FullName), new TextBox {
                Text = FullName
            });
            _privateObject.SetField(nameof(CompanyName), new TextBox {
                Text = CompanyName
            });
            _privateObject.SetField(nameof(Occupation), new TextBox {
                Text = Occupation
            });
            _privateObject.SetField(nameof(Address), new TextBox {
                Text = Address
            });
            _privateObject.SetField(nameof(Address2), new TextBox {
                Text = Address2
            });
            _privateObject.SetField(nameof(City), new TextBox {
                Text = City
            });
            _privateObject.SetField(nameof(State), new TextBox {
                Text = State
            });
            _privateObject.SetField(nameof(Zip), new TextBox {
                Text = Zip
            });
            _privateObject.SetField(nameof(Country), new TextBox {
                Text = Country
            });
            _privateObject.SetField(nameof(Voice), new TextBox {
                Text = Voice
            });
            _privateObject.SetField(nameof(Mobile), new TextBox {
                Text = Mobile
            });
            _privateObject.SetField(nameof(Fax), new TextBox {
                Text = Fax
            });
            _privateObject.SetField(nameof(Website), new TextBox {
                Text = Website
            });
            _privateObject.SetField(nameof(Age), new TextBox {
                Text = Age
            });
            _privateObject.SetField(nameof(Income), new TextBox {
                Text = Income
            });
            _privateObject.SetField(nameof(Gender), new TextBox {
                Text = Gender
            });
            _privateObject.SetField(nameof(User1), new TextBox {
                Text = User1
            });
            _privateObject.SetField(nameof(User2), new TextBox {
                Text = User2
            });
            _privateObject.SetField(nameof(User3), new TextBox {
                Text = User3
            });
            _privateObject.SetField(nameof(User4), new TextBox {
                Text = User4
            });
            _privateObject.SetField(nameof(User5), new TextBox {
                Text = User5
            });
            _privateObject.SetField(nameof(User6), new TextBox {
                Text = User6
            });
            _privateObject.SetField(nameof(UserEvent1), new TextBox {
                Text = UserEvent1
            });
            _privateObject.SetField(nameof(UserEvent2), new TextBox {
                Text = UserEvent2
            });
            _privateObject.SetField(nameof(Password), new TextBox {
                Text = Password
            });
            _privateObject.SetField(nameof(BirthDate), new TextBox {
                Text = BirthDate
            });
            _privateObject.SetField(nameof(UserEvent1Date), new TextBox {
                Text = UserEvent1Date
            });
            _privateObject.SetField(nameof(UserEvent2Date), new TextBox {
                Text = UserEvent2Date
            });
            _privateObject.SetField(nameof(FormatTypeCode), FormatTypeCode);
            _privateObject.SetField(nameof(FormatTypeCode), FormatTypeCode);
            _privateObject.SetField(nameof(SubscribeTypeCode), SubscribeTypeCode);
        }
        private void SetupControls()
        {
            FormatTypeCode.Items.Add(new ListItem(nameof(FormatTypeCode), nameof(FormatTypeCode)));
            var gender = new DropDownList();

            gender.Items.Add(new ListItem(nameof(Gender), Gender));

            _privateObject.SetField("_emailId", EmailID.ToString());
            _privateObject.SetField("_groupId", GroupID.ToString());
            _privateObject.SetField(nameof(EmailAddress), new TextBox {
                Text = EmailAddress
            });
            _privateObject.SetField(nameof(Title), new TextBox {
                Text = Title
            });
            _privateObject.SetField(nameof(FirstName), new TextBox {
                Text = FirstName
            });
            _privateObject.SetField(nameof(LastName), new TextBox {
                Text = LastName
            });
            _privateObject.SetField(nameof(FullName), new TextBox {
                Text = FullName
            });
            _privateObject.SetField(nameof(CompanyName), new TextBox {
                Text = CompanyName
            });
            _privateObject.SetField(nameof(Occupation), new TextBox {
                Text = Occupation
            });
            _privateObject.SetField(nameof(Address), new TextBox {
                Text = Address
            });
            _privateObject.SetField(nameof(Address2), new TextBox {
                Text = Address2
            });
            _privateObject.SetField(nameof(City), new TextBox {
                Text = City
            });
            _privateObject.SetField(nameof(Zip), new TextBox {
                Text = Zip
            });
            _privateObject.SetField(nameof(Country), new TextBox {
                Text = Country
            });
            _privateObject.SetField(nameof(Voice), new TextBox {
                Text = Voice
            });
            _privateObject.SetField(nameof(Mobile), new TextBox {
                Text = Mobile
            });
            _privateObject.SetField(nameof(Fax), new TextBox {
                Text = Fax
            });
            _privateObject.SetField(nameof(Website), new TextBox {
                Text = Website
            });
            _privateObject.SetField(nameof(Age), new TextBox {
                Text = Age
            });
            _privateObject.SetField(nameof(Income), new TextBox {
                Text = Income
            });
            _privateObject.SetField(nameof(Gender), gender);
            _privateObject.SetField(nameof(User1), new TextBox {
                Text = User1
            });
            _privateObject.SetField(nameof(User2), new TextBox {
                Text = User2
            });
            _privateObject.SetField(nameof(User3), new TextBox {
                Text = User3
            });
            _privateObject.SetField(nameof(User4), new TextBox {
                Text = User4
            });
            _privateObject.SetField(nameof(User5), new TextBox {
                Text = User5
            });
            _privateObject.SetField(nameof(User6), new TextBox {
                Text = User6
            });
            _privateObject.SetField(nameof(UserEvent1), new TextBox {
                Text = UserEvent1
            });
            _privateObject.SetField(nameof(UserEvent2), new TextBox {
                Text = UserEvent2
            });
            _privateObject.SetField(nameof(BirthDate), new TextBox {
                Text = BirthDate
            });
            _privateObject.SetField(nameof(UserEvent1Date), new TextBox {
                Text = UserEvent1Date
            });
            _privateObject.SetField(nameof(UserEvent2Date), new TextBox {
                Text = UserEvent2Date
            });
            _privateObject.SetField(nameof(Notes), new TextBox {
                Text = Notes
            });
            _privateObject.SetField(nameof(FormatTypeCode), FormatTypeCode);
            _privateObject.SetField(nameof(State), State);
            _privateObject.SetField(nameof(MessageLabel), new Label());

            _privateObject.Invoke(LoadUsStatesDr);
        }