TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ketan patel
NA
171
9.6k
How to get HttpContext.Current in model using ASP.NET Core?
Mar 19 2018 7:02 AM
public string GetColumns()
{
string columns = "";
for (int i = 0; ; i++)
{
if (!string.IsNullOrEmpty(
HttpContext.Current.Request.
Form["columns[" + i + "][data]"]))
{
string c = Convert.ToString((HttpContext.Current.Request.Form["columns[" + i + "][data]"]));
columns += columns == "" ? c : "," + c;
}
else
break;
}
if (!string.IsNullOrEmpty(HttpContext.Current.Request.Form["Columns"]))
columns = Convert.ToString(HttpContext.Current.Request.Form["Columns"]);
return columns;
}
Reply
Answers (
1
)
Deploying ASP.NET Core to IIS
what is Linq in ASP.NET and there work in website design