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
1 answer

Pass Parameter to LinqDataSource "OnSelecting" for Stored Procedure

I'm building a semi-elaborate RadGrid where within my NestedViewTemplate I want to have a LinqDataSource that uses a Stored Procedure to get data from the database. Here's what I have so far
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
0
votes
0 answers

LINQ to Entities' System.DateTime Parse (String) method, this method does not recognize and can not be converted into a store expression

I tried bind a AspxGridView by LinqDataSource But I get this error : LINQ to Entities' System.DateTime Parse (String) method, this method does not recognize and can not be converted into a store expression. How can I set a where condition for…
user3107343
  • 2,159
  • 6
  • 26
  • 37
0
votes
1 answer

The null value cannot be assigned to a member with type System.DateTime in C#

I tried populate a gridview from LinqDataSource.When page run I get this error : Can not be null member of type System.DateTime which is a value type can not be assigned a null value. Where is my mistake ? Aspx
user3107343
  • 2,159
  • 6
  • 26
  • 37
0
votes
0 answers

The data context used by LinqDataSource must extend DataContext when the Delete, Insert or Update operations are enabled

I am looking for a good example of using the Formview for basic CRUD operations in asp.net 4.5 with model binding. I started out by binding the formview to a linq datasource but when I attempt to update an item I get an error - "The data context…
0
votes
1 answer

GridView LinqDataSource and Calendar controls

This is seemingly easy task and yet I can't get this to worl so please give me your pointers. I have a SQL table that has one of its columns of DateTime type. I want to access it from ASP application via LinqDataSource. I want to provide WHERE…
ArtK
  • 1,157
  • 5
  • 17
  • 31
0
votes
1 answer

Using stored proc in LinqDataSource to populate GridView

As in the title I need to use stored proc to feed LinqDataSource to populate result in GridView. I got this concept to work in SqlDataSource but then I had Authentication issues (I'm running the app on tablets that can't provide Integrated…
ArtK
  • 1,157
  • 5
  • 17
  • 31
0
votes
1 answer

Asp.net Listview server side pagination

My scenario is i will get some data uploads in csv format in my server, that will have more than 60k records. and the column numbers might change file to file, now my problem is i want to display the contents of this in a listview, with…
Aneef
  • 3,641
  • 10
  • 43
  • 67
0
votes
2 answers

ASP.NET LinqDataSource "OnUpdating" method not update value to null

I have asp.net page with a linqdatasource, it use the OnUpdating method. OnUpdating="Entity_OnUpdating" In code-behind: protected void Entity_OnUpdating(object sender, LinqDataSourceUpdateEventArgs e) { MyClass objEntity =…
KopBuH
  • 140
  • 8
0
votes
1 answer

Trying to rearrange my listview, but not sure how to get the property I need to edit

So, I have a ListView that contains a steps in a process. On the left there is a Label simply stating which step it is, and on the right is a TextBox with the instructions. Then to the right of that TextBox is the usual edit and delete buttons, but…
Justen
  • 4,859
  • 9
  • 44
  • 68
0
votes
1 answer

joining statement with linqdatasource

how can I make this sql query works with linqdatasource? select tbl_WeekDays.WeekDay, tbl_DayTimes.TimeFrom, tbl_DayTimes.TimeTo from tbl_WeekDays left join tbl_DayTimes on tbl_DayTimes.WeekDayId = tbl_WeekDays.WeekDayId where tbl_WeekDays.classID…
0
votes
1 answer

Devexpress LinqServerModeDataSource vs LinqDataSource

I need to access the returned results of a LinqServerModeDataSource. When using the normal Linqdatasource you can access this information in the "Selected" event e.Result, but the devexpress object does not have this event. Now that I think about…
user245124
0
votes
1 answer

Multiple ascx (user controls) that use the same server side code

I currently have multiple user controls in a default page. Each one has a different grid that is going to become a dashboard. However to cut down on repeating code, some of the controls use the same datasource. Is there anyway to have them all share…
FirstCape
  • 639
  • 13
  • 30
0
votes
1 answer

can't find a reference for LinqDataSource used in designer

When converting a website to a web app, the designer creates the code protected global::System.Web.UI.WebControls.LinqDataSource and I get the error namespace name 'LinqDataSource' does not exist in the namespace …
0
votes
2 answers

How to programmatically wire up a LINQ dat source in ASP.Net?

myGridView.DataSource = LinqDataSource works but only for select. I have edit and delete columns and when I try to use them I get errors about events not getting caught. Specifically I've seen OnRowDeleting, but I'm sure there are others that need…
Fred
  • 3,786
  • 7
  • 41
  • 52
0
votes
1 answer

Consolidated discussion: LinqDataSource or ObjectDataSource?

I've a moderate-scale web-app with an SQL-Server based backend DB. My DB overview - Generic suggestions for SQL 2005 Framework\Design and Implementation My App framework overview - L2S (LINQ to SQL) or EF (Entity Framework) So, for now as…
Hemant Tank
  • 1,724
  • 4
  • 28
  • 56