Click here to Skip to main content
16,010,470 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: opening command line from asp.net application Pin
l0kke22-Nov-06 3:54
l0kke22-Nov-06 3:54 
AnswerRe: opening command line from asp.net application Pin
indianet22-Nov-06 15:06
indianet22-Nov-06 15:06 
QuestionUpdating Db from GRIDVIEW with Hidden Column [modified] Pin
marconi Flangepants22-Nov-06 3:45
marconi Flangepants22-Nov-06 3:45 
AnswerRe: Updating Db from DataView with Hidden Column Pin
l0kke22-Nov-06 4:01
l0kke22-Nov-06 4:01 
GeneralRe: Updating Db from GRIDVIEW with Hidden Column [modified] Pin
marconi Flangepants22-Nov-06 4:37
marconi Flangepants22-Nov-06 4:37 
GeneralRe: Updating Db from GRIDVIEW with Hidden Column Pin
l0kke22-Nov-06 5:15
l0kke22-Nov-06 5:15 
GeneralRe: Updating Db from GRIDVIEW with Hidden Column Pin
marconi Flangepants22-Nov-06 5:36
marconi Flangepants22-Nov-06 5:36 
GeneralRe: Updating Db from GRIDVIEW with Hidden Column Pin
l0kke22-Nov-06 5:53
l0kke22-Nov-06 5:53 
I understand your problem. You probably don't understand what I'm trying to tell you Smile | :)
This hidden column WILL be empty, unless you fill it again after postback, or make it visible BEFORE DataBind() is called. Data stored in hidden column are not stored in ViewState, so after postback, this column will be empy - application has no way how to refresh this data automaticaly. But if it is hidden, it means data are not going to be changed anyway so why do you want to update them back into database??? Exclude this column from your data source and you solve your problem. One reason I see why you could want to have this column is to store ID of row into it. But for storing IDs in .NET 2.0 you should use DataKeys property of GridView instead of hidden column. I think some 'smart' head in Microsoft decided that hidden columns should not contain any data (security and performance reason probably). Thats why they introduced DataKeys property.

Try to answer to following question and then I could be able to help you better: why do you need to have this column in your GridView? If you dont need it, just change your select and update statements and exclude it. If you need it, than you have to think up a workaround, similar as I posted you in my first post.

Pilo

GeneralRe: Updating Db from GRIDVIEW with Hidden Column Pin
marconi Flangepants22-Nov-06 6:32
marconi Flangepants22-Nov-06 6:32 
GeneralRe: Updating Db from DataView with Hidden Column Pin
marconi Flangepants22-Nov-06 4:54
marconi Flangepants22-Nov-06 4:54 
Questionvs studio server prob Pin
xiaowenjie22-Nov-06 3:43
xiaowenjie22-Nov-06 3:43 
AnswerRe: vs studio server prob Pin
l0kke22-Nov-06 4:10
l0kke22-Nov-06 4:10 
GeneralRe: vs studio server prob [modified] Pin
xiaowenjie23-Nov-06 3:04
xiaowenjie23-Nov-06 3:04 
GeneralRe: vs studio server prob Pin
l0kke27-Nov-06 12:44
l0kke27-Nov-06 12:44 
QuestionHow to disable one required field vaildator Pin
Rizwan Bashir22-Nov-06 3:43
Rizwan Bashir22-Nov-06 3:43 
AnswerRe: How to disable one required field vaildator Pin
marconi Flangepants22-Nov-06 3:49
marconi Flangepants22-Nov-06 3:49 
GeneralRe: How to disable one required field vaildator Pin
ednrgc22-Nov-06 7:22
ednrgc22-Nov-06 7:22 
Questionopening command line from web app Pin
jabbarsb22-Nov-06 3:42
jabbarsb22-Nov-06 3:42 
AnswerRe: opening command line from web app Pin
Guffa22-Nov-06 5:42
Guffa22-Nov-06 5:42 
GeneralRe: opening command line from web app Pin
l0kke22-Nov-06 6:02
l0kke22-Nov-06 6:02 
AnswerRe: opening command line from web app Pin
Guffa22-Nov-06 9:21
Guffa22-Nov-06 9:21 
QuestionGridview Columns Pin
netJP12L22-Nov-06 2:58
netJP12L22-Nov-06 2:58 
Questionprotecting my web application Pin
Marco225022-Nov-06 2:25
Marco225022-Nov-06 2:25 
AnswerRe: protecting my web application Pin
coolestCoder22-Nov-06 3:36
coolestCoder22-Nov-06 3:36 
AnswerRe: protecting my web application Pin
ednrgc22-Nov-06 7:26
ednrgc22-Nov-06 7:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.