0
votes
1answer
50 views

Use where condition for retrieving the xml data with C#

I want to fetch the data from an xml file. I am fetching the id of node from the previous page. And on next page I want to display the data from xml of that id. I am passing id of node using query ...
0
votes
0answers
35 views

Update an item but insert if it does not exists

How can I update an item but insert it if it does not exists in my context? Is there any command for that or I really need to do 2 passes? something like context.Users.UpdateOrInsert(user); or i ...
0
votes
1answer
39 views

Join issues - three tables

I've got two models, Category and Subcategory, a one to many relationship. Then I've got a model called Notice that has a one to one relationship with Subcategory(SubcategoryId as FK). Users adds ...
0
votes
2answers
32 views

MVC linking two tables by a string key rather than an int key

I'm using an intranet application - so Windows authentication. The Username has the format "ADHP\BCOOPER" - I would like the users to be able to show a "friendly name" when logged in, so want to map ...
0
votes
2answers
27 views

MVC: Displaying table data not working as expected

I have this table in database I'm trying to display the the values (ModuleID and DateEntered) in the browser as table. I'm using viewbag to pass the value to my view, which is not quite the right ...
0
votes
3answers
49 views

ASP.Net MVC Linq to Sql how to handle a null datetime

I have a Topic parent table, and a Post table childed to the Topic table. What I'm trying to do within trhe Linq query is return the last post date, from the linked Post table, however, if there are ...
0
votes
1answer
37 views

ASP.Net MVC C# retrieving the last post of a parent child child table

I have a typical forum app, using nested tables: Forum => Topic => Post(s) I'm trying to use LINQ to populate a ViewModel to show the last poster for a post, in a topic, within a Forum - however, ...
0
votes
3answers
70 views

MVC4 lambda expression for SimpleMembership

In LAMBDA-Expressions, how can I get ALL Users (Name and ID) and their assigned Roles (Name, ID) I am having a hard time figuring out the Lamda-syntax for this joins! eg: UserProfile: Username, ...
-2
votes
0answers
26 views

Wizard control - complete step always show in a new page?

I hope you can solve my problem. I wanna when i click finish button (in Confirm step)...A summary information will show in Finished step..Please see my code: Thank for reading and have a nice day :) ...
0
votes
1answer
30 views

EF Computed column is null on LINQ query with multiple joins

I have an MVC app using Entity Framwork , there are many tables but one table has a calculated column. WHen I debug in my controller, the query results on "answers" does show that the computed ...
0
votes
2answers
34 views

How to group a strongly typed model

I pass my model to my view. On this view I am displaying a table and trying to populate it with a list of information from the database. I am using asp.net-mvc, entity framework, razor, c# and LINQ ...
1
vote
3answers
39 views

unable to access the linq to sql result in mvc4

I am getting result from theee tables usign linq to sql but i am unable to use the values in the view, how i can do that as i am new to mvc here is my controller code: public ActionResult Grid() { ...
2
votes
2answers
67 views

LINQ Query C# ASP

In English I'm trying to: "Return a list of People who don't have the TeamID in their List of Teams I have a many-to-many relationship between a Person table and a Team table so each instance of a ...
0
votes
2answers
35 views

Pass LINQ model to view

Can we skip the defining model task and send the class represented in LINQ Data Context to the view? I notice that until now, most of my model is idenctical to / a composition of objects indeltical to ...
0
votes
1answer
45 views

How Do I Convert This LinqToTwitter query from Console results to View results in ASP.NET MVC 4?

Im a rookie and could use some help. I was looking at examples of LinqToTwitter and am trying to figure out how to display the results in my view instead of the console. var srch = (from search ...

1 2 3 4 5 65
15 30 50 per page