Use multiple fields for mailto: link in gridview

I'm trying to build a gridview field that displays a name and links to an email address with a subject. I first tried to make this work using DataNavigateUrlFormatString, but apparently using a : in a DataNavigateUrlFormatString breaks the link, so u...
more »

2017-10-04 17:10 (1) Answers

Facebook authentication is not remembered

I connected facebook external authentication like this: In Startup.cs services.AddIdentity<ApplicationUser, IdentityRole>(options => { ... }) .AddEntityFrameworkStores<ApplicationDbContext>() .AddDefaultTokenProviders(); service...
more »

2017-10-03 23:10 (0) Answers

SignalR - React .NET alternatives

I'm currently working with ASP .NET WEB API as backend and React as js client site. For real time communication I'm using SinalgR2 but I'm facing an issue that SignalR sometimes cannot establish correctly connection to hub proxy. After a lot of testi...
more »

2017-09-24 13:09 (0) Answers

ServiceStack client post body

I run a local ServiceStack service by using the template from the docs. I'd like to be able to POST information. Get works fine, but I need it to be able to POST data including a body. I test this using postman, which works fine as well. The data co...
more »

2017-09-22 09:09 (1) Answers

Sending Email in ASP.NET without Logging in

In my search for a way to send email on my webapp through a form, the only solution I got working was an old MSDN solution for a WebMail helper where it had me hardcode the credentials for an email to send through. Right, off the bat, I know this i...
more »

2017-09-21 14:09 (1) Answers

Sending Form URL in the mail link using asp.net

I have a requirement where I want to send the User the link of the form via Email. The link for every user will be different. Currently I am just passing hardcode value in the mail. Here is my code. sb.AppendLine("Please click on the link to view ...
more »

2017-09-21 09:09 (1) Answers

Render cached UserControl just once

TL;DR Is it possible to only render a cached UserControl once in the final HTML? In ASP.NET (running under 4.5.2) I have a UserControl that is used extensively across the system and is cached using the following... <%@ OutputCache Duration="6...
more »

2017-09-20 15:09 (0) Answers

Passing filename as URI parameter - how to secure?

I'm writing a simple log browser for web application. Server lists all log files, user may pick one of them and server displays its contents. The environment is ASP.NET MVC. Passing filename in URI is dangerous - a simple trick is to use "..\..\web....
more »

2017-09-19 12:09 (1) Answers

WebClient Authentication on Server Side

We have a Console App (C#) and Web Server (IIS). The Console App needs to send a file via HTTPS POST to the Web Server. Now, we need to add authentication between the Console App and Web Server, and we're trying to use WebClient's Credentials system....
more »

2017-09-18 09:09 (1) Answers