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
0 answers

Selection Changed IsPostBack or refresh

Is there a way for a SelectionChangeEvent to get refreshed after selecting an item? I'm having trouble on my windows phone application. Here is the scenario, I have three items in my combo box, when you select an item it will navigate to a page.…
JennyJane
  • 125
  • 6
  • 21
0
votes
1 answer

Keep showing visible div when doing postback

I got some JQuery code that hides elements on my page. However I would like to keep showing the visible element when a page_load event has appeared. Im using cshtml(razor) code, and in there I have a IsPost call, and I was wondering if a call to the…
Michael Tot Korsgaard
  • 3,892
  • 11
  • 53
  • 89
0
votes
2 answers

dropdownlist auto select first value in gridview with edit mode

actually I have bounded a dropdownlist in gridview in edit mode, but the problem is that whenever i try to select another value from dropdownlist, it auto select the first value. I also used !IsPostBack property on page_load event but still it is…
Gaurav
  • 557
  • 4
  • 11
  • 28
0
votes
3 answers

ASP.NET and C# - Get selected item in static DropDownList

I'm new to ASP.NET and I'm having problem with getting selected item in static DropDownList. This is the structure of my list:
huong
  • 4,534
  • 6
  • 33
  • 54
0
votes
2 answers

Preserving Button's Text on Postback

I can't for the life of me figure this out! What I want to do is on the first page load set the button's text and the label's text to the current time. However, when the user clicks the button, only the label's text is updated to the current time…
-1
votes
2 answers

2 DropDownLists on each row of Gridview

I have a gridview that is being dynamically created based on the database. Some rows of the gridview have 2 DropDownLists, while others do not depending on the item in the row. The second DropDownList of the row is dynamically created based on the…
James
  • 216
  • 1
  • 7
-4
votes
2 answers

ASP.net C3 IF condition ispostback

Can anyone explain to me what this conditions means, thanks in advance. if (!String.IsNullOrEmpty(Request["code"]) && !Page.IsPostBack) { code = Request["code"].ToString(); }
John Vega
  • 15
  • 1
  • 7
1 2 3 4
5