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

ASP.net VB DetailsView insert : javascript Postback on Cancel issue

In my ASP.net application, using ItemInserting on a Detailsview, I am using a javascript function to display an confirm box to the user. The confirm box basically displays the result of a query from the database. THis works fine, except that…
Sridhar R
  • 13
  • 7
0
votes
1 answer

Gridview row information disappearing after selectedIndexChanged

I have a master/details setup with a GridView and DetailsView both in UpdatePanels. When the DetailsView is edited and updated, I want these changes to be reflected in the GridView, but without rebinding that data (which could change the…
Ryan
  • 17,511
  • 23
  • 63
  • 88
0
votes
1 answer

Android 4.0: trouble using Tabs + ListView + details

I have a simple app (tabs with Fragment contents) obtained by extending this sample: http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabs.html. One of those tabs needs to have a ListView and…
Buffalo
  • 3,861
  • 8
  • 44
  • 69
0
votes
3 answers

how to conditionally show/hide link in DetailsView ItemTemplate

I'm new to ASP.NET, and I'm trying to figure out how to only show a chunk of code in the .aspx file if a value is not null or whitespace. Here's what I have, within a DetailsView:
Sarah Vessels
  • 30,930
  • 33
  • 155
  • 222
0
votes
2 answers

In ASP.NET how do I find the Control ID of a TextBox that is nested within a DetailsView which is then nested in an AJAX UpdatePanel control?

n ASP.NET how do I find the Control ID of a TextBox that is nested within a DetailsView which is then nested in an AJAX UpdatePanel control ? The heirachy is: UpdatePanel1 -> dvContentDetail (DetailsView Control) -> TextBox2 I have tried something…
cyberbobcat
  • 1,169
  • 1
  • 18
  • 34
0
votes
1 answer

How come the gridView Page is not inserting or updating or refreshing. What am I doing wrong?

How come the gridView Page is not inserting or updating or refreshing. What am I doing wrong? protected void DetailsView1_ItemInserting(object sender, DetailsViewInsertEventArgs e) { using (SqlConnection cn = new…
Yves
  • 12,059
  • 15
  • 53
  • 57
0
votes
2 answers

C# For Loop Counting into DetailsView DropDownList

I am entering in Floor numbers to a DropDownList within a DetailsView Template Field. The floor count is variable and is entered from a prior DDL depending on the amount of floors in a chosen building. Once the amount of floors is passed, it should…
Sean
  • 163
  • 1
  • 2
  • 11
0
votes
2 answers

Why doesn't the detailsview control display the new line characters on the web page?

In SQL server 2008 R2, I have a table with column containing nvarchar(max) data. When I print the value from this column for one record it displays like this. Using VS2010, I have developed ASP.net web form with DetailsView, which shows above…
user219628
  • 3,755
  • 8
  • 35
  • 37
0
votes
3 answers

Disappearing checkbox label in ASP.Net 3.5 DetailsView control

I have a web form with a button and a DetailsView control on it. In the button's click event I change the DetailsView control to insert mode so I can add records: DetailsView1.ChangeMode(DetailsViewMode.Insert) Everything works fine, except for a…
Slapout
  • 3,759
  • 5
  • 40
  • 61
0
votes
2 answers

How To Prevent Rebind For The DetailsView When Hide Or Show Fields

I have a DetailsView control, in edit mode, I want to hide and show fields based on a DropDownList's value inside it (the DropDownList makes a postback). The problem is that when a hide and the show operation is maked, the DetailsView control will…
ABCD
  • 897
  • 16
  • 38
0
votes
2 answers

detail view that change color

i have one detail view one for three different table i need to change some value (background image. color of tile) in base with table come from or set the color in the xml, anyone can help me? that's the code that populate the detail…
Acunamatata
  • 55
  • 2
  • 9
0
votes
3 answers

How to detect that DetailsView displays not a data but EmptyDataText

I have a DetailsView and few buttons on my page. So I want to hide them if DetailsView displays not a data but just a value if EmptyDataText property. How can I do that? I found only one way - view.Rows[0].Cells.Count == 1 because if the data is…
abatishchev
  • 98,240
  • 88
  • 296
  • 433
-1
votes
1 answer

CSS and selecting last td

Summary: Every field rows of detailsview have 2 td and their first td can apply left border. But second one (so the rightest cell of field tr(row)) couldn't applied. Even i tried .dvRowEven td:nth-last-child(even) or .dvRowOdd…
uzay95
  • 16,052
  • 31
  • 116
  • 182
-1
votes
4 answers

What data viewing control will I need to use?

I am new to asp.net and even though I have been successfully developing some decent pages that access backend SQL server using C# code behind, I have run into a problem that I need some nudge in the right direction on. I need to be able to display…
dellbingham
  • 59
  • 1
  • 5
-1
votes
1 answer

How add icon in DetailView Widgets

I want to insert an icon in front of the attributes, how can I do it. this is my code. $model, 'options' =>…