inherit
150365
0
Aug 5, 2018 18:51:31 GMT -8
Violet
Oh, bless your heart.
2,928
December 2009
watchmen2013
|
Post by Violet on Aug 21, 2013 9:46:16 GMT -8
Hey programmers, hoping you could help me right quick.
I'm programming in Visual C# and have a BoundField that returns a DataField. What I want to happen is if DataField="Status" == "Completed", then use DataField="FileName" instead. Else use DataField="Status"
I can't seem to get an if/else statement to work...
|
|
inherit
143665
wildgoosespeeder wildgoosespeeder wildgoosespeeder
0
Jun 14, 2018 5:59:55 GMT -8
wildgoosespeeder
ProBoards V5 be trippin'. I'm disoriented. :P
4,393
August 2009
wildgoosespeeder
|
Post by wildgoosespeeder on Aug 21, 2013 9:51:15 GMT -8
I have some experience with C#. Source code sample, please?
|
|
inherit
150365
0
Aug 5, 2018 18:51:31 GMT -8
Violet
Oh, bless your heart.
2,928
December 2009
watchmen2013
|
Post by Violet on Aug 21, 2013 10:01:48 GMT -8
<asp:BoundField HeaderText="Status" DataField="Status" ItemStyle-Width="15%" HeaderStyle-Width="15%" ReadOnly="true" > <HeaderStyle Width="15%" Wrap="False"></HeaderStyle>
<ItemStyle Width="15%"></ItemStyle> </asp:BoundField> I'm in the process of locating the other code (I can't seem to find it).
|
|
inherit
58586
0
Oct 24, 2024 16:15:35 GMT -8
Omio
Quack.
2,358
September 2005
omio
|
Post by Omio on Aug 21, 2013 11:22:41 GMT -8
/* Add a slash before this line to un-comment this section in. if (DataField.IsCompleted()) { //Use the directory. } else { // Proceed as usual. }
public bool IsCompleted() { // Make the checks as necessary. If check is passed, return true. If check isn't passed, return false } //*/
|
|
inherit
150365
0
Aug 5, 2018 18:51:31 GMT -8
Violet
Oh, bless your heart.
2,928
December 2009
watchmen2013
|
Post by Violet on Aug 21, 2013 16:41:41 GMT -8
Thanks. I won't get to try that until tomorrow, though. (I can tell you right now, before I try it, it won't work).
|
|