1
I want to do this
<%# Eval("campo1").ToString() == "nada consta" ? "nada consta" : Eval("campo1")%>
within the linkButton
<asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl= '<%#
"~/Promocao.aspx?ID="+Eval("campo2") +
Eval("campo3")%>'>...+infos</asp:LinkButton>
That is, if there is data in "field1", it displays the data. Otherwise it displays "nothing is". And, having data, when clicking on linkButton passes to another page "promocao.aspx" the field2 and field3. The way it is, next to each other, even without data in "field1" Linkbutton is available for click. Besides, the way it is, in the URL the field2 and field3 are together.
Strange explanation: "That is, if there is a field1," Let’s go if you want Linkbutton to appear only if the field1 exists? as well, has to explain better?
– novic
@I’m sorry, the explanation was lacking in detail. If it is not "nothing is in" field1 it will show the data, otherwise linkButton does not need to appear. If Simm, the user will then click on "...+Infos" going to another page, where I will retrieve the data from field2 and field3 - to mount a payment request - that will always exist, once there is field1. I also want the URL to separate the parameters campo2 and campo3 and not together sequentially, A space between them would be good.
– Daniel
A space between them would be good -> is not correct so, what you do and create an ID1 and pass the field3 what you think?
– novic
Yes @Virgilionovic
– Daniel