473,394 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

lifecycle problem

I’am programming a portal with a user-search. The normal usersearch is
through the nickname (textbox), which works fine. I also programmed a
detail-usersearch, which give the portal-user the opportunity to search by
more parameters (gender, age, region etc), which works also fine. I the
normal mode I just wanna have the textbox with the nickname-search. Throug
a linkbutton I wanna extend the normal search with the detailsearch. In the
linkbutton-event I set a viewstate[“isDetailSearchVisible”] = “true”. And I
check in the page_load method this viewstate. I always create in the
page_load methode the detailuser-stuff, which I add at the
HtmlGenericControl, but set visible= false in the normal mode. if viewstate
[“isDetailSearchVisible”] == “true” in the page_load methode i set the
visibility of the HtmlGenericControl = “true”. This works fine and the
detailsearch extend the normal-search. The only proplem is, that I have to
fire the linkbutton-event twice, because the page_load methode runs before
the linkbutton-event (lifecycle) and don’t see the viewstate in the first
event. And that is the reason why I have to fire the link-button event
twice, to see the detail-usersearch! How can I solve this problem, that
only one event-fire is necessary?

thanks for any help

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #1
0 802

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Epson Barnett | last post by:
I'm new to ASP.NET and have run across a problem several times while working on web apps. I often need to create content dynamically (based on an event) which contains dynamically created...
1
by: Epson Barnett | last post by:
I'm new to ASP.NET and have run across a problem several times while working on web apps. I often need to create content dynamically (based on an event) which contains dynamically created...
11
by: Homam | last post by:
The ASP.NET model is touted as a clean OO approach to developing web pages, yet sometimes the page lifecycle poses silly obstacles that forces you revert to the Olde ASP 3.0 Ways. Here's a rough...
0
by: multiformity | last post by:
I have had a lot of trouble finding any solid explinations of what methods/events are called during a page lifecycle in conjunction with a composite control. After some severe tinkering and...
5
by: Hans Kesting | last post by:
Hi, Is there good information about the asp.net page lifecycle in combination with dynamically loaded controls? Or on "how to build dynamic controls"? I keep hitting problems where values are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.