471,316 Members | 1,000 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,316 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 1782
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Shawn Wildermuth | last post: by
reply views Thread by jeffmagill | last post: by
reply views Thread by JonBosker | last post: by
1 post views Thread by JonBosker | last post: by
2 posts views Thread by mike | last post: by
reply views Thread by Seth Williams | last post: by

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.