Tagged Questions
0
votes
0answers
16 views
Creating Controller For a Derived Model using EF Code First and MVC3
I was wondering how to generate a Controller for a derived Model. Let me give you a big picture. There is a Man class from which the User class is inherited. As I read in several EF tutorials, I ...
0
votes
1answer
23 views
How to store values from TextArea in a table in ASP MVC
I am developing an ASP .Net MVC 3 application using C# and SQL Server 2005.
I am using also Entity Framework and Code First Method.
In a view, I have a DropDownList and a button and a TextArea.
...
0
votes
2answers
30 views
How to add a query string to a URL using ActionFilterAttribute?
Using asp.net MVC 3, I would like to add a query string on every request of Controller's method, using the following code, the query string is not being added to the URL.
Any idea what I am doing ...
2
votes
1answer
14 views
Cycles and Multiple cascade Paths using EF Code First
I'm getting so confused!!!
This is my first time using MVC3 and EF Code First. I'm getting the following error:
Introducing FOREIGN KEY constraint 'FK_dbo.CityUsers_dbo.Cities_CityID' on table ...
0
votes
1answer
37 views
How to retrieve values from TextArea in a Local Variable in ASP MVC
I am developing an ASP .Net MVC 3 application using C# and SQL Server 2005.
In a view, I have 2 DropDownList and TextArea and 2 buttons :
DropDownList Poste
DropDownList Fonction
Button Ajouter
...
1
vote
1answer
28 views
New version of jQuery loads another page instead of replacing div
I don't know what I did wrong, but by updating to a newer version of jQuery, my ajax page doesn't work anymore.
I was using 1.8.3 from google CDN and now I'm trying to use 1.9.1. I have also updated ...
2
votes
1answer
17 views
EF Code First Database Not Generated using MVC3
I'm developing an app using EF Code First and MVC3. The solution contains three pprojects; ProjectName.Model involving POCO classes only, ProjectName.App involving MVC3 web project from that the ...
0
votes
0answers
29 views
Button that used to post an Action and a Script in the same time in ASP MVC
I am developing an ASP .Net MVC 3 application using C# and SQL Server 2005.
In a view, I have a button 'Enregistrer' which I add in it a JQuery Script.
The script is used to delete the item selected ...
0
votes
1answer
17 views
How to use grid in VS2010 MVC3 to add and edit data?
I'm using Microsoft VS 2010 C#, MVC3.
I have Calsserooms and Students with many to many relation ship, so I add an intermediat table called Classroom_Students.
When adding students to a classroom, I ...
0
votes
1answer
19 views
add custom where condition with user in easyquery
How can I add a custom where condition with loggedin user_id in easyquery? This is a MVC3 web application. I need to prevent the users to see only there data.
easyQuery
1
vote
5answers
181 views
Would an existing non mobile MVC3 project benefit from upgrading to MVC4?
I've two projects both are Asp.net MVC 3 both don't target mobile users.
One was released already, and the other is in the middle of the development phase.
I thought of upgrading those two ...
0
votes
0answers
25 views
I need an Asmx Service with Xml Serialization on Client Side
The Objective:
Add a new asmx Service on my Service Reference folder serialized with xml. Using Visual Studio 2010.
The problem
I'm adding a reference of an asmx WebService, but I don't know Why is ...
0
votes
3answers
829 views
Unable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' MVC 3
I have met an issue regarding the casting type from HttpInputStream to FileStream.
How I did ?
I have a HttpPostedFileBase object and I want to have FileStream.
I wrote:
public void ...
0
votes
0answers
58 views
How to remove an item in DropDownList in ASP MVC using AJAX
I am developing an ASP .Net MVC 3 application using C# and SQL Server 2005.
In a view, I have a DropDownList, a button.
How can I remove an item from the DropDownList for each click of the button ...
1
vote
2answers
37 views
How to add one mvc3 c# project into other executable project?
I have mvc3 project when I start debugging it show messbox like this
How can i put this project into another executable project?Any idea?