DEWebWorks
asked on
Trying to Make a Conditional ItemTemplate Field
hi all,
I'm still trying to get used to .net (from classic ASP). I have a GridView control and in one of the columns, if it has data in it already, I just want to show the data. If there is no data yet, I'd like to show a textbox. I don't want the person to have to edit / update each row individually. I want them to be able to fill in all of the rows and just hit the "save" button. First, is the save part possible? If not, then the second part doesn't do me any good. Assuming the save IS possible, how do I conditionally show the label or textbox? Then, when someone hits the save button, how do I loop through the rows to gather up all of the boxes?
I'm still trying to get used to .net (from classic ASP). I have a GridView control and in one of the columns, if it has data in it already, I just want to show the data. If there is no data yet, I'd like to show a textbox. I don't want the person to have to edit / update each row individually. I want them to be able to fill in all of the rows and just hit the "save" button. First, is the save part possible? If not, then the second part doesn't do me any good. Assuming the save IS possible, how do I conditionally show the label or textbox? Then, when someone hits the save button, how do I loop through the rows to gather up all of the boxes?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.