Click here to Skip to main content
15,399,749 members
Home / Discussions / ASP.NET
   

ASP.NET

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder12-Jul-09 22:39
cofounderChris Maunder12-Jul-09 22:39 
QuestionASP.Net MVC: How unauthorize access redirect user to login page Pin
Mou_kol10-Aug-22 20:27
MemberMou_kol10-Aug-22 20:27 
AnswerRe: ASP.Net MVC: How unauthorize access redirect user to login page Pin
Richard Deeming10-Aug-22 21:58
mveRichard Deeming10-Aug-22 21:58 
GeneralRe: ASP.Net MVC: How unauthorize access redirect user to login page Pin
Mou_kol11-Aug-22 1:06
MemberMou_kol11-Aug-22 1:06 
GeneralRe: ASP.Net MVC: How unauthorize access redirect user to login page Pin
Richard Deeming11-Aug-22 2:09
mveRichard Deeming11-Aug-22 2:09 
QuestionASP.Net MVC and querySelectorAll usage Pin
Mou_kol5-Aug-22 23:13
MemberMou_kol5-Aug-22 23:13 
AnswerRe: ASP.Net MVC and querySelectorAll usage Pin
Richard Deeming7-Aug-22 21:45
mveRichard Deeming7-Aug-22 21:45 
GeneralRe: ASP.Net MVC and querySelectorAll usage Pin
Mou_kol7-Aug-22 22:01
MemberMou_kol7-Aug-22 22:01 
QuestionVS2017 Code behind function to disable check Box on Combo Box Text Value Pin
Jason Parker 3335-Jul-22 22:57
MemberJason Parker 3335-Jul-22 22:57 
AnswerRe: VS2017 Code behind function to disable check Box on Combo Box Text Value Pin
Richard Deeming7-Jul-22 2:14
mveRichard Deeming7-Jul-22 2:14 
Questionis there any code for capture screenshot and retrive system information in .net mvc core? Pin
Member 1568985228-Jun-22 0:23
MemberMember 1568985228-Jun-22 0:23 
AnswerRe: is there any code for capture screenshot and retrive system information in .net mvc core? Pin
Richard Deeming28-Jun-22 1:00
mveRichard Deeming28-Jun-22 1:00 
Questionaspnet core use TempData error! Pin
Member 940386815-Jun-22 20:21
MemberMember 940386815-Jun-22 20:21 
Hi,
I write a page and use TempData to transfer information to other view.
the code like this
TempData["TP"]=tpDoc; //tpDoc is a xml file

In another view, I use
System.Xml.XmlDocument tpDoc = TempData["TP"] as System.Xml.XmlDocument;

above code is working in VS2019. But after I deploy to website, there is error:

Error.
An error occurred while processing your request.


so what is wrong in the code? Why it works in VS2019 and failed on Server?
AnswerRe: aspnet core use TempData error! Pin
Richard Deeming15-Jun-22 21:20
mveRichard Deeming15-Jun-22 21:20 
AnswerRe: aspnet core use TempData error! Pin
Mycroft Holmes16-Jun-22 12:41
professionalMycroft Holmes16-Jun-22 12:41 
QuestionSELECT DISTINCT Pin
kjell.ek19-May-22 3:16
Memberkjell.ek19-May-22 3:16 
AnswerRe: SELECT DISTINCT Pin
Ron Nicholson19-May-22 6:21
professionalRon Nicholson19-May-22 6:21 
AnswerRe: SELECT DISTINCT Pin
Member 1562749519-May-22 11:11
MemberMember 1562749519-May-22 11:11 
GeneralRe: SELECT DISTINCT Pin
Richard Deeming19-May-22 21:42
mveRichard Deeming19-May-22 21:42 
GeneralRe: SELECT DISTINCT Pin
kjell.ek20-May-22 2:58
Memberkjell.ek20-May-22 2:58 
GeneralRe: SELECT DISTINCT Pin
Alaren23-Jun-22 5:23
MemberAlaren23-Jun-22 5:23 
QuestionMilliseconds from excel Pin
kjell.ek16-May-22 10:10
Memberkjell.ek16-May-22 10:10 
AnswerRe: Milliseconds from excel Pin
Richard Deeming16-May-22 21:35
mveRichard Deeming16-May-22 21:35 
GeneralRe: Milliseconds from excel Pin
kjell.ek16-May-22 23:15
Memberkjell.ek16-May-22 23:15 
QuestionASP.NET Gridview load data Pin
Herman<T>.Instance28-Apr-22 3:16
MemberHerman<T>.Instance28-Apr-22 3:16 

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.