JT_SIRO
asked on
Conditional Logic in Datagrid Template Question
I have a Status row in my Obout datagrid. If the status cell is "INVALID FILENAME", I want to have it be a linkbutton that has a ajax flyout attached to it, to show the user what to do about the invalid name.
If the status is "VALID", I just want to display "Valid Filename" with no linkbutton.
How can I only show the linkbutton and flyout conditionally. I know how to do things like, change the cell properties conditionally, but I don't know how to add custom HTML / Ajax.
(The code I attached shows what I want to display when Invalid - I need the IF statement to account for valid too, if that's possible in a template)
If anyone has a better solution, for a cool pop out to display my "Invalid Filename" message, please advise. Is there some simple Javascript that I can use in my grid template? Thanks
Justin
If the status is "VALID", I just want to display "Valid Filename" with no linkbutton.
How can I only show the linkbutton and flyout conditionally. I know how to do things like, change the cell properties conditionally, but I don't know how to add custom HTML / Ajax.
(The code I attached shows what I want to display when Invalid - I need the IF statement to account for valid too, if that's possible in a template)
If anyone has a better solution, for a cool pop out to display my "Invalid Filename" message, please advise. Is there some simple Javascript that I can use in my grid template? Thanks
Justin
<cc1:GridTemplate runat="server" ID="tmpStatus">
<Template>
<asp:LinkButton ID="LinkButton1" Text="<%# Container.Value %>" runat="server"></asp:LinkButton>
<cc3:Flyout ID="Flyout1" AttachTo="LinkButton1" runat="server">
<div style="width:300px; background-color:white; border:solid 2px;">
This filename contains invalid character(s).
!@#$%^&*()+~`
Please go to your FTP folder and change the file name, then refresh this page.
</div>
</cc3:Flyout>
</Template>
</cc1:GridTemplate>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.