Columns not bound to DetailsView get set to NULL on update

I've got a page with a DetailsView. It uses a SqlDataSource which itself
uses stored procedures for Select and Update.

I don't want the user to see some of the columns, but if I don't bind them
(or if I do bind them but set Visible=False), when the Update procedure is
called, the parameters corresponding to the columns that weren't bound to the
DetailsView are all null.

This can't be an uncommon scenario, so I guess I have missed something. Any
ideas?
NickBennett [ So, 20 Januar 2008 01:09 ] [ ID #1912475 ]

Re: Columns not bound to DetailsView get set to NULL on update

Nick Bennett wrote:
> I've got a page with a DetailsView.

There was no way for you to know it (except maybe by browsing through some
of the previous questions in this newsgroup before posting yours - always a
recommended practice) , but this is a classic asp newsgroup. ASP.Net bears
very little resemblance to classic ASP so, while you may be lucky enough to
find a dotnet-knowledgeable person here who can answer your question, you
can eliminate the luck factor by posting your question to a group where
those dotnet-knowledgeable people hang out. I suggest
microsoft.public.dotnet.framework.aspnet or the forums at www.asp.net.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
reb01501 [ So, 20 Januar 2008 15:17 ] [ ID #1912478 ]
Webserver » microsoft.public.inetserver.asp.general » Columns not bound to DetailsView get set to NULL on update

Vorheriges Thema: Wrong number of arguments or invalid property assignment
Nächstes Thema: ASP.NET 2.0, WSS 3.0: a ASP.NET App in Folder of WSS 3.0->Sec.Exep