473,378 Members | 1,498 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,378 software developers and data experts.

IsPostBack returns false

I am using the .Net framework 1.1 and VS.NET 2003.

I have some code where, for some reason, IsPostBack returns false messing up
my code. I have a DataGrid, whose data I am trying to edit. Instead of using
inline editing I have the code set a variable to the primary key of the row
I'm going to edit and then displaying editting controls and filling them
with data. Also I have code in the load event which clears the above
variable when IsPostBack is false, to initialize it. When I click on the
Edit button in my DataGrid, IsPostBack is correctly true and my controls are
populated correctly. However, as far as I can understand the debugger, once
the controls are populated, the load event is called again, this time with
IsPostBack as false. By the time I click the "Save" button to write the data
back, the variable is cleared.

I can work around this problem by initializing the variable elsewhere, but
this may be a problem. I wonder if it is what is described at
http://support.microsoft.com/default...Product=aspnet.
If so, can I actually get this fix without calling MS?

Thanks,
Boris Zakharin
Nov 18 '05 #1
0 1285

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

Similar topics

1
by: feng | last post by:
I am getting a problem when use the IsPostBack to determine weither this is a post back. Every time the page get hit, no matter if it is the first time or post back, the IsPostBack property always...
2
by: Pravin | last post by:
Hi, I have a doubt that how does ASP.NET find out whether the page is accessed for the first time or the page is due to a post back event, and then set the IsPostBack property ? Any ideas. ...
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...
2
by: Kevin C | last post by:
Can someone tell me how the value of IsPostBack is determined? Does it float around with viewstate? The code to retrieve the value looks like the following (Reflector - shame on me J ): ...
6
by: RA | last post by:
btnAdd_Click does not get hit; if I have IsPostBack check in Page_load. If I don't have IsPostBack check; I am able to debug through btnAdd_Click. If I don't look for IsPostBack then it...
5
by: Diego Mijelshon | last post by:
I've been debugging an issue we have in an asp.net 2.0 application for several days. The initial report of the bug was that, after waiting for some minutes with an open page, entering a number...
1
by: Kenneth Baltrinic | last post by:
I am having a very odd problem. On a page that was working until very recently we are now encountering the following situation: The page is a very basic fill in the blank form used for changing...
0
by: DC | last post by:
Hi, I am dynamically adding a usercontrol that uses "this.IsPostBack" in Page_Load to decide whether it must populate some of it's inner controls or not. Since I am adding the usercontrol to the...
5
by: BM | last post by:
I have a question that seems like it should have a simple answer, but I can't seem to find it by searching... Anyway, I'm trying to capture the IsPostBack event when I select an item within an...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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...

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.