15,909,051 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 11970999 (Top 11 by date)
Member 11970999
24-Dec-15 0:52am
View
iam getting that error while my using datetimepicker for a textbox
Member 11970999
29-Oct-15 6:30am
View
"/Home/Index?data=1&data=2&data=3&name=" this is my href
public ActionResult Index(int[] data,string name)
{
return View();
}
this is my controller looks like
Member 11970999
29-Oct-15 6:25am
View
i changed list<int> to int[] but its taking only one value
Member 11970999
29-Oct-15 6:11am
View
now its working but its taking only first value from the list
Member 11970999
29-Oct-15 6:05am
View
my index accepts list<int> data as param
Member 11970999
29-Oct-15 5:48am
View
"/Home/Index?name=&data=57"
Member 11970999
29-Oct-15 5:15am
View
iam doing the same as in your solution i didnt change anything in that. in controller iam getting string[] data null
Member 11970999
29-Oct-15 0:23am
View
its not working
Member 11970999
28-Oct-15 7:23am
View
hi,
present iam sending like this @Url.Action("Index", "home", new { data = yourintlist })
only but list was not pass to controller
Member 11970999
28-Oct-15 7:17am
View
Hi F-ES Sitecore,
@{
var a = new List<int>();
foreach (var item in ViewBag.data)
{
a.Add(item);
}
}
@Html.Raw(@Url.Action("index", "home", new { Ids= a, name= ViewBag.name}))
iam passing list like this to mvc controller thanks for solution but it doesnt work for me.
Member 11970999
28-Oct-15 7:13am
View
i already tried it. its working for if the list have one value not for morethan one
Show More