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 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 10th, 2006, 05:33 AM
Registered User
 
Join Date: Nov 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Design Time Support Web Controls in ASP.NET 1.1

Hi,

I have written a web control and for that I have written also a designer class.My webcontrol has a button which has some property like

[
Browsable(true),
DesignerSerializationVisibility(DesignerSerializat ionVisibility.Content)
]
public string Value
{
get
{
return htmlText.Value;
}
set
{
htmlText.Value = value;
}
}

Now my designer class is like

public class contDesigner : ControlDesigner
{
public override bool AllowResize
{
get
{
return true;
}
}
public override string GetDesignTimeHtml()
{
try
{
string strRender = base.GetDesignTimeHtml ();
return strRender;
}
catch(Exception Err)
{
return GetErrorDesignTimeHtml(Err);
}
}
}

Now I want the behaviour like when I change the properties of this control from the control window it should be displayed at designtime e.g. when I change the text of the button (ButtonText Property) from the property window and press Enter button then the button text should be changed at instant i.e. design time. But it is not working like that. I have created all controlls through createchildcontrols(). Now what shoul I do. Please help if possible.




Arindam Jha





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET web site which support any database sanjivbshinde ASP.NET 2.0 Professional 2 October 10th, 2008 12:46 AM
Design-Time Debugging of ASP.NET Custom Controls robzyc ASP.NET 2.0 Basics 0 July 2nd, 2008 06:29 AM
ASP.Net Web Server Controls inside XSLT russmack XSLT 2 December 14th, 2006 10:02 AM
date time setting for asp.net web application swati_joshi ASP.NET 1.0 and 1.1 Professional 1 November 8th, 2006 08:59 AM





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