473,785 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Empty Data in DetailsView, New link not showing

Hi All,
I have a Master(GridView ) / Detail(DetailsV iew) page scenario. When
one clicks on a row in the GridView, the DetailsView will be filled-up
with related data.

My problem is that, whenever one clicks on a row in the GridView that
doesnt have any data to be displayed in the DetailsView, the
DetailsView only displays "no record found" as set via the
"EmptyDataT ext" property.

I would like the "no record found" to be displayed, AS WELL as the
"New" link button. So that users can add a new record in the
DetailsView.

But the "New" link button wont show up even if I set the
AutoGenerateIns ertButton="true " to the DetailsView.

Anyone encounterd this scneario? Any clues on how can I make the
"New" link button come out?

Regards,
Henry :)

Dec 26 '06 #1
0 1972

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
562
by: Neil Young | last post by:
Hello group, I'm referring to a "rather old thread" (April 21st 2005). Because I also ran into problems with ASP.NET 2.0 formview and DBNull, but found a way around, I would like to share my experiences here. The problem: A given datatable containing nullable datetime or integer column(s) cannot be fed by a formview, if the edited or inserted date string is empty. The same in similarity with other typed columns (not tested). This is...
2
1473
by: Eric Zhao | last post by:
My details view is in insert mode and my dataset is empty but the details view doesnt show. who can help me, how to do? Also I tried to set the defaultmode to insert mode, but i found i can't cancel the inserting. thanks in advance.
2
3627
by: Andrew Robinson | last post by:
Is there any way to accomplish two way data binding in a Details View with a DataSet or DataTable as the DataSource. All I want is to get an updated DataSet or DataTable back from the DetailsView and then handle my updating manually. -Andrew
9
5339
by: Timm | last post by:
I have an ASP.NET 2.0 page with two DropDownLists. I am using declarative data binding wherever possible and trying to minimize the use of code. The list of values in DropDownList DDL2 should be (filtered) dependent upon the selection in DDL1. I think this inevitably needs some code, but I'd be happy to be told otherwise! I have some code to handle OnSelectedIndexChanged for DDL1 that sets the FilterExpression associated with the...
2
4320
by: Not Me | last post by:
Hi, I've seen this prob in a few places but the explanations/solution wasn't up to my understanding! I have a detailsview, with an insert button that works fine when there is already data in the bound datasource, but it appears blank otherwise. One solution was to make all fields templatefields, with itemtemplate and insertitemtemplate for each field. This didn't appear to change
0
1636
by: tom c | last post by:
I am going through "Walkthrough: Editing and Inserting Data in Web Pages with the DetailsView Web Server Control" found at http://msdn2.microsoft.com/en-us/library/sdba1d59.aspx I am using Access instead of SQL Server. Everything works fine until I get to the last step, where I try to insert a record. When I hit the New link it lets me add the new data, but then when I hit Insert, I get the yellow page which I have paseted below. I...
0
1173
by: ButlerDJIAM | last post by:
I have pasted code I have in an ASPx page and I want to know how to make it not display a field that is empty. There does not seem to be anything online (MSDN) that explains it. Usually the alt phone number would be empty and I do not want it displayed Any suggestions would be appreciated. <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateRows="False"
0
1597
by: luvdairish | last post by:
Controls (in order on page) 1.)GridView - each row is a work order w/ a link for details in the last column 2.)DetailsView - when user clicks on link from above GridView, the details are shown 3.)GridView - nested in the footer of the above DetailsView. each row is a person assigned to that work order 4.)DetailsView - only visible when the user clicks "add tech" in the DetailsView from #2 (above). allows technician to be added to work...
0
882
by: Artchil Gogava | last post by:
Hi All, I am displaying a record with certain fields on the DetailsView control on the ASP.NET web page. Since the record associated with the DetailsView has lots of fields, I want to split the data between several pages, but, the problem is, if I do not display fields on the DetailsView, and click Update after editing, data which is not showing on the current page gets lost. How to I keep my record persistant, how do I carry on the...
0
9485
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10161
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9958
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7506
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2890
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.