Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
Difference !Page.IsPostBack and !IsPostBack
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
baburk
New Member
Join Date:
Oct 2006
Posts:
111
#1
Difference !Page.IsPostBack and !IsPostBack
Jan 22 '08, 11:02 AM
Hi all,
What is the differenct between
"if (!Page.IsPostBa ck) " and "if(!IsPostBack )"
Thanks.
kenobewan
Recognized Expert
Specialist
Join Date:
Dec 2006
Posts:
4871
#2
Jan 22 '08, 11:43 AM
Gee this wouldn't have anything to do with the page reference would it?
Comment
Post
Cancel
jhaxo
New Member
Join Date:
Dec 2007
Posts:
57
#3
Jan 22 '08, 10:50 PM
Originally posted by
baburk
Hi all,
What is the differenct between
"if (!Page.IsPostBa ck) " and "if(!IsPostBack )"
Thanks.
No difference. IsPostback is the same is this.IsPostBack and this is a page.
Comment
Post
Cancel
kenobewan
Recognized Expert
Specialist
Join Date:
Dec 2006
Posts:
4871
#4
Jan 23 '08, 11:48 AM
Originally posted by
jhaxo
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.
Comment
Post
Cancel
jhaxo
New Member
Join Date:
Dec 2007
Posts:
57
#5
Jan 24 '08, 12:27 AM
Originally posted by
kenobewan
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?
Comment
Post
Cancel
kenobewan
Recognized Expert
Specialist
Join Date:
Dec 2006
Posts:
4871
#6
Jan 24 '08, 11:57 AM
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.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment