31 questions
0
votes
0
answers
28
views
Unable to use the Microsoft.Practices.EnterpriseLibrary.Validation
When I am trying to run the validate in the application which try to create the object using the below code I get the error message
public static void Validate<TEntity>(this IValidated entity)
{
...
1
vote
1
answer
232
views
MVC 5 and External login (With Google account) on Google Cloud Platform return null
I'm running a website that works great on Google Cloud Platform but there is a issue that I'm unable to resolve at code level on my website and I think it is related to GCP.
On the website the users ...
1
vote
0
answers
88
views
Cannot navigate to other pages on the website after AJAX calls on Google Chrome
I have a problem with my project that I have not found a solution for a long time.
One of the pages on the website has buttons that call for data from the server by AJAX calls, after I click on some ...
0
votes
2
answers
2k
views
ASP.NET issues an expired authentication Cookie
I am facing a weird issue with FormsAuthentication's .ASPXAUTH cookie. I migrated a .NET 4.6.2 MVC5 project to .NET 4.8 which is making use of FormsAuthentication and everything seem to work as ...
1
vote
0
answers
128
views
"source not available" but only under certain conditions
I have an strange error in one of the views I am trying to load.
In one of my views I have about 3600 lines of code on that view, as soon as I try to load that view it shows me an error:- source not ...
0
votes
1
answer
466
views
Has Syncfusion.EJ2.HtmlMVCExtension been removed from Asp.Net Core
Without this extension, fluent syntax does not work.
I cannot get this to work in Syncfusion Asp.Net Core.
In AspNet MVC this ran because of a class: Syncfusion.EJ2.HtmlMVCExtension
I get this error:...
0
votes
2
answers
468
views
ViewModel with three different tables, how to join the three tables by lambda into one result?
I have the following ViewModel:-
public class PostCommentReplyViewModel
{
public List<POST> PostViewModel { get; set; }
public List<COMMENT> CommentViewModel { get; set; }
...
1
vote
1
answer
2k
views
Use .Net Standard library in .Net Framework 4.7 application
I have a set of class libraries which are developed using .Net Standard 2.0. One of these class libraries implements the IAuthorizationFilter interface which is resides in Microsoft.AspNetCore.Mvc....
0
votes
0
answers
59
views
Is it possible to increase special session timeout in mvc?
Is it possible to increase special session timeout in mvc?
something like :
Session.Timeout = 30;
Session["example"] = obj;
Thanks!
0
votes
0
answers
144
views
How to Expand IIS Express Cache Size with ASP.NET 4.5.2
I am currently using the static cache built into ASP.NET quite a bit and I'm finding that my IIS server cache's a lot more than my Visual Studio IIS Express when I'm doing development. It's causing ...
1
vote
1
answer
820
views
Why is my webpage load time more than 10 secs even with 98% speed performance score?
Is there any way to identify why this website initial loading is very slow? I have checked in my each and every part of the HTML structure and code (Requests, Response).
It’s loading very fast after ...
0
votes
2
answers
3k
views
How can I return multiple datasets from a Controller?
Returning a single DataTable from a Controller works fine for me:
public ActionResult Index()
{
DataTable dtable = new DataTable();
dtable = SQL.ExecuteSQLReturnDataTable(SQL.SelectUnitsQuery,...
-1
votes
1
answer
2k
views
asp.net mvc groupbox is not wrapping around the textbox controls
I am trying to create a group box around some textbox control. Here is my code so far:
<form method="POST" name="frmInfo" id="Info">
<fieldset class="box-border">
<...
3
votes
4
answers
2k
views
Custom Sort in LINQ Query
I have a table valued function that I'm calling with a LINQ query.
As I now understand it (as referenced here), the sorting needs to be done outside of the table valued function. This means, I have ...
1
vote
1
answer
61
views
HttpPost in MVC 1
I have to maintain a project that uses MVC 1. It seems like it doesn't know anything about [HttpPost], and the same action method is called for both get and post. What is the right way to distinguish ...
60
votes
7
answers
41k
views
post and get with same method signature
In my controller I have two actions called "Friends". The one that executes depends on whether or not it's a "get" versus a "post".
So my code snippets look something like this:
// Get:
[AcceptVerbs(...