Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

    Manan Guest

  2. Similar Questions and Discussions

    1. post back event in server control
      how do I get the button event recognized in the post back from a server control ?? ========code============= Public Class MyButton Inherits...
    2. post the result back to same page??
      <html> <body> <Form action="calc.asp" method="post" name="calc"> <P>NUM1: <input type="text" name="num1"> <P>NUM2: <input type="text"...
    3. How to Capture Control Initaited the Post Back.
      Here is my problem, I am using 3 user controls in a page(Test.aspx) which are 1.Header UC 2.Body UC 3.Footer UC HeaderUC has a DropDownList...
    4. Post back and control focus issues
      Hi, This might help : http://www.developer.com/net/asp/article.php/2237431 Natty Gur, CTO Dao2Com Ltd. 28th Baruch Hirsch st. Bnei-Brak...
    5. post back doesn't work
      On Tue, 22 Jul 2003 20:01:44 -0400, "shimonsim@talamus.com" <estshim@att.net> wrote: I bet you have somewhere in that form an html submit...
  3. #2

    Default Re: Post back

    use validation controls and set the CausesValidation 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
    [url]http://www.swanandmokashi.com/[/url]
    Home of the Stock Quotes, Quote of the day and Horoscope web services
    "Manan" <anand125@hotmail.com> wrote in message
    news:1b3901c352be$183ab3b0$a001280a@phx.gbl...
    > 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 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139