Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 25th, 2006, 11:55 PM
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Custom Server Control....Custom Property Editor

Hi all,

I want to add a Property to my Custom Server control Called for example "Script" ,and when user click on it in the design time in the IDE,i want a STRING editor appear and let the user to write his/her custom Script(or String) in it. how can i do that.?
Could any one show me an article or...?

Thanks in advance.
Regards.


 
Old June 15th, 2010, 11:30 AM
Registered User
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding sCripts.

There are two ways to do it.

You can do it part of RenderControls() MEthod.

like

output.write("<script>...</Script>");

See this blog for more details. it shows.. hwo to add CSS classes but.. they all fall under same process...

www.donateknowledge.blogspot.com




Similar Threads
Thread Thread Starter Forum Replies Last Post
Property in Custom control watashi Visual C++ 0 October 22nd, 2008 11:20 PM
custom Property Enable & Disable in user control tiks C# 1 August 20th, 2008 09:31 AM
Web Custom Control - Color Picker Property elwappo ASP.NET 2.0 Professional 0 January 31st, 2008 08:37 AM
Setting Property for a Custom Control cadaats C# 0 October 17th, 2005 02:22 AM
Create an About property for custom control mouratx General .NET 1 March 27th, 2004 11:18 PM





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