ASP:button

Discussion in 'ASP .Net Datagrid Control' started by Lam, May 13, 2005.

  1. Lam

    Lam Guest

    I want to dynamic generate a asp:button in C# class, not in the HTML code
    so that it can call the methods in the c# class,
    I try to use "Response.Write("<asp:button...>")
    it didn't show the button
    Can anyone help?

    Thanks a lot
    Lam, May 13, 2005
    #1
    1. Advertising

  2. Hi Lam,

    The usual way is to put a placeholder control on your form and add the
    button controls to its controls collection. There's an example here that
    creates textboxes:

    http://aspnet.4guysfromrolla.com/articles/082102-1.aspx

    "Lam" <> wrote in message
    news:e7KT$F%...
    >I want to dynamic generate a asp:button in C# class, not in the HTML code
    > so that it can call the methods in the c# class,
    > I try to use "Response.Write("<asp:button...>")
    > it didn't show the button
    > Can anyone help?
    >
    > Thanks a lot
    >
    >
    >
    Ken Cox [Microsoft MVP], May 14, 2005
    #2
    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?U3BlbmNlciBILiBQcnVl?=

    In asp event occurs once for textbox.textchanged AND button.button

    =?Utf-8?B?U3BlbmNlciBILiBQcnVl?=, Jun 13, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    678
    =?Utf-8?B?SmFzb24gTCBMaW5k?=
    Jun 13, 2005
  2. Mossman
    Replies:
    0
    Views:
    786
    Mossman
    Dec 12, 2005
  3. phancey
    Replies:
    3
    Views:
    2,584
  4. Nathan Sokalski
    Replies:
    0
    Views:
    1,059
    Nathan Sokalski
    Jan 15, 2009
  5. MU
    Replies:
    0
    Views:
    557
Loading...

Share This Page