ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to pass parameter when I make DataFunc call?
Title:
B
I
{code}
?
I have html like: @(Html.Awe().AjaxDropdownFor(x => x.TestFIName).DataFunc("LoadTestNames").Parameter("test", "test1").CssClass("form-control")) function LoadTestNames(test) { } I want to pass test1 string to the method, when I am passing as Parameter its giving me array of length 2 !!
Save Changes
Cancel
test
asked at 07 Apr 2017
Answers
B
I
{code}
?
do it like this: function LoadTestNames(sp) { var p = utils.serializeObj(sp); console.log(p.test);
Save Changes
Cancel
Omu
answered at 07 Apr 2017
It worked, thanks.
at 07 Apr 2017
test
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK