Click here to Skip to main content
15,888,351 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: .Net Core 2.1 - Setting Session Value in controller, then reading it in Controller Attribute. [solved maybe] Pin
jkirkerx4-Jul-18 10:22
professionaljkirkerx4-Jul-18 10:22 
QuestionLoop through dataset to create hyperlinks in aspx Pin
caffrey_13-Jul-18 23:44
caffrey_13-Jul-18 23:44 
AnswerRe: Loop through dataset to create hyperlinks in aspx Pin
Richard Deeming4-Jul-18 7:37
mveRichard Deeming4-Jul-18 7:37 
PraiseRe: Loop through dataset to create hyperlinks in aspx Pin
caffrey_14-Jul-18 10:27
caffrey_14-Jul-18 10:27 
QuestionBinding selected value of Dropdownlist to Grid Pin
indian1433-Jul-18 12:58
indian1433-Jul-18 12:58 
AnswerRe: Binding selected value of Dropdownlist to Grid Pin
Vincent Maverick Durano3-Jul-18 16:20
professionalVincent Maverick Durano3-Jul-18 16:20 
Question.Net Core 2.1 IHostingEnvironment, how to access it Pin
jkirkerx28-Jun-18 20:14
professionaljkirkerx28-Jun-18 20:14 
AnswerRe: .Net Core 2.1 IHostingEnvironment, how to access it Pin
Richard Deeming29-Jun-18 0:00
mveRichard Deeming29-Jun-18 0:00 
Refactor the static methods and pass the IHostingEnvironment to them. Otherwise, they'll be impossible to test.

Similarly with the configuration: pass the IConfiguration (or the strongly-typed configuration object) to the methods.

Not sure what you mean by bindingOptions?

Multi-value cookies were never standardized, so Core doesn't support them. There are various options for handling multiple values suggested in this StackOverflow thread[^] - the Cookie Manager project[^] looks promising.

Several suggestions for Core image processing libraries on the .NET blog: .NET Core Image Processing | .NET Blog[^]

User agent should be available with: Request.Headers[HeaderNames.UserAgent]
How to get user Browser name ( user-agent ) in Asp.net Core? - Stack Overflow[^]

IP address is available from HttpContext.Connection.RemoteIpAddress - inject the IHttpContextAccessor service to get the current context.
Get Client IP Address in ASP.NET Core 2.0 - Edi Wang[^]

Server.MapPath doesn't really apply any more, since Core doesn't support virtual directories. You just use IHostingEnvironment[^] to get the physical root path, and then Path.Combine[^] to build the path to a folder or file within that path.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: .Net Core 2.1 IHostingEnvironment, how to access it Pin
jkirkerx29-Jun-18 6:18
professionaljkirkerx29-Jun-18 6:18 
Question.Net Core 2.1, Get the Environment to seed a database so I can get the path Pin
jkirkerx28-Jun-18 9:02
professionaljkirkerx28-Jun-18 9:02 
AnswerDirectory.GetCurrentDirectory Pin
jkirkerx28-Jun-18 9:11
professionaljkirkerx28-Jun-18 9:11 
AnswerRe: .Net Core 2.1, Get the Environment to seed a database so I can get the path Pin
Richard Deeming28-Jun-18 10:26
mveRichard Deeming28-Jun-18 10:26 
GeneralRe: .Net Core 2.1, Get the Environment to seed a database so I can get the path Pin
jkirkerx28-Jun-18 11:56
professionaljkirkerx28-Jun-18 11:56 
QuestionSenior MVC Full Stack Developer Job Postings with Angular Experience Pin
jkirkerx27-Jun-18 8:42
professionaljkirkerx27-Jun-18 8:42 
AnswerRe: Senior MVC Full Stack Developer Job Postings with Angular Experience Pin
F-ES Sitecore27-Jun-18 23:44
professionalF-ES Sitecore27-Jun-18 23:44 
GeneralRe: Senior MVC Full Stack Developer Job Postings with Angular Experience Pin
jkirkerx28-Jun-18 6:50
professionaljkirkerx28-Jun-18 6:50 
AnswerRe: Senior MVC Full Stack Developer Job Postings with Angular Experience Pin
Richard Deeming28-Jun-18 1:03
mveRichard Deeming28-Jun-18 1:03 
GeneralRe: Senior MVC Full Stack Developer Job Postings with Angular Experience Pin
jkirkerx28-Jun-18 6:55
professionaljkirkerx28-Jun-18 6:55 
Question.net Core 2.1, Startup.cs, IConfiguration vs IHostingEnviroment Pin
jkirkerx27-Jun-18 7:14
professionaljkirkerx27-Jun-18 7:14 
AnswerRe: .net Core 2.1, Startup.cs, IConfiguration vs IHostingEnviroment Pin
Richard Deeming27-Jun-18 7:45
mveRichard Deeming27-Jun-18 7:45 
GeneralRe: .net Core 2.1, Startup.cs, IConfiguration vs IHostingEnviroment [solved] Pin
jkirkerx27-Jun-18 8:08
professionaljkirkerx27-Jun-18 8:08 
QuestionBody Tag, Razor and AngularJS workaround or better idea for body tag cannot have c# in it. Pin
jkirkerx27-Jun-18 6:26
professionaljkirkerx27-Jun-18 6:26 
AnswerRe: Body Tag, Razor and AngularJS workaround or better idea for body tag cannot have c# in it. Pin
Richard Deeming27-Jun-18 7:13
mveRichard Deeming27-Jun-18 7:13 
GeneralRe: Body Tag, Razor and AngularJS workaround or better idea for body tag cannot have c# in it. Pin
jkirkerx27-Jun-18 8:13
professionaljkirkerx27-Jun-18 8:13 
GeneralRe: Body Tag, Razor and AngularJS workaround or better idea for body tag cannot have c# in it. Pin
Richard Deeming27-Jun-18 8:18
mveRichard Deeming27-Jun-18 8:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.