Re: Field not updating in gridview unless visible?
- From: "Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN@xxxxxxxxxxxx>
- Date: Mon, 22 Jan 2007 17:38:49 +0200
Any control with Visible=false doesn't get rendered to the client and,
naturally, doesn't come back on postbacks. You can leave Visible=true and
hide with css rule display:none.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"et" <eagletender2001@xxxxxxxxx> wrote in message
news:e96$3ojPHHA.1276@xxxxxxxxxxxxxxxxxxxxxxx
In my gridview are the primary keys of the record that is being modified,
and obviously I have them hidden. However, when I try to use the update,
the id parameter -- or any field that is not visible -- does not come
across and the update fails since it's based on that id. Not sure that
quite makes sense to me, if I didn't want to update the field, I would
make it read only, visibility should have nothing to do with it. What is
the workaround to this?
.
- References:
- Prev by Date: Field not updating in gridview unless visible?
- Next by Date: Group By Rows and Total Rows
- Previous by thread: Field not updating in gridview unless visible?
- Next by thread: Group By Rows and Total Rows
- Index(es):
Relevant Pages
|
Loading