Post back

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Manan

    #1

    Post back

    hello all,

    I have a simple question. on my .aspx page I have bunch of
    textbox, and dropdowns. One of the dropdown2 has postback
    = true. When the user selects an item, the brower will
    post back to the server. My problem is I only wants the
    browser will post back to the server if (textbox1,
    textbox2, and dropdown1) are not null values. I have a
    javascript that checks for the null value for textbox1,
    textbox2, and dropdown1. how can i do in client-side,
    postback occurs only if certain fields are not blank.
    Please let me know if u have any suggestion or any
    examples that help..



    Thanks
    manan

  • Swanand Mokashi

    #2
    Re: Post back

    use validation controls and set the CausesValidatio n to true for the
    control that has AutoPostBack.
    Validate in the validation control what you want to be not null.


    --
    Swanand Mokashi
    Microsoft Certified Professional
    The personal homepage of Swanand Mokashi — engineer, founder of Malaika Consultants, and a curious tinkerer writing about technology, music, and life.

    Home of the Stock Quotes, Quote of the day and Horoscope web services
    "Manan" <anand125@hotma il.com> wrote in message
    news:1b3901c352 be$183ab3b0$a00 1280a@phx.gbl.. .[color=blue]
    > hello all,
    >
    > I have a simple question. on my .aspx page I have bunch of
    > textbox, and dropdowns. One of the dropdown2 has postback
    > = true. When the user selects an item, the brower will
    > post back to the server. My problem is I only wants the
    > browser will post back to the server if (textbox1,
    > textbox2, and dropdown1) are not null values. I have a
    > javascript that checks for the null value for textbox1,
    > textbox2, and dropdown1. how can i do in client-side,
    > postback occurs only if certain fields are not blank.
    > Please let me know if u have any suggestion or any
    > examples that help..
    >
    >
    >
    > Thanks
    > manan
    >[/color]


    Comment

    Working...