CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_forms Tags:
Item Type: NewsGroup Date Entered: 8/14/2007 4:46:54 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 6 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
jimi2cool
Asp.Net User
Butto click runs page_load with IsPostBack=false8/14/2007 4:46:54 PM

0

I have a web form with 2 user controls each having 2 buttons (they're both slideshow type controls) When any button is clicked, we make it to page_load and IsPostBack=false. This causes one time initialization code to get executed every time a button is clicked. it is my understanding that button clickscause postbacks and therefor should enter page_load owith ispostback=true. What might be causing this behavior? I've been stummped for hours!

Jos Branders
Asp.Net User
Re: Butto click runs page_load with IsPostBack=false8/14/2007 6:20:31 PM

0

I'm guessing that your buttons are working like hyperlinks, and not like buttons.

In other words, they don't cause the form to be posted, they just link to the same page.

I hope this helps...

Jos

nicequy
Asp.Net User
Re: Butto click runs page_load with IsPostBack=false8/14/2007 6:23:21 PM

0

Would you mind providing as much of your code as possible to represent your problem?


Jason ConwayMCP, MCTS, Certified ScrumMaster
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, Pages: 760, Published: 2006
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
Beginning visual web programming in VB .NET: from novice to professional Authors: Daniel Cazzulino, Craig Bowes, Victor Garcia Aprea, Mike Clark, Chris Hart, James Greenwood, Pages: 623, Published: 2005
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
Learning ASP.NET 3.5 Authors: Jesse Liberty, Dan Hurwitz, Brian MacDonald, Pages: 588, Published: 2008

Web:
Butto click runs page_load with IsPostBack=false - ASP.NET Forums Butto click runs page_load with IsPostBack=false. Last post 08-14-2007 2:23 PM by nicequy. 2 replies. Sort Posts: ...
Server Side button calling page_load before calling it's own click ... IsPostBack = False) Then 'run load code. Else 'run postback code ... the page on that button click, without fireing the click event. ...
IsPostBack......possible? do something 'B' when IsPostBack is false } } This is Page_Load event in Aspx page(As I said ... In Aspx page, when I click the submit button, IsPostBack is going to be ... B and D will run together because it is the first load for each ...
What is IsPostBack The Page_Load subroutine runs EVERY time the page is loaded. ... IsPostBack property. If the Page.IsPostBack property is false, ... the page is posted back to the server (i.e. from a button click on a form) Use the Page. ...
Button click hits page load before click handler - ASP.NET Forums The Page is loaded prior to any event handlers being run. ... Since the page is being posted back after button click, the page will hit page_load, ... the IspostBack property is false for the first page_load , ...

How do I send email using ajax modal popup extender - asp.net_ajax ... I get an error message when I try to run the application. .... I Got rid of the Style "display : none" and I get the same error on page load. ... display tab on button click event ... generated user controls, gridview selectedindexchanged event not fire, ispostback returns false, what's going on? ...
adding an event handler to a button - doesn't fire - ng.asp-net ... If Not (IsPostBack) Then ... End If AddHandler submitButton.Click, AddressOf Me. ... NET ... using return false at the end will ensure the button doesn't ...
Tab Control on Datalist - ng.asp-net-forum ... protected void Page_Load(object sender, EventArgs e) .... hot to remove javascript error for asp button with visible = false ยท call click event in drop down ...






web.sitemap and url query parameters

how do you reference a control on a content page in javascript?

masterpage problem

web sitemap errors

reading from sitemap

problem with menu

displaying hierarchial data from a database in a treeview in internet explorer 7

url rewritting problem - how to handle postbacks and app_themes?

server side includes

imagemap onclick event doesn't fire on masterpage

retain navigation categories and sub category links (session state /cookies?)

how to refresh content page only

menu drops down behind the content of the site

check & uncheck all nodes of tree view.

asp:menu orientation

treeview and pagestate

rebuild sitemap

posting value back using sitemappath

how do i put dynamic content in the head tag using a master page?

menu not displaying on content pages

understanding - web.sitemap

master.master.someproperty from page of a nested master fails at runtime (sometimes)

finding control in master page

how to extract similar nodes from treeview to listview

problem faced during creating menu in asp.net 2.0 by menu control provided in visual studio 2005

sitemap provider - depth of an url

treeview image

how to find web templates that include themes?

treeview and navigationurl

event does not fire on treeview selection

   
  Privacy | Contact Us
All Times Are GMT