Ajax Drop Down with Awesome Parameters

Aug 9, 2011 at 2: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:  }")]

Aug 9, 2011 at 3:15 PM

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

but this is going to be a static value

Aug 9, 2011 at 3: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.

Aug 9, 2011 at 4:46 PM
Edited Aug 9, 2011 at 4:47 PM

use data: instead or parentId