Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Auto Postback Issue

Reply
Thread Tools

Auto Postback Issue

 
 
yoyo
Guest
Posts: n/a
 
      08-26-2003
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




 
Reply With Quote
 
 
 
 
Onur Bozkurt
Guest
Posts: n/a
 
      08-26-2003
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" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> 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
>
>
>
>



 
Reply With Quote
 
 
 
 
Ravi Sankar
Guest
Posts: n/a
 
      08-26-2003
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?

>-----Original Message-----
>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
>
>
>
>
>.
>

 
Reply With Quote
 
yoyo
Guest
Posts: n/a
 
      08-26-2003
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" <(E-Mail Removed)> wrote in message
news:035e01c36bb7$adf5cc20$(E-Mail Removed)...
> 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?
>
> >-----Original Message-----
> >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
> >
> >
> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Shipping Auto Shipping Scheduling:car moving auto transport linkswanted ASP .Net 1 11-22-2013 07:02 AM
Auto-Suggested Textbox like google auto suggest =?Utf-8?B?V2FyYW4=?= ASP .Net 1 07-27-2007 03:56 AM
effecting postback without auto postback controls Psych971 ASP .Net 5 12-17-2004 08:53 PM



Advertisments