Professional Web Applications Themes

Auto Postback Issue - ASP.NET General

Hi, I've added a button control in my webpage, and called a onClick event. However it will always go back to the page load, then execute my onClick event. Is there a way which I can bypass page load?? Regards...

  1. #1

    Default Auto Postback Issue

    Hi,

    I've added a button control in my webpage, and called a onClick event.

    However it will always go back to the page load, then execute my onClick
    event.

    Is there a way which I can bypass page load??

    Regards




    yoyo Guest

  2. #2

    Default Re: Auto Postback Issue

    If you want to skip some operations that are made in the Page Load, then you
    can construct an if clause as
    If not IsPostBack then
    ..operations you want to make in the load event...
    End If

    "yoyo" <com> wrote in message
    news:#phx.gbl... 


    Onur Guest

  3. #3

    Default Auto Postback Issue

    You need to understand the event flow and sequence. During
    postback the page load function is called before the
    onClick event.
    If u need to stop some action in the page load, u need to
    use Page.IsPostBack to check if the page is called as the
    first request or post back request and act accordingly.
    Does this answer your question?
     
    onClick event. 
    execute my onClick 
    Ravi Guest

  4. #4

    Default Re: Auto Postback Issue

    I get what you mean. But there's some actions in the page load that will be
    used by other events.

    And there's no way I can detect that the event comes from this onClick event
    and stop a particular action.

    So now I am researching whether I can go straight to the onClick function
    without going to the page load.


    "Ravi Sankar" <com> wrote in message
    news:035e01c36bb7$adf5cc20$gbl... 
    > onClick event. 
    > execute my onClick [/ref]


    yoyo Guest

Similar Threads

  1. Old issue w/ Auto-reboot...
    By MonsterXIII in forum Macromedia Flash Player
    Replies: 1
    Last Post: February 9th, 06:23 PM
  2. Get controls values upon auto-postback of another control inside DataGrid
    By postings@alexshirley.com in forum ASP.NET Data Grid Control
    Replies: 0
    Last Post: April 29th, 02:08 PM
  3. auto postback(urgent!)
    By sunny in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: January 30th, 01:56 PM
  4. Datagrid postback issue
    By RRB in forum ASP.NET Data Grid Control
    Replies: 7
    Last Post: January 19th, 09:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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