CompositeControl fails to display in Design view
Thu, 11 Oct 2007 13:07:47 GMT
I'm getting the following error messages when I view my
ComposisteControl in design time mode.
"Error Rendering Control - <My Control Name>"
"An unhandled exception has occurred
Object reference not set to an instance of an object"
The Control is as follows: -
public class TrackedAd : CompositeCon ...
|
Filtering List Of Css Styles Available
Thu, 11 Oct 2007 13:38:34 +0100
Hello fellow Comrades,
I am writing a custom control and trying to only return a specifi list
of styles available to select from the dropdown list of CssClass.
I know it is similar to filtering the list of controls available to select
from such as:
Public Class MyCustomEditor
Inherits ControlIDCo ...
|
Re: Retrieving values from dynamically added controls
Wed, 10 Oct 2007 06:54:45 -0000
Create dynamic control each time (Postback or First time) in Page Init
event to load values for control from viewstate or let you use
viewstate.Then store all these controls into a object array.
Now In case of postback in Button Click event, you can loop through
controls object array you made while creating th ...
|
Dependent Properties in Custom Web Server Control
Tue, 09 Oct 2007 10:05:17 -0700
Hello,
I am using VB.NET in Visual Studio 2005 to develop ASP.NET 2.0 web
applications. I am developing a control library with all the custom
controls that I can use in my projects. One of the requirement is to
build a custom DropDownList with addition functionalities specific to
my project. When I tried t ...
|
Repeater in Server Control
Tue, 2 Oct 2007 04:18:00 -0700
Does anyone know how I can use a repeater in a server control? This means I
do not want to have an ascx file. I am particulairly stuck with setting the
ItemTemplate property of the Repeater in the code behind.
thanks,
Joe C
--
www.xcomplica.com ...
|
Anyone want to meet and study for midtern?
Mon, 01 Oct 2007 21:57:03 -0000
If anybody has some time and wants to meet to study for the midterm
give me a call a 713-854-8721.
Thanks,
Joshua
...
|
Retrieving contained Controls during postback using LoadPostData
Wed, 26 Sep 2007 22:57:38 -0400
I am writing a Control that inherits from
System.Web.UI.WebControls.CompositeControl. Like many Controls, my Control
renders more than just one inner Control. When a postback occurs, I need to
get the data posted by these inner Controls (by using the postCollection
argument). However, the postDataKey argumen ...
|
|
|
mvwres in custom control
Wed, 26 Sep 2007 15:37:02 -0700
I have a couple controls that inherits from webcontrol.
When I drop one of the controls on a new webpage
I get
<link href="mvwres:2-Util.Ctrl.MyEmbeddedFile.css,Util, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null" rel="stylesheet" type="text/css" />
in the head.
I am not sure why the other c ...
|
composite control embedded resource at designtime
Mon, 24 Sep 2007 15:18:03 -0700
In my protected override void CreateChildControls()
I am trying to create an image control where the image is an embedded
resource.
Image img = new Image();
Page page = System.Web.HttpContext.Current.Handler as Page;
img.ImageUrl =
page.ClientScript.GetWebResource ...
|
Cannot get Custom Control to display in Designer
Fri, 21 Sep 2007 18:43:27 -0000
I've built this custom control and it works great, but I can't get it
to NOT throw an error in design time. I don't necessarily want it to
be visible in the designer, but even when I set it not to show up, it
still shows just an error box for the control.
Here's some of my Control's Code:
[Designer("ACTCon ...
|