Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2007, 09:56 AM
Registered User
 
Join Date: Dec 2006
Location: Washington, District of Columbia, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Event order

I need some help with the order of events. I have a formview in edit mode with many controls. I would like some controls, dropdownlist16 to be visible = True if the value of a textbox1 is "CA". The initial view of dropdownbox9 is visible = False. I put the code in the page_load section and it fires when the page is rendered once and everything looks correct.
  1. I have the pager and if I click another page none of the code fires.
  2. Also if I click the update linkbutton all the fields are updated in the datebase, but when the form is redisplayed back on the screen none of the page_load code runs.
Do I have some parameter on the formview1 set incorrectly so that an update or page_load change does not fire the onpageload event?
here is the simple code in my page_load
  Dim ddl16 As DropDownList = FormView1.FindControl("dropdownlist16")
  Dim tb18 As TextBox = FormView1.FindControl("textbox18")
        If Left(tb18.Text, 2) = "CA" Then
            ddl16.Visible = True
        End If





Similar Threads
Thread Thread Starter Forum Replies Last Post
Event - Sender & Event args dash dev C# 2005 9 December 9th, 2007 07:24 AM
Event order problem with TreeView Raconteur ASP.NET 2.0 Professional 1 April 25th, 2007 12:26 PM
About Button event and Keydown event zhangxujun1981 XSLT 1 March 6th, 2004 04:59 AM
Page Base Load event order frayed_edge BOOK: ASP.NET Website Programming Problem-Design-Solution 3 March 4th, 2004 08:37 AM
document node order vs sort node order. ladyslipper98201 XSLT 2 June 5th, 2003 11:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.