Ajax Drop Down with Awesome Parameters

Aug 9, 2011 at 1:20 PM

I am passing CompanyID (From Model)  to filter my data through Dictionary values.

@Html.AjaxDropdownFor(model => model.CountryID, controller: "AjaxDropdown", parameters: new Dictionary<string, object> { { "CompanyID", Model.CompanyID.ToString()}})*@

How to achieve the same thourgh Awesome Parameters on Attribute. Is it Possible ?

I am trying like this.

 [AwesomeParameters("{CompanyID:  }")]

Coordinator
Aug 9, 2011 at 2:15 PM

[AwesomeParameters("{CompanyID: 123232  }")]

but this is going to be a static value

Aug 9, 2011 at 2:24 PM

But I want to refer another Property.

Ex: Country has to filter based on Company ID in session.

Company ID will vary. cant be static.

Coordinator
Aug 9, 2011 at 3:46 PM
Edited Aug 9, 2011 at 3:47 PM

use data: instead or parentId

http://awesome.codeplex.com/wikipage?title=AjaxDropdown&referringTitle=Home