Tagged Questions
1
vote
0answers
16 views
HttpContext.Current is null in Application_PreSendRequestHeaders
I'm getting a null reference exception when starting my application. Here is the HttpContext.Current null.
protected void Application_PreSendRequestHeaders()
{
HttpResponse response = ...
0
votes
3answers
37 views
unit test to make sure my view does not crash
I'm new to unit testing so this may be a daft question.
Usinf mvc 4 I have a view which was working fine.
I declared my model at the top and all was fine.
I then extracted my models out into a ...
2
votes
1answer
94 views
Upgrading from ASP.NET MVC 3 to MVC 4, parameters being replaced with route
I recently upgraded my project from MVC3 to MVC4 and since then, some of my action parameters are being passed incorrectly.
The action has this signature:
public JsonResult FooAction(int id, int ...
0
votes
2answers
33 views
browser showing model as query string in mvc
having an issue in asp.net mvc, browser is displaying complete model as part of query string.
I have first method which gives list of employees
[HttpGet]
public ActionResult GetEmployees()
...
0
votes
0answers
21 views
MVC 4 see login.aspx instead of start page (index.cshtml) in windows authentication
Hi I have this problem that's driving me crazy!
I've developed an MVC 4 project using windows authentication. It runs fine on my personal machine. That is it opens:
...
-1
votes
0answers
32 views
Custom Timetable Algorithm
I want to create a system that will automate lesson planning for a driving school.
1 lesson = 1 hour
The conditions are
1)There should ideally be one student per car per hour.
2)Students are ...
0
votes
0answers
22 views
$(“form”).submit() goes to ActionResult of get method after filtering in Kendo grid
In the page
http://myurl/MyPage?MyId=5
I have a submit button which call the $("form").submit() in the java script and it call the controller Post method.
After i do the filtering in Kendo grid i ...
0
votes
0answers
18 views
tweet displayed on webpage asp.net mvc site
I have no idea how I can do this any one give me suggestion.My web site is on asp.net MVC 4
I am aware that their are lots of plugins that allow you to do this but all the tutorials that say how to do ...
0
votes
1answer
27 views
Posting form data from Partial view to controller using ajax
I have a jquery grid that has a list of Employee Records.To edit the records there is a link on each row.On click of that A jquery model popup opens and loads the partial view to show and edit the ...
0
votes
1answer
23 views
how to handle thank you or response pages in mvc
I'm very much a web forms man and am coming over to mvc using mvc 4.
Am I missing something or is the norm with a thank you or response page to create a separate view and direct off to that.
So for ...
0
votes
2answers
45 views
Get dynamic radio buttons values
I'm doing survey system on asp.net mvc 4. How can i get all radio buttons data in Controller ?
Example
$(document).ready(function(){
var AnswerCounter = 0;
$("#answer-add").click(function(){
...
1
vote
1answer
42 views
should i extract some of my unit test code?
I'm just looking into tdd with mvc 4.
I have an orderscontroller which takes a unit of work interface in its constructor:
public OrdersController(IUnitOfWork db)
{
this.db = db;
}
//
// ...
0
votes
0answers
59 views
kendo UI date picker validation by java script MVC 4
I have been using kendo Ui in mvc 3.0 and I am pretty comfortable with that. Recently, I switched in MVC 4 and the main problem I found in this is I am unable to validate kendo controls using MVC ...
0
votes
1answer
30 views
Get textbox with values and Checked Checkboxes from formcollection MVC 4
I am new to MVC and feeling blindfolded. May be silly.
I have form with 20 textboxes , checkboxes and few dropdowns. I want to get checked checkboxes, textbox with values and dropdowns that has ...
1
vote
3answers
956 views
Need simple Twitter API v1.1 example to show timeline using jQuery or C# ASP.NET
With Twitter turning off the API 1.0 faucet on 6/11/2013, we have several sites that now fail to display timelines. I've been looking for an "If you did that, now do this" example. Here was ...