Click here to Skip to main content
15,890,512 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: dish tv recharge web api Pin
Richard MacCutchan20-Mar-17 23:05
mveRichard MacCutchan20-Mar-17 23:05 
QuestionRe: dish tv recharge web api Pin
ZurdoDev22-Mar-17 9:48
professionalZurdoDev22-Mar-17 9:48 
Questionaspx on mobile browsers Pin
Member 1243345618-Mar-17 3:39
Member 1243345618-Mar-17 3:39 
AnswerRe: aspx on mobile browsers Pin
Richard Deeming18-Mar-17 7:05
mveRichard Deeming18-Mar-17 7:05 
QuestionFailed to resolve include text for file:C:\Users\XXXXX\Desktop\Angular2Apps\BSCSecurityAddressBookWeb\BSCSecurityAddressBookWeb\Scripts\Manager.ttinclude Pin
indian14316-Mar-17 13:41
indian14316-Mar-17 13:41 
AnswerRe: Failed to resolve include text for file:C:\Users\XXXXX\Desktop\Angular2Apps\BSCSecurityAddressBookWeb\BSCSecurityAddressBookWeb\Scripts\Manager.ttinclude Pin
ZurdoDev17-Mar-17 2:05
professionalZurdoDev17-Mar-17 2:05 
GeneralRe: Failed to resolve include text for file:C:\Users\XXXXX\Desktop\Angular2Apps\BSCSecurityAddressBookWeb\BSCSecurityAddressBookWeb\Scripts\Manager.ttinclude Pin
indian14320-Mar-17 13:28
indian14320-Mar-17 13:28 
QuestionUsing a MVC attribute to confirm identity, rediect to signin, then to original destination Pin
jkirkerx16-Mar-17 9:31
professionaljkirkerx16-Mar-17 9:31 
I wrote my own identity attribute for MVC, but it has 1 flaw in it.
So when I create links to the users account, if they haven't logged in, the attribute catches it and redirects them to login.

In the attribute, I change the filter context to RedirectToRouteResult and send them to Login.
But after they login, they return to the original page and not the page I sent them to in the first place.

I guess I'm looking for a way to capture the original destination and pass it to the Login Page, so the controller can move them on their way to the proper destination.
I've seen Amazon do it in a query string. Any thoughts?

So this is a OnActionExecuting call
filterContext.Result = new RedirectToRouteResult(
   new RouteValueDictionary{
   { "controller", "Account" },
   { "action", "SignIn" }
});
If it ain't broke don't fix it

AnswerGot this to work, not sure if it's kosher Pin
jkirkerx16-Mar-17 11:11
professionaljkirkerx16-Mar-17 11:11 
QuestionHow to read Excel data and insert into the access database using Microsoft.Office.Inteop.Excel in asp.net using CSharp language Pin
Member 1306265215-Mar-17 22:53
Member 1306265215-Mar-17 22:53 
AnswerRe: How to read Excel data and insert into the access database using Microsoft.Office.Inteop.Excel in asp.net using CSharp language Pin
F-ES Sitecore15-Mar-17 23:16
professionalF-ES Sitecore15-Mar-17 23:16 
AnswerRe: How to read Excel data and insert into the access database using Microsoft.Office.Inteop.Excel in asp.net using CSharp language Pin
Richard MacCutchan16-Mar-17 0:36
mveRichard MacCutchan16-Mar-17 0:36 
QuestionHow can I refresh partial view in ASP.NET MVC 5? Pin
Member 1299209415-Mar-17 6:38
Member 1299209415-Mar-17 6:38 
AnswerRe: How can I refresh partial view in ASP.NET MVC 5? Pin
bVagadishnu16-Mar-17 7:28
bVagadishnu16-Mar-17 7:28 
GeneralRe: How can I refresh partial view in ASP.NET MVC 5? Pin
Member 1299209416-Mar-17 9:40
Member 1299209416-Mar-17 9:40 
GeneralRe: How can I refresh partial view in ASP.NET MVC 5? Pin
bVagadishnu17-Mar-17 8:24
bVagadishnu17-Mar-17 8:24 
GeneralRe: How can I refresh partial view in ASP.NET MVC 5? Pin
Member 1299209417-Mar-17 9:17
Member 1299209417-Mar-17 9:17 
QuestionWhat manual do i need. Pin
xiecsuk15-Mar-17 1:22
xiecsuk15-Mar-17 1:22 
AnswerRe: What manual do i need. Pin
Richard MacCutchan15-Mar-17 3:10
mveRichard MacCutchan15-Mar-17 3:10 
AnswerRe: What manual do i need. Pin
ZurdoDev15-Mar-17 8:30
professionalZurdoDev15-Mar-17 8:30 
AnswerRe: What manual do i need. Pin
Richard Deeming15-Mar-17 9:00
mveRichard Deeming15-Mar-17 9:00 
GeneralRe: What manual do i need. Pin
xiecsuk16-Mar-17 6:07
xiecsuk16-Mar-17 6:07 
GeneralRe: What manual do i need. Pin
Richard Deeming16-Mar-17 6:49
mveRichard Deeming16-Mar-17 6:49 
GeneralRe: What manual do i need. Pin
xiecsuk17-Mar-17 0:07
xiecsuk17-Mar-17 0:07 
Questionacquire data from a website Pin
Member 1306012114-Mar-17 23:17
Member 1306012114-Mar-17 23:17 

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.