Questions tagged [detailsview]

DetailsView is a data-bound control that renders a single record at a time from its associated data source

In ASP.NET 2.0, DetailsView is a data-bound control that renders a single record at a time from its associated data source. It can optionally provide paging buttons to navigate between records, and a command bar to execute basic operations on the current record (Insert, Update, Delete). DetailsView generates a user interface similar to the Form View of a Microsoft Access database, and is typically used for updating/deleting any currently displayed record or for inserting new records.

603 questions
0
votes
2 answers

Unable to find control in detailsview template field

I have encountered this error "Object reference not set to an instance of an object." when i trying to set a value which i had session from the previous page and set it on a template field. when I debugged it, the session value was…
user1501969
  • 127
  • 7
  • 17
0
votes
1 answer

Using FindControl to locate controls in an ASP.Net DetailsView from a VB.Net code-behind file not working

I'm looking to get FindControl to "see" controls in an ASP.Net DetailsView from a VB.Net code-behind file. It doesn't find any of them. The markup for the page is using a MasterPage. <%@ Page Title="Attendance" Language="vb" …
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
0
votes
0 answers

Passing value from detailsview to gridview

I have 2 gridview and detailsview, retrieving using objectdatasource. When i select GridView1, it will display its details in GridView2 and a DetailsView which visible is false. The value inside the detailsview would be pass to gridview. However,…
user1501969
  • 127
  • 7
  • 17
0
votes
1 answer

How do I navigate to a detail view based on UILocalNotification?

I have an application that creates 6 UILocalNotifications each day, spaced at 2 hour intervals. Each notification is associated with a unique log entry screen. In the application's Navigation controller, the root of the stack is a UITableView with…
Doug Baker
  • 63
  • 1
  • 3
0
votes
1 answer

How to hide link button based on a result returned by a class ?

I am bit new to C# and got a question. I have a class as below that simply return false ( this is just to test) public class SetAuthority { public SetAuthority() { // // TODO: Add constructor logic here // } …
BenW
  • 1,393
  • 1
  • 16
  • 26
0
votes
1 answer

record.data not passing data from controller to nested component in view in Sencha Touch 2

I have the following code in which I am trying to pass a list item's record to a detail view using a controller. No data gets passed and nothing is displayed in the detail view. Main.js: Ext.define('EventsTest.view.Main', { extend:…
M Azam
  • 518
  • 1
  • 7
  • 28
0
votes
3 answers

Detailsview in ASP.NET

I am trying to hit sql server with objectdatasource and return a datatable to fill my details view control. the selected ID value is returned by a gridview control. It seems like the datatable is not filled by adapter, and i couldn't figure out why.…
John
  • 190
  • 1
  • 4
  • 15
0
votes
1 answer

Detailsview doesn't show textboxes when there is no data

I am using DetailsView only for Inserting data, for select, update and delete I use Gridview. So when there is no data in the table I don't see the textboxes to insert new data, how to fix this?. Any help is appreciated! DetailsView code …
scc
  • 385
  • 1
  • 3
  • 12
0
votes
1 answer

select row in gridview and display in detailsview

I have a gridview with a select link. Supposedly, when i click on the select link, that particular details to the DataKeyNames should appear. However, for my case, whenever I click "select" only one record came out and it doesn't change and match…
user1501969
  • 127
  • 7
  • 17
0
votes
1 answer

FindControl does not work in a modified DetailsViewControlCollection

This is probably another case where I am going about it all wrong. I blame myself. But I am confused by the behavior of FindControl in the DetailsView as shown below. FindControl works until I remove a field from the DataControlFieldCollection. …
personaelit
  • 1,633
  • 3
  • 31
  • 59
0
votes
1 answer

-[__NSCFConstantString objectForKey:]: unrecognized selector sent to instance 0x21eb4

I am currently trying to get a search display controller to segue to a detail view but not having much luck! I have the search working and the mainTableView(original table view) seguing with the title and image but it crashes when I try to segue…
0
votes
2 answers

DetailsView can't figure how to trigger update event

I've been trying to make use of DetailsView for the past few days to show and edit data from a single record taken from a GridView, both read their datafrom an SqlDataSource. I've been searching the internet and the MSDN for info about how to use a…
MaddoScientisto
  • 189
  • 4
  • 17
0
votes
0 answers

Refreshing an ASP.Net GridView when changes are made to DetailsView

We have an ASP.Net / VB.Net code-behind web form. On this form is a GridView and a DetailsView. When there is a change in the details view we would like the changes to be reflected in the GridView. This code is being used to populate the…
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
0
votes
3 answers

how to setup bindable checkbox value automatically changed to male/female

I'm using detailsview in asp.net. I have gender field. when this field checked, checkbox text automatically changed to 'male', otherwise 'female'. How can i do? How to setup checkbox to this feature?
ebattulga
  • 10,774
  • 20
  • 78
  • 116
0
votes
0 answers

Check if values exist in a table using C#

I want to check if certain values exist in a table based on ID in the DetailView. For instance, i have 4 fields in the table: ID Approved1 Approved2 Approved3 A)First i want to check if Approved1, Approved2, Approved3 are not null, meaning the…
moe
  • 5,149
  • 38
  • 130
  • 197