Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Loosing property values; and design time rendering

Reply
Thread Tools

Loosing property values; and design time rendering

 
 
Mark Norgate
Guest
Posts: n/a
 
      08-24-2003
Hi

I'm having a couple of problems with a control I'm developing.

Firstly, I have a custom property called InnerHtml. Whenever I populate this
in the properties window, the value is immediately deleted when the
application in run. Why would this be? Here's the code for the property
accessors:

public string InnerHtml {
get {
object o = ViewState["InnerHtml"];
if( o!=null )
return o.ToString();
else
return "";
}
set {
ViewState["InnerHtml"] = value;
}
}

Secondly, my control designer does not seem to render at all in the
designer. I'm using a very simple GetDesignTimeHtml() implementation:

public override string GetDesignTimeHtml() {
return CreatePlaceHolderDesignTimeHtml( "XhtmlControl" );
}

....and I think I'm connecting it properly in the control:

Designer("Refresh.WebControls.XhtmlControlDesigner ", "XhtmlControl")

Why is nothing appearing? All I see are the resizing handles all bunched
together.

Thanks, Mark


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Property is loosing value MBO ASP .Net Web Controls 3 07-29-2005 01:18 PM
Property is loosing value MBO ASP .Net Building Controls 0 07-28-2005 09:30 AM
Property is loosing value after bulid MBO ASP .Net 0 07-27-2005 08:39 AM
using the Items property in the design time property window Ryan Taylor ASP .Net Building Controls 4 02-18-2005 01:50 PM
Rendering literal and serveral controls nested in web control at design time Stephen Miller ASP .Net Building Controls 1 01-02-2004 01:26 AM



Advertisments