Tagged Questions
1
vote
0answers
18 views
Object is disposed after PostAsync with HttpClient
I'm trying to send a file with HttpClient and if something on the receiving side fails I want to resend the same file stream.
I'm creating a post request with a MultipartFormDataContent, which ...
0
votes
3answers
57 views
How to pass parameter to controller using jquery?
I have created an action in a controller which needs a String parameter from view. In view I have one hyperlink and onclick event I want to call a jQuery function to send that value to the action.
...
0
votes
0answers
13 views
List Containing Children & Parent Objects Are Just Parent Objects on Submit
I have a List that contains both parent and child objects, my editor templates work on the view but on submission, all objects return just as parent objects.
-1
votes
0answers
60 views
MVC3 C#: Post a List
I'm working with .NET MVC3 and Entity Framework.
On my HttpGet I search for a List and put on a attribute of my Model and return to the View:
public ActionResult Include(int id)
{
...
1
vote
1answer
30 views
Removing route element in .net mvc
What is the way to remove this route from the routecollection ? I have modular system and one module needs to override the route but when I write a new route with same name, it says
A route named ...
1
vote
1answer
32 views
Could not load type for role provider
I'm using custom role and membership providers. Both are in namespace MyDomain.Infrastructure.Security
MyCustomMembershipProvider has filename: MyCustomMembershipProvider.cs
...
0
votes
1answer
71 views
Why is my Application_BeginRequest() not invoked when the client request has a self-signed certificate?
I have an ASP.NET application that is hosted on a separate server. I wired up Application_BeginRequest() in Global.asax.cs
protected void Application_BeginRequest(Object sender, EventArgs e)
{
...
1
vote
1answer
34 views
Can I change web.config settings separately for different routes in ASP.NET MVC3?
I have an ASP.NET MVC3 application where routing is configured in such way that all requests to /UsersRequests are served by one controller and all requests to /ServiceRequests are served by another ...
1
vote
2answers
27 views
Where does MVC3 save the revision number?
The actual version number of my solution is placed in Properties/AssemblyInfo.cs:
[assembly: AssemblyVersion("1.0.0.*")]
The last part of that number is an askerisk. It will be replaced by an ...
0
votes
3answers
87 views
MVC3/Azure - What's the most scalable way to handle 50k+/second quick API calls?
I have a farm of Web Roles running on Azure based on MVC3 that potentially need to handle ~50k API calls per second. The calls will be quick, all they do is adding some data to Azure Storage Queues (I ...
2
votes
2answers
46 views
Casting error in MVC
I am developing a MVC app. with razor syntax.
I am trying to delete one value from another.
@{
double DeductedAmount1 = @Model.SanctionedAmount - @Model.DeductionAmount;
}
This ...
0
votes
3answers
75 views
MVC3 deploy to a directory, url issue
I have a mvc3 web application which will be delopyed to an directory of a website. the address of the application seems like http://wwww.xx.com/aopo/. aopo is the name of the directory. After the ...
-2
votes
1answer
41 views
call function from a separate file [closed]
I have some function, it's located another file: ../../functions.js for example.
i'm using "telerik grid" to show tables.
my function Designed to add num of row.
like:
function addNumbers(e) {
...
1
vote
1answer
314 views
French porn urls logging 404 errors to non-porn site [closed]
I've noticed a string of 404 status codes being logged in a client's error log for non-existent urls. The site is a .NET MVC site and the exact error being logged is "The controller path for ...
3
votes
1answer
69 views
ASP.Net MVC 3 - Alter URL mid POST
Let's say I have an action like this:
[HttpPost]
public ActionResult(MyObject obj)
{
//Do a SQL insert that gets an Id for obj
//Do some long-running operation in the background - don't wait for ...