473,394 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Detailsview adding first record

HI,
I have a asp 2.0 page that has a sqldatasource and a detailsview i have
enabled the inserting updating deleting in the datasoure. I have a blank
table that has no records. I run the page.. I get a blank page how can I
toggle the detailsview to show the new insert form if it has no records
returned? So I can insert the very first record into the system.
Nov 19 '05 #1
2 1883
Ok.... since there has been no comment makes me wonder if i did not give
enough info.. And I am wondering to myself is this becase there is no
autonumbered ID field in the table, I wanted to make my own id and not a auto
generated one, but thinking I should but in a second key and maybe this will
get solved? If you need to see what i am talking about created a new table
with no record and only a key that is not an autonumber then start a web
project in vs 2005 beta 2 and a new asp.net page then add a sqldatasourse to
that table with insert add delete on and insert a detailsview control into
that and link it to the datasoure and run the page..
its blank no fields no way to select new for new record etc...

Please Help!

"TdarTdar" wrote:
HI,
I have a asp 2.0 page that has a sqldatasource and a detailsview i have
enabled the inserting updating deleting in the datasoure. I have a blank
table that has no records. I run the page.. I get a blank page how can I
toggle the detailsview to show the new insert form if it has no records
returned? So I can insert the very first record into the system.

Nov 19 '05 #2
Found it its the Default View property.

"TdarTdar" wrote:
Ok.... since there has been no comment makes me wonder if i did not give
enough info.. And I am wondering to myself is this becase there is no
autonumbered ID field in the table, I wanted to make my own id and not a auto
generated one, but thinking I should but in a second key and maybe this will
get solved? If you need to see what i am talking about created a new table
with no record and only a key that is not an autonumber then start a web
project in vs 2005 beta 2 and a new asp.net page then add a sqldatasourse to
that table with insert add delete on and insert a detailsview control into
that and link it to the datasoure and run the page..
its blank no fields no way to select new for new record etc...

Please Help!

"TdarTdar" wrote:
HI,
I have a asp 2.0 page that has a sqldatasource and a detailsview i have
enabled the inserting updating deleting in the datasoure. I have a blank
table that has no records. I run the page.. I get a blank page how can I
toggle the detailsview to show the new insert form if it has no records
returned? So I can insert the very first record into the system.

Nov 19 '05 #3

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

Similar topics

1
by: Shawn Wildermuth | last post by:
I have a *single* SqlDataSource that loads up a single result set that I show in a GridView. In the GridView, i've added a "Select" button and handling the SelectedItem event. I also have a...
12
by: Jim Hammond | last post by:
I am passing the whole object instead or parameters in my select and update methods. I can get the updated object if I set UpdateMethod, let ASP.NET autogenerate an update button, and then press...
0
by: Seok Bee | last post by:
Dear Experts, In my web application, I have a Master/Detail display of records using Gridview and DetailsView controls. Whenever, I made a selection of a record from the Gridview control, the...
0
by: jeffmagill | last post by:
Hi Everybody, I'm really hoping that someone can help me out because I have spent too much time on this project already! Basically, I have a DetailsView that handles all the Edits for a...
0
by: JonBosker | last post by:
Help... I have a brand new database table and I open the page that has a DetailsView control that is bound to that table it does not show anything - not even a new button - so how can I add the...
1
by: JonBosker | last post by:
Help... I have a brand new database table and I open the page that has a DetailsView control that is bound to that table it does not show anything - not even a new button - so how can I add the...
2
by: mike | last post by:
I have a page with a LoginView which contains a Gridview and a DetailsView, each in its own UpdatePanel The problem that I am experiencing is that when I select a record in the Gridview (using a...
0
by: Seth Williams | last post by:
I have a Master/Detail page - the DetailsView is set to ReadOnly, and AutoGenerates Delete/Edit/Insert buttons The Gridview has records - when a record is selected, the DetailsView is populated I...
0
by: jemitch0 | last post by:
I have a 2 column table that contains FK to other tables in my app. The 2 columns together form the PK for the table. I want to be able to update these values using a Detailsview, but can't get the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
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...

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.