473,396 Members | 2,039 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,396 software developers and data experts.

Difference !Page.IsPostBack and !IsPostBack

111 100+
Hi all,

What is the differenct between

"if (!Page.IsPostBack) " and "if(!IsPostBack)"

Thanks.
Jan 22 '08 #1
5 2110
kenobewan
4,871 Expert 4TB
Gee this wouldn't have anything to do with the page reference would it?
Jan 22 '08 #2
jhaxo
57
Hi all,

What is the differenct between

"if (!Page.IsPostBack) " and "if(!IsPostBack)"

Thanks.
No difference. IsPostback is the same is this.IsPostBack and this is a page.
Jan 22 '08 #3
kenobewan
4,871 Expert 4TB
No difference. IsPostback is the same is this.IsPostBack and this is a page.
Except it is possible to receive a null reference error without, so they are not exactly the same.
Jan 23 '08 #4
jhaxo
57
Except it is possible to receive a null reference error without, so they are not exactly the same.
ok. if you are a page, I have never gotten a null reference error. When does it happen ? this is null?
Jan 24 '08 #5
kenobewan
4,871 Expert 4TB
ok. If you have a web form and you do not provide full referencing, best practice, you may receive a missing reference error. Suggest you try different sampling techniques. HTH.
Jan 24 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Luboą ©lapák | last post by:
Hi, I have a login page and after click on button Login I check username and password and if it is correct, i want load page, which was there before Login page. How can I do it? In javascript it...
2
by: Jensen bredal | last post by:
Hello there, I have my aspx page loaded but when i click a link on the page, then IsPostBack is always false. How can this be? The link is: <a id=x href=deaulf.aspx?id=1 runat=server> </a>
3
by: Joey | last post by:
Hi, I'm trying to add a default item to my listbox but when I do it tells me that it's not defined, could someone tell me the syntax I need to use to get the listbox control to display a default...
4
by: TJ | last post by:
Hi, There is one aspx web page that contains usercontrol. In aspx page and usercontrol , there is each submit button... Here is what I want... I want to process something depending on each...
1
by: Joey | last post by:
I am currently working on a (file-system) website in C# in VS2005. I am programming counters for the different webpages. I wrote a class and enum with functionalities exposed like... ...
4
by: Angel Of Death | last post by:
How come if I have a server side callback function, the IsPostBack value is always true , when I check it in the Page_Load ?
6
by: anthonykallay | last post by:
Hi there, I dont this this a bug but i cant get my head around it.. I have a master page that has a login control on it, to log in i press the button and the page posts back, however on the page...
6
by: Seb | last post by:
Hello, Is there the IsPostBack command in ASP (not ASP.net) ? Or How can I detect a refresh in a ASP page ? Thanks Sebastien
5
by: Hans Kesting | last post by:
Hi, Is there good information about the asp.net page lifecycle in combination with dynamically loaded controls? Or on "how to build dynamic controls"? I keep hitting problems where values are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.