void ItemChosen(KeyStringPair item)
		{
			
			if (item.Value.StartsWith("{'email':"))
			{
				EmailSuggestionValue value = (EmailSuggestionValue)Script.Eval("(" + item.Value + ")");
				Service.CreateUsrFromEmailAndReturnK(
					value.email,
					CreateUsrFromEmailAndReturnKSuccessCallback,
					Trace.WebServiceFailure,
					item,
					3000
				);

			}
			else
			{
				if (oldItemChosen != null) { oldItemChosen(item); }
			}
		}
예제 #2
0
		void brandDropDownChange(KeyStringPair e)
		{
			if (e.Value == null || e.Value.Length == 0)
				return;

			ObjectStub brand = new ObjectStub(int.Parse(e.Value, 10), e.Key);
			if (brand.K == 0)
			{
				return;
			}
			else
			{
				addHistory("Brand", brand.ToString());

				//moved to navigateBrand
				//initialiseDateDropDowns();
				//initialiseEventDropDown();
			}
		}
		void htmlAutoComplete_ItemChosen(KeyStringPair item)
		{
			AddItem(item.Key, item.Value);
			this.HtmlAutoComplete.Text = "";
			this.HtmlAutoComplete.Value = "";
			this.HtmlAutoComplete.Focus();
		}