CommandArgument in GridView

Hi,

I am trying to assign two values to CommandArgument in a GridView. Is it possible?

this is what I have, but once I have a static value inside, the entire field turns into static.  thanks

                   <asp:TemplateField HeaderText="Call"  SortExpression="Call" HeaderStyle-Width="50px" >                       
                        <ItemTemplate>                                                                
                            <asp:LinkButton CommandArgument='<%# Eval("Assigned") %>***Call' CommandName="Call" runat="server" Visible="true"><%# Eval("Call") %></asp:LinkButton>
                        </ItemTemplate>
                   </asp:TemplateField> 

Open in new window

mcrmgAsked:
Who is Participating?
 
Ryan ChongConnect With a Mentor Commented:
try this instead:

<asp:LinkButton CommandArgument='<%# Eval("Assigned")+"***Call" %>' CommandName="Call" runat="server" Visible="true"><%# Eval("Call") %></asp:LinkButton>
0
 
mcrmgAuthor Commented:
any ideas? thanks
0
 
mcrmgAuthor Commented:
thank you very much
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.