How to CommandArgument of LinkButton inside EmptyDataTemplate?

Discussion in '.NET' started by lax4u, Mar 13, 2008.

  1. lax4u

    lax4u

    Joined:
    Mar 13, 2008
    Messages:
    1
    I have a gridview with <EmptyDataTemplate>.
    <EmptyDataTemplate>
    <asp:LinkButton ID="InsertSectionLink" runat="Server" CausesValidation="True" CommandName="EmptyDataTemplateInsert">Insert New Secition</asp:LinkButton>
    <asp:TextBox ID="txtDescription" runat="Server"></asp:TextBox>
    </EmptyDataTemplate>

    How do i set the CommandArgument of "InsertSectionLink" to txtDescription.Text
     
    lax4u, Mar 13, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QmVuamFtaW4gSm9sZGVyc21h?=

    LinkButton CommandArgument bound property loses value on postback

    =?Utf-8?B?QmVuamFtaW4gSm9sZGVyc21h?=, Aug 21, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    4,148
    =?Utf-8?B?QmVuamFtaW4gSm9sZGVyc21h?=
    Aug 21, 2004
  2. Patrick Olurotimi Ige

    commandargument in linkbutton Question

    Patrick Olurotimi Ige, Jun 20, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    2,298
    Patrick Olurotimi Ige
    Jun 20, 2005
  3. needin4mation@gmail.com
    Replies:
    3
    Views:
    13,566
    swati254
    Dec 23, 2008
  4. Shimon Sim
    Replies:
    2
    Views:
    6,083
  5. MattB
    Replies:
    4
    Views:
    1,520
    MattB
    Jan 25, 2008
Loading...

Share This Page