textbox events when date is filled in a textbox with calendar pop-

Discussion in 'ASP .Net' started by =?Utf-8?B?U3JpZGhhcg==?=, Feb 14, 2006.

  1. Hi,

    I have a web form which has two text boxes and a datagrid in it. The two
    text boxes will have start date and stop date. I have a calendar pop-up
    control that fills the start date and stop date. Now I need to postback to
    the asp.net webform when these text boxes are populated with the dates. I
    don't want to use an extra button to postback to the server. Is there a way
    to capture an event that fires when the date is populated in the text boxes?
    I have tried TextChanged event but it is not firing. Please let me know.

    Thanks,
    Sridhar.
     
    =?Utf-8?B?U3JpZGhhcg==?=, Feb 14, 2006
    #1
    1. Advertising

  2. You can add an <asp:Button id="btnSumbit" runat="server"> with
    style="display:none;" and call its click method (e.g., btnSubmit.Click())
    from Javascript after you verify that both date fields have values.
    --
    HTH,
    Phillip Williams
    http://www.societopia.net
    http://www.webswapp.com


    "Sridhar" wrote:

    > Hi,
    >
    > I have a web form which has two text boxes and a datagrid in it. The two
    > text boxes will have start date and stop date. I have a calendar pop-up
    > control that fills the start date and stop date. Now I need to postback to
    > the asp.net webform when these text boxes are populated with the dates. I
    > don't want to use an extra button to postback to the server. Is there a way
    > to capture an event that fires when the date is populated in the text boxes?
    > I have tried TextChanged event but it is not firing. Please let me know.
    >
    > Thanks,
    > Sridhar.
     
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=, Feb 14, 2006
    #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. Andreas Klemt
    Replies:
    1
    Views:
    402
    Gerald Klein
    Jan 24, 2004
  2. Shevek
    Replies:
    3
    Views:
    6,070
    Shevek
    Jun 23, 2004
  3. UJ
    Replies:
    2
    Views:
    372
  4. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,300
    Michael Borgwardt
    May 30, 2004
  5. Shevek
    Replies:
    0
    Views:
    402
    Shevek
    Jun 23, 2004
Loading...

Share This Page