0
votes
1answer
20 views
MVC - automatically handle user notifications
My service layer sends back a DTO with a Warning/Success/Info/Error Message to the controller, which inherits from a base controller where i handle the messages austomatically.
I don't know if my ...
0
votes
1answer
39 views
upload files in asp.net mvc
I'd like to upload a file in asp.net mvc. I've the following codes. But file returns always null value. Is there anything, I should try?
.cshtml
<input type="file" name="file" id="file" />
...
1
vote
0answers
104 views
+50
How can I create safe per-web-request transaction in .net's MVC?
I need to be all my entire application transactional in its every web request it processes.
I need the transaction to start and, if there was no exceptions in controllers, commit it. Otherwise, ...
0
votes
4answers
66 views
ASP.NET MVC 4, The “WebSecurity.InitializeDatabaseConnection” method can be called only once
I am developing a code first web app in Visual Studio 2012 Express.
I use this connection string in the web.config:
<add name="myContext" connectionString="Data Source=.;Integrated ...
1
vote
1answer
397 views
MVC4 with EF sample code with Unit of work, generic repository pattern?
Are there any MVC4 code samples that use entity framework, unit of work and a generic repository pattern that I could use as a template?
1
vote
1answer
22 views
Why class attribute not work in WebAPI?
I used default ASP.NET MVC4 Web Application Template and Visual Studio Create InitializeSimpleMembershipAttribute in Filters Directory and create account Controller like this:
[Authorize]
...
1
vote
2answers
45 views
Handling model state and validation in a complex view using multiple partials in ASP.NET MVC
I'm having a little trouble in getting my head around how to break up my views and actions into manageable chunks in ASP.NET MVC, and I've tried searching but I'm still none the wiser.
In order to ...
1
vote
1answer
79 views
open modal window with paramters in mvc 4 using jqueryui
I want to load a modal window with data dynamically based on a parameter sent by the host page. The host page will have a set of edit links in a table. Clicking on any of the edit links should open a ...
0
votes
0answers
25 views
Asp.net mvc master page and razor layout
The razor view engine has not master pages. I have a picture that created in aspx view engine.
How can I create this simply in razor view engine.
0
votes
0answers
16 views
Simplemembership and cookie userdata compatibillity
I am trying to use SimpleMembershipProvider for FormsAuthentication. Now this provider internally creates a FormsAuth cookie without any additional userdata.
I want to include some other information ...
1
vote
1answer
39 views
Loop Through Multi-Level Dynamic Menus in Asp.Net MVC
i am trying to loop through multilevel dynamic menus. I have been succeeded to do this manually i.e everytime if want to display the child Menus of it's parent, I have to loop manually. I would like ...
0
votes
0answers
43 views
SignalR 1.0.1 slow first response on Windows 2008 R2 server/IIS 7.5
I'm having trouble getting my small playground app to run smoothly on my VPS, the app runs smooth on development machine but once moved to the VPS every first request is takes ages to complete.
IIS ...
-1
votes
2answers
32 views
Draw a signature and save it [closed]
I'm creating an Asp.net mvc web app which let users draw the signature using mouse or finger (on phone or pad). Is it possible to post the drawing to server so server side script can be used to save ...
8
votes
3answers
236 views
In asp.net-mvc 4 what is the best show unhandled exceptions in my view?
I have the following in my web.config:
<customErrors mode="On" defaultRedirect="Error">
<error statusCode="404" redirect="Error/NotFound" />
</customErrors>
I have a
...
-1
votes
1answer
45 views
Object reference not set to an instance of an object.
i have 3 model:
1st one:
public class CreateFieldModel
{
public FieldModel fm { get; set; }
public CategoryModel cm { get; set; }
}
2nd one:
public class FieldModel
{
...