Tagged Questions
1
vote
0answers
19 views
Add parent row and add child for that new parent row
i am creating new record in 'Timecard' table and at the same time i want to create one record in 'TimecardStatusTrack' table using entity framework. i am able to create parent record but while adding ...
0
votes
2answers
44 views
I don't want to use @html.Action and @Rendersection can any one guide me what i use
I don't want to use @html.Action and @Rendersection can any one guide me what i use
i have a menu there is lot of companies coming in <li> it is fetching from DB
the menu should show on ...
2
votes
0answers
75 views
Using Asp.Net C# MVC4 and Json, how can I get my chart to update in line with my paged datatable
I am using datatables and charts. I would prefer to return standard data through the model but cant for some odd reason, and the controls only seem to work with Json. Perhaps it's just my ...
1
vote
1answer
28 views
MVC Razor Implementing multiple partials of same type in a View and read in controller
I need some advice on how best to implement a partial view which is based on a list and implement this multiple times on a page.
So given this:
<div>
<b>Contact Name</b>
...
1
vote
2answers
46 views
How to setup routes.MapRoute with a custom route?
Using asp.net MVC 3, I have in Global.asax
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action ...
1
vote
1answer
46 views
Dynamic ViewModel Generation in asp.net mvc 3
I am attempting something very ambitious on asp.net MVC 3 backed with C sharp 4.0 . Without further trash talk I will get
to point .
I have to build a web application in which I can make simple ...
1
vote
0answers
34 views
Mvc 3 outputcache varyByCustom extension
[OutputCache(Duration = 120, VaryByCustom = "siteId")]
public ActionResult Index()
{
if(ConfigHelper.SiteId == 1)
//massive logic here;
else if(ConfigHelper.SiteId == 2)
...
1
vote
1answer
47 views
`jqgrid` is not a function error when working in mvc4 cshtml page but working fine in aspx page
i am trying to bind json format data to jqgrid when i am trying the same code in aspx page its not throwing any error but in cshtml page page its throwing error that jqgrid is not a function.i cannt ...
0
votes
2answers
35 views
Mvc maproute multiple page levels
Is there anyway I can reduce the amount of duplication mapRoute registration in global.ascx file for mulit page levels as below.
routes.MapRoute("Article-level1",
...
1
vote
1answer
82 views
ASP.Net MVC 3 session management when using IOC pattern
I am trying to use the IOC pattern and could not find the perfect way of implementing the state management using the same. Would be great if someone can help me with the same. Thank you.
0
votes
1answer
29 views
Generate list from treeitem using c#
we have a list of the class
public class DummyClass
{
public string Text { get; set; }
public int LevelNo { get; set; }
public List<DummyClass> Children { get; set; ...
0
votes
1answer
34 views
NotSupportedException The entity or complex type cannot constructed in a LINQ to Entity query ASP.Net MVC 3
This is the first time i encountered this error .
can someone help me?
public IEnumerable<APPLICANT> GetApplicant()
{
IEnumerable<APPLICANT> applicantdata = ...
0
votes
1answer
43 views
How to convert the base64 data to video
I am recording the user video and sending the data to the controller. The controller will receive the base64 data as a string. Then i am converting the base64 string to bytes like:
public ...
2
votes
0answers
44 views
Entity Framework connect to mutiple database at runtime
I want to ask if I had a proper design. Background:I develop my web application with EF4. The application will be used by three offices. The business processes in the three offices is similar with ...
0
votes
2answers
58 views
How to write this LINQ with foreach in a better way
I was doing project in MVC3 with Entity framework. I have a LINQ query with foreach. Everything is fine. But when the data size goes up, i was facing performance issues. I dont have much experience ...