Questions tagged [linqdatasource]

LinqDataSource is a Web Control which enables the use of Language-Integrated Query (LINQ) in an ASP.NET Web page through markup text to retrieve and modify data from a data object.

LinqDataSource is a Web Control which enables the use of Language-Integrated Query (LINQ) in an ASP.NET Web page through markup text to retrieve and modify data from a data object.

141 questions
0
votes
2 answers

The name xxx does not exist in the current context. What am I doing wrong?

var result = from lr in _db.LeaveRequest join th in _db.TotalHourslu on lr.TotalHoursEffect equals th.Minutesselect select new { lr.TotalHoursEffect, th.Minutes,…
Yves
  • 12,059
  • 15
  • 53
  • 57
0
votes
1 answer

Asp.Net ListView LinqDataSource Declaratively Bind Child Objects

I have a ListView with a LinqDataSource. In the Edit Template we need to edit both the primary object and a related (1 to 1) child object. In the past I have used code for all of this and manually handled Updates, but I am wondering whether there…
Serexx
  • 1,232
  • 1
  • 15
  • 32
0
votes
3 answers

Best Practice to renumber items in a list? SQL or C#/VB.NET

I have a database table that has a SortOrder integer column. In the UI for adding and editing table items, I have a drop down list of Integer to let the user select where in the sortorder they would like this item to appear. My question is, say the…
Hcabnettek
  • 12,678
  • 38
  • 124
  • 190
0
votes
1 answer

New Record Does Not Show In ASP.net Datagrid Inside Updatepanel

I have an asp.net webpage that contain a gridview with edit, select and delete enabled, and a detailview for inserting new record. Each control is placed inside a asp.net ajax extension control-updatepanel. And the two controls are bonded to the…
sovantha
  • 259
  • 3
  • 16
0
votes
1 answer

Why is a child property getting overwritten when a Linq object is being updated?

I'm updating one object, and trying to update any child objects along with it. Basically I'm handling the OnUpdating event of a LinqDataSource. In the DataContext class I have the ObjectUpdate function (where right now I've just got a breakpoint…
CodeRedick
  • 7,346
  • 7
  • 46
  • 72
1 2 3
9
10