473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

AutoPostback not seeming to go to Page_load

I am running a program I got off the net and found the author was doing an
"autopostback=true" on his textbox.

I am not sure why he was doing this as it doesn't seem to be doing anything,
but when I put trace on, I can see the page being posted, but I have the
following:

************************************************** ***********
private void Page_Load(object sender, System.EventArgs e)
{
Trace.Warn("inside Page_Load");
if(!IsPostBack)
************************************************** *************
The Trace.Warn displays on all of the other Postbacks, but doesn't seem to
on the AutoPostBack.

Is it foregoing the Page_Load for some reason?

I was going to take it out as it doesn't seem to be doing anything, but I am
curious as to what it is doing.

Thanks,

Tom.
Nov 19 '05 #1
3 1206
Hmm. a postback can not skip the Load event. May be you are overlooking. How
about putting a breakpoint in the Page_Load handler and see if it does stop
there or not.
--
Kumar Reddi
http://kumarreddi.blogspot.com

"tshad" <ts**********@ftsolutions.com> wrote in message
news:#U**************@TK2MSFTNGP10.phx.gbl...
I am running a program I got off the net and found the author was doing an
"autopostback=true" on his textbox.

I am not sure why he was doing this as it doesn't seem to be doing anything, but when I put trace on, I can see the page being posted, but I have the
following:

************************************************** ***********
private void Page_Load(object sender, System.EventArgs e)
{
Trace.Warn("inside Page_Load");
if(!IsPostBack)
************************************************** *************
The Trace.Warn displays on all of the other Postbacks, but doesn't seem to on the AutoPostBack.

Is it foregoing the Page_Load for some reason?

I was going to take it out as it doesn't seem to be doing anything, but I am curious as to what it is doing.

Thanks,

Tom.

Nov 19 '05 #2
"Kumar Reddi" <ku********@REMOVETHIS.gmail.com> wrote in message
news:ej**************@tk2msftngp13.phx.gbl...
Hmm. a postback can not skip the Load event. May be you are overlooking.
How
about putting a breakpoint in the Page_Load handler and see if it does
stop
there or not.
I thought that was what I was doing with the trace.warn statement.

Tom. --
Kumar Reddi
http://kumarreddi.blogspot.com

"tshad" <ts**********@ftsolutions.com> wrote in message
news:#U**************@TK2MSFTNGP10.phx.gbl...
I am running a program I got off the net and found the author was doing
an
"autopostback=true" on his textbox.

I am not sure why he was doing this as it doesn't seem to be doing

anything,
but when I put trace on, I can see the page being posted, but I have the
following:

************************************************** ***********
private void Page_Load(object sender, System.EventArgs e)
{
Trace.Warn("inside Page_Load");
if(!IsPostBack)
************************************************** *************
The Trace.Warn displays on all of the other Postbacks, but doesn't seem

to
on the AutoPostBack.

Is it foregoing the Page_Load for some reason?

I was going to take it out as it doesn't seem to be doing anything, but I

am
curious as to what it is doing.

Thanks,

Tom.


Nov 19 '05 #3
Placing a breakpoint and executing a programin debug mode will give you the
ability to step into the program. Trace.warn is a just a diagnostic message
tool, but its not equal to a breakpoint. Anyway, as i said its just another
diagnostic tool. If you care, try placing the breakpoint and step into the
code, rather than just relying on an output statement. I am sure you are
missing something

Good Luck
--
Kumar Reddi
http://kumarreddi.blogspot.com
"tshad" <ts**********@ftsolutions.com> wrote in message
news:eC**************@TK2MSFTNGP12.phx.gbl...
"Kumar Reddi" <ku********@REMOVETHIS.gmail.com> wrote in message
news:ej**************@tk2msftngp13.phx.gbl...
Hmm. a postback can not skip the Load event. May be you are overlooking.
How
about putting a breakpoint in the Page_Load handler and see if it does
stop
there or not.


I thought that was what I was doing with the trace.warn statement.

Tom.
--
Kumar Reddi
http://kumarreddi.blogspot.com

"tshad" <ts**********@ftsolutions.com> wrote in message
news:#U**************@TK2MSFTNGP10.phx.gbl...
I am running a program I got off the net and found the author was doing
an
"autopostback=true" on his textbox.

I am not sure why he was doing this as it doesn't seem to be doing

anything,
but when I put trace on, I can see the page being posted, but I have the
following:

************************************************** ***********
private void Page_Load(object sender, System.EventArgs e)
{
Trace.Warn("inside Page_Load");
if(!IsPostBack)
************************************************** *************
The Trace.Warn displays on all of the other Postbacks, but doesn't seem

to
on the AutoPostBack.

Is it foregoing the Page_Load for some reason?

I was going to take it out as it doesn't seem to be doing anything, but
I

am
curious as to what it is doing.

Thanks,

Tom.



Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: huobazi | last post by:
Can NOt AutoPostBack for two DDL Posted: 07-03-2003 01:35 AM I have a usercontrol a.ascx ,put two DDL on the ascx. in an aspx's codebehind Page_Load i use LoadControl to Load the a.ascx in my...
2
by: Susan van Houen | last post by:
Hi All, How do I intercept an autopostback on the client side and prevent it from executing the submit? In classic ASP I used to intercept the on_submit and just return false;
2
by: SLE | last post by:
A web user control exposes a RadioButtonList (with AutoPostBack = true) called "Question". This control also has an embedded RequiredFieldValidator control. 1. Main ASPX page is populated with...
4
by: Scott M. | last post by:
If I put RequiredFiledValidators on a page and set them up with corresponding TextBoxes everything works just fine. If I add a DropDownList and set its AutoPostBack to True, I am able to post data...
2
by: Miguel Dias Moura | last post by:
Hello, I have a Drop Down List with 3 options. I want to redirect to a new page when an options is selected. I don't want to use a button. The redirection should be fired when the option is...
3
by: Dabbler | last post by:
How do I tell wether I'm seeing autopostback vs submit button click in Page_load? Thanks for any clues.
1
by: postings | last post by:
Hi I have problems with autopostback and the gridview control. Please continue reading. The code below turns a row red when a tickbox is ticked in edititemtemplate. Note autopostback on the...
2
by: Tom Edelbrok | last post by:
Question: Why does a button event (ie: Button1_Click) get executed on the first click for a textbox control which has 'autopostback=false', but doesn't get executed until a second click when...
2
by: rn5a | last post by:
Assume that a user control has a TextBox (Page1.ascx) <asp:TextBox ID="txtName" runat="server"/> I am encapsulating the above user control in a ASPX page named Page1.aspx i.e. the ASPX page...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.