Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 March 2nd, 2005, 02:52 AM
Authorized User
 
Join Date: Aug 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Show server control at run time


Hi All,

I built a aspx page by C#.NET.

I want to show server controls at run time (as button, textbox).
Those server controls displaying in program results.
Ex: If result is a then show sercontrol A, if result is b then show server control B.

Can you help me?

Thanks,

Best regards.

Minh Phan.

 
Old March 2nd, 2005, 12:08 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Set up your controls as visible="false", then change the setting when the right conditions happen. Changing them in server code will change their state properly even though you have visible="false" in the control markup.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Control resize and positioning at run time. VB.Net TechNik .NET Framework 2.0 5 November 14th, 2008 09:00 AM
Run-time error '20599'; Cannot open SQL Server manishashar888 Pro VB Databases 7 March 20th, 2007 07:04 AM
How to resize a control using mouse at run time in geetha VB How-To 1 November 6th, 2006 03:36 PM
run-time error '20599' : cannot find sql server juicyfruit SQL Server 2000 1 February 16th, 2006 06:25 AM
Communicate with server durin run time jaywhy13 Classic ASP Professional 3 January 28th, 2005 08:16 PM





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