1
vote
2answers
14 views

Not able to see the jquery UI date time picker in textbox in a view

I am trying to put the jquery datetime picker in textbox by using the following link Jquery UI Date time Picker When I click on the date textbox i am not able to see the date time picker in a view ...
2
votes
5answers
59 views

How to structure projects with ASP MVC using Repository Pattern, Service Pattern, UnitOfWork, ORM (EF, NHibernate etc..)

Hi guys although I am seeing lots of discussions about this topic. cant seem to find a very detailed answer regarding this. I want to know which should I put here and there. Where should I put the ...
-1
votes
1answer
44 views

MVC4 how to get table data dynamically and show its conents [on hold]

am new to MVC and need some guidance here. i have a ui where the user will enter the table name and on click of a button, the page should display the contents of the table in gridview with the column ...
0
votes
0answers
11 views

Issue while calling 'action'Completed method - AsyncController

headlines are become null when NewsCompleted Method is being called. But AsyncManager.Parameters["headlines"] = value; is assigning headlines value. public void NewsAsync(string city) { ...
0
votes
1answer
26 views

WCF Server-to-server security mechanism

I have a .NET MVC web application with a custom forms authentication implementation that uses a FormsAuthenticationTicket embedded in an HttpCookie to manage session-based security. We are expanding ...
0
votes
1answer
30 views

Using asp.net code in a console application or service

I am currently working on a ASP.NET project in .NET framework 4.5, using Entity Framework, and working in Visual Studio Express 2012 for web. At this point, I have created a lot of models, context and ...
2
votes
1answer
17 views

“Go to declaration” feature on custom MVC helper extension Controllers and Actions

In Visual Studio default MVC helpers allow me to jump to the selected Controller or Action: But when I create a custom helper extension I'm not able to do this anymore: Is there a way to add ...
0
votes
1answer
15 views

Url.Action not passing parameter to index

In my controller I have the following code: public ActionResult Index(int? videoId, int languageId = 0) { //Some code } Then in my .chtml page I reference it ...
0
votes
3answers
25 views

asp mvc viewmodel validation attribute

I am using one ViewModel for two actions: create and update. But field CommonFile (with required attribute) is situated in Create view. So ModelState.IsValid is false in update action. How to ...
0
votes
1answer
44 views

EF5 MVC4 Child/Parent navigation properties

I have 3 classes that can be the child of a multitude of parent classes. Is there a way to find the ID/Type of the child's parent class without adding a navigation property for every possible parent ...
0
votes
2answers
2k views

AcceptChanges cannot continue because the object's key values conflict with another object in the ObjectStateManager

The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: ...
4
votes
3answers
12k views

.NET SMTP Client - Client does not have permissions to send as this sender

I'm getting strange occurance on our servers when I am trying to send an email using SmtpClient class via an ASP MVC3 project. This is the code I am using. try { var client = new ...
9
votes
1answer
183 views

Entity Framework 4 issue

Using .NET Web API (.NET 4, EF 4) and I'm getting some strange errors when debugging and really can't figure what is going on. Say in the DocumentRepository I have this constructor: public ...
0
votes
1answer
90 views

Creating a class implementing an interface

I created a class and i am adding an interface but in visual studios i noticed that the color of the interface didn't change as if it is not an interface. Even though i am using the same interface in ...
0
votes
2answers
77 views

Nested foreach to display over rows

In C# I am trying to do a nested foreach to display a list of articles. The flat HTML I have been given requires a <div class="row"> for every 3 articles. My original code to simply display ...

1 2 3 4 5 1014
15 30 50 per page