-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: tonyravi
Message 1 in Discussion
Hi Group !! I have a asp:Template Column where I need to use IF statement
based on certain condition I need to execute diff code. For Eg: Take a look at
the sample following code. <asp:aspTemplateColumn HeaderText="MY_TRACK"
SortExpression="MY_TRACK" DataType="System.String">
<ItemTemplate>
<% If IsDBNull(DataBinder.Eval(Container.Dataitem,"MY_TRACK")) then %>
<%#String.Format("<a target='_blank'
href=MY_DETAIL_PAGE.aspx?>Detail</a>")%>
<% Else %>
<%#String.Format("<a target='_blank' href=MY_EDIT_PAGE.aspx?>Edit</a>")%>
<% End if %>
</ItemTemplate>
</asp:aspTemplateColumn> when am loading the .ASCX which contains this
part of code it gives an error External component has thrown an exception. If
anybody got an solution for this, Please let me know. Thanks in Advance.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]