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

What is the right way to handle an asp webform save lifecycle (page_load fires before button event)?

It's years that I don't touch asp webforms and I got back into it with a legacy project. I couldn't remember exactly the page lifecycle but at my surprise, I built a form, with a submit button at the end of the form that saves on DB. The expected…
Liquid Core
  • 1
  • 6
  • 27
  • 52
0
votes
1 answer

Dynamic radiobuttonlist losing its value on drop down list selected index changed - c#

I have a dropdown list which contains values from 1 to 10. By default it's value is 5. So I have to create 5 dynamic radiobuttonlist on page load. And then after selecting some values on this radiobuttonlist, I have to change the value on…
0
votes
4 answers

ASP.Net button IsPostBack

There is a button on the page which captures the user's selections and calls another page. For some reason is it raising the !IsPostBack module on the page load event on the page with the button. This doesn't make sense to me since this is…
Susan
  • 1,822
  • 8
  • 47
  • 69
0
votes
2 answers

Refresh of Page set PostBack = true

I have one of a aspx page in my asp.net project which has a button control after clicking on the button and then refreshing the page using F5 key or refresh button of the browser, instead of setting IsPostBack property to false, it is setting it to…
Riz
  • 368
  • 4
  • 18
0
votes
0 answers

ASP.NET IsPostback return false even on button click

Why isPostback returns always false when I push the button ? (dev computer) Did Someone met this kind of issue ? I don't understand what's wrong? I created an other new form with a single button and it's the same issue. But on the prod server,…
0
votes
0 answers

I have the following error when I use DropDownlist for 3rd or second time! "failed to load viewstate is being loaded must .."

I have a "listview" for showing list of employee and a "dropdownlist" to select department. The following error occurs when I use "DropDownlist" for 3rd or second time: "Failed to load viewstate". The control tree into which viewstate is being…
0
votes
0 answers

Server.Transfer Issues

Here is what I am trying for: I have the first page (ListTraining.aspx) whose job is to display a list of trainings and allow you to select to Edit or View that training. the 2nd page (EditTraining.aspx) is suppose to give you the ability to edit…
Guy Cothal
  • 1,268
  • 1
  • 10
  • 20
0
votes
0 answers

TimerTick event is not firing when hooked inside !IsPostBack

New to asp.net. My motive is, "User has to be taken to some page after a predefined set of the time interval. Session should not be used." So, I thought to use Timer and inside the timer tick event, I can do a Server.Redirect. This timer is inside…
NANDAKUMAR THANGAVELU
  • 611
  • 3
  • 15
  • 34
0
votes
1 answer

IsPostBack which is more standard / performant

i have came across many pre written asp.net web apps and many opensource asp.net web apps. some where i had found page_load() { if(!IsPostBack) { //code logic } } where some other sites i had found page_load() { …
Sadiqabbas Hirani
  • 357
  • 1
  • 5
  • 13
0
votes
1 answer

dropdownlist always returns first value even with EnableViewState set to true

My dropdown list control always returns the first item on postback, I've tried every solution i've come across but to no avail. Bascially, I have two data classes that are simply containers for data. ConnectedRobots (representing connected robot…
0
votes
1 answer

ASP Webforms hidden input lose value on postback?

I have the following hidden input field on a aspx page: code behind: protected void…
adam78
  • 9,668
  • 24
  • 96
  • 207
0
votes
1 answer

Crystal Report Object not refreshing after IsPostBack

This is my .Net 2 ASP.Net code that used to work when hosted on Win 2000 and IIS3. 'In Page_Load, if it's NOT a PostBack then remove the cached report object so the that code later is forced to rebuild it. Under Win2000 and IIS3 when I clicked a…
DP-Dev
  • 3
  • 2
0
votes
1 answer

Where is stored the property IsPostBack? in asp.net

I have this program in asp.net
And the code…
pepe
  • 149
  • 12
0
votes
1 answer

GridView not data binding on postback of DetailsView

I have the same question as: GridView contents don’t update when underlying data changes but the answers supplied do not work for me, i'm after ideas please because so far I've wasted 3 days trying to get a GridView to refresh on the postback of a…
FlashTrev
  • 507
  • 6
  • 16
0
votes
1 answer

how to cancel enter key event for file download after file is being downloaded in asp.net using C#

I have a page that has search box and the search will be triggered when the user hits enter key (I am checking this search on IsPostBack by enter key. Then when search is completed, the user is able to hit download on the link of the file displayed…
Ahmad
  • 33
  • 1
  • 5