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

DropDownList inside ListView

I have a DropDownList inside a ListView. The ListView shows employees of a company, and the DDL lists groups to which they can be assigned. I used 2 separate datasources. One to list the employees, and one to list the groups. It looks fine, but…
LiHRaM
  • 360
  • 4
  • 13
0
votes
1 answer

LinqDataSource does not support the Select property when the Delete

I have LinqDataSource that being attached to GridView In Asp.net web application.
Muhammad Nour
  • 2,109
  • 2
  • 17
  • 24
0
votes
1 answer

LinqDataSource - filtering for null values

I am writing an ASP.Net web application. I have listview, it's datasource is a LinqDataSource. In my database, I have a staff table and I am trying filter for records by their team using a dropdownlist. This works fine, until I select "All" in…
0
votes
2 answers

LinqDataSource: Filtering and binding to gridview

the problem is not solved the way i wanted but i go ahead give the credit to : ŁukaszW.pl for his time and effort. i am using gridview control and a linqdatasource and its all working fine and i have added the functionlity of searchingBySubject and…
Nick Kahn
  • 19,652
  • 91
  • 275
  • 406
0
votes
1 answer

When rebinding Repeater for 2nd time (1st in Page_Load, 2nd in Page_Prerender) duplicate rows appear

I have designed a user control to present a list of questions to the user. This "question list" control just contains a repeater. There are a wide range of types of question and form fields that must be used to answer the question, so they are…
Laurence
  • 980
  • 12
  • 31
0
votes
1 answer

GridView with LinqDataSource attached - "Row not found or changed" exception

I have a GridView with a LinqDataSource attached to it. I want to control the "Row not found or changed" exception alerting the user that the record he's trying to update has been modified by someone else. At the 'OnUpdated' method of the…
0
votes
1 answer

Gridview with linqdatasource refreshing view?

I've a gridview bound to linqdatasource1 and a details bound to linqdatasource2 (for searching). When I update the data on detailsview, my gridview is not updating. I've tried handling various gridview events and databinding the gridview in code but…
Curtis White
  • 6,213
  • 12
  • 59
  • 83
0
votes
1 answer

Databinding multiple tables linq query to gridview?

My question is how can I display a linq query in a gridview that has data from multiple tables AND allow the user to edit some of the fields or delete the data from a single table? I'd like to do this with either a linqdatasource or a linq query.…
Curtis White
  • 6,213
  • 12
  • 59
  • 83
0
votes
2 answers

LinqDataSource/ListView for child records - only save when the containing record is saved?

I have a single form for editing an event, in which the user can (a) edit the details of the event (title, description, dates, etc.) in a FormView and (b) view and edit a ListView of contacts who are registered for the event. Here's my…
Herb Caudill
  • 50,043
  • 39
  • 124
  • 173
0
votes
0 answers

get all Values from a Column in a Paged Griview with using linqdatasource

Iam using a Griview with a linqdatasource which uses a Stored Procedure to get a View. for Reasons of Performance, it was neccessary to put the "allow paging" Attriute to true. But for my Gridview i want to have the Sum from a Column (Integer) for…
0
votes
1 answer

RadGrid does not display filtered data when except when on Page 1

I have a Telerik RadGrid that is bound to a Linq Datasource. On the intial page load, the data shows up fine in the RadGrid. If I remain on Page 1 and filter the data, it shows correctly. However, if I go to page 2 or 3 or any page but the first…
Xaisoft
  • 45,655
  • 87
  • 279
  • 432
0
votes
2 answers

LinqDataSource: How to define a default value

Is it legal to define a default value for a parameter the way I am in the code below? It keeps throwing an "Input string was not in a correct format." error for me. Is there a different way I should be doing this?
Abe Miessler
  • 82,532
  • 99
  • 305
  • 486
0
votes
1 answer

How to get record value from LinqDataSource via Code Behind

I've got a LinqDataSource that retrieves a single record. Protected Sub LinqDataSource1_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.LinqDataSourceSelectEventArgs) Handles LinqDataSource1.Selecting Dim BizForSaleDC As…
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
0
votes
1 answer

How do I use EntityDatasource (Or LinqDatasource) with a Union clause

How do I combine records from two tables in an Entitydatasource control? I have googled it and searched on SO with no luck. The SQL of what I need is SELECT DISTINCT username FROM (SELECT s.username FROM project_stakeholders s UNION SELECT…
Simua
  • 263
  • 1
  • 10