Questions tagged [ispostback]

is a .net property whose value indicates whether the page is being rendered for the first time or is being loaded in response to a postback.

67 questions
0
votes
1 answer

How to control dropdownlist auotpostback in asp.net?

I have a dropdownlist with autopostback and an update panel, it works correctly, but I have also other controls in my page with autopostback. What I need is to control when the page is autopostback but the dropdownlist is not autopostback do…
Esraa_92
  • 1,558
  • 2
  • 21
  • 48
0
votes
0 answers

How does ASP.Net know, IsPostBack is true or false?

When a page is requested on server and response is sent back to the client, we tend to understand that a request/response relation exists between client and server where for every request a new request/response gets generated, than how does the…
daisy
  • 277
  • 1
  • 5
  • 16
0
votes
1 answer

Asp.Net Application Retain Query Information Upon hitting the Back Button

I have a web tool which was built by someone else. The application queries the database based on search parameters entered in by the end user such as "part number, part status, etc". When a user hits the search page they are presented with a simple…
jamHud
  • 93
  • 1
  • 1
  • 8
0
votes
1 answer

How can I display a Reset button on a form ony after the form has submitted?

After a form submits, it reverts to its original state (for the most part), and we want to have a "Reset" button that allows the user to start the page "afresh". I was hoping I could define and configure the HtmlButton in code: HtmlButton…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
1 answer

IsPostBack does not exist in current context

So basically I need a if(!IsPostBack) check in my windows form c# application because after grabbing a value from a textbox once it is no longer grabbing that value and instead giving null. However I am getting the error. The error: The name…
Brandan B
  • 464
  • 2
  • 6
  • 21
0
votes
0 answers

Why Page_Load when navigating to new aspx page?

In my ASP.NET app, Page_Load is fired on the old page when I navigate to a new one. Example: Browser is at page1.aspx. Click a button that navigates to page2.aspx. Page_Load is fired for page1.aspx just before going to page2! I already know about…
Ray White
  • 297
  • 4
  • 19
0
votes
3 answers

ASP .net PostBack and Function

I'm working on a web page, I need that when it loads first time it would get data from api's. Then I want to go from page to page with the same data. I used IsPostBack Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { …
Igor Gumush
  • 61
  • 2
  • 10
0
votes
2 answers

RadTextBox not updating

Hi I am trying to update some database values with a simple form with Telerik RadTextBoxes. I can set the text value no problem but when it comes to saving on button click the values do not get updated. My code to set the textbox is in the Page Load…
Robert Zeno
  • 67
  • 1
  • 14
0
votes
1 answer

How to use a IsPostBack for Update command with timing issue

I have asp.net detailsview which inserts data into payment allocation table, however I want to run a update command that update data into s_transaction_enquiry table, which is done in C#. When I run the code, the update command runs first before the…
0
votes
4 answers

Using ViewState variables

I want to use viewstate variable's value which is saved in one page on another page. But while doing so it shows NullReferenceException. I am new to ASP.net. Please Help me out. in register.aspx ViewState("name")=textbox1.text in success.aspx dim a…
Steve
  • 522
  • 3
  • 12
  • 28
0
votes
2 answers

Data doesn't get updated when an item is chosen from drop down list

I would like ask if you could help me with my codes as I don't get the result that I want which is to load the details of a particular paper from drop down list. Currently, when the page loads, the details of the selected item will load up. But when…
Charles Tan
  • 93
  • 2
  • 12
0
votes
2 answers

Asp.net DropDownList isPostBack is alwasy false

I'm new to ASP and I've come across a problem that I've been at all day! im using a and my postback is constantly returning false, thus my selectedIndexChanged method never gets a chance to run! Here is my code: …
Stephen Sugumar
  • 545
  • 3
  • 9
  • 35
0
votes
2 answers

ASP.net Page pageload called in postback with IsPost back = false

Hi everyone i have a strange problem which I hope u can help me with, i have a normal Asp.net page in which i handle some state data in the page load like this protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) …
0
votes
2 answers

how to see DB changes without refreshing page in ASP.NET C#

I have this button event: protected void AddDetails_Click(object sender, EventArgs e) { DataSetTableAdapters.SelectFriendsTableAdapter sft = new DataSetTableAdapters.SelectFriendsTableAdapter(); try { …
Tudor Gafiuc
  • 145
  • 1
  • 2
  • 8
0
votes
6 answers

Fields re-initialized in PageLoad c#

I am perplexed, and maybe I am just familiar with the properties of pageLoad, IsPostBack, or IsCallback. I created a Boolean variable called "first" and set it to True. First time through PageLoad, there is a line of code if first = False, if so,…
Paul T. Rykiel
  • 1,177
  • 6
  • 26
  • 48