N
Not Me
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
anything.
I can default the detailsview control to insertmode, but that's not
practical as if there's data there I want to see it first.
Another option was to put a link in the emptydatatext field, which can
call a function to change the detailsview to insertmode.
Are there any other options? otherwise can you explain how to make a
button fire a function in my code... I (think I) got half way with
href="javascript:__doPostBack('button1','')" in a link, however then I'm
getting an error telling me the event isn't validated, as it wasn't
called by the button I placed it on (I created an invisible button with
associated event)...
any tips?
Cheers,
Chris
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
anything.
I can default the detailsview control to insertmode, but that's not
practical as if there's data there I want to see it first.
Another option was to put a link in the emptydatatext field, which can
call a function to change the detailsview to insertmode.
Are there any other options? otherwise can you explain how to make a
button fire a function in my code... I (think I) got half way with
href="javascript:__doPostBack('button1','')" in a link, however then I'm
getting an error telling me the event isn't validated, as it wasn't
called by the button I placed it on (I created an invisible button with
associated event)...
any tips?
Cheers,
Chris