Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > asp.net building controls > august 2003

Filter by week: 1 2 3 4 5

RaisePostBackEvent and Web Controls Event Handlers
Posted by Lucas Tam at 8/31/2003 4:13:21 PM
If RaisePostBackEvent fires, does this disable Webcontrols events? It seems when RaisePostBackEvent, my webcontrols event handlers such as button.click no longer work. So, what is the best way of mixing non-composite controls and web controls? Thanks! -- Lucas Tam (REMOVEnntp@rogers....more >>


Control development
Posted by The_Boss at 8/31/2003 8:50:42 AM
I developed a control and a component. My control uses my component. I have a test application and when I add my control to a form in the test application, my control's dll is automatically added to my test projects references list. But I need to add my component's dll to be added to reference l...more >>

save control state and display it after postback
Posted by Uri at 8/30/2003 8:28:50 PM
Hi, i built a control which contains two listbox controls and two buttons which uses to transfer elements from one listbox to the other and back. i used the buttons click events to transfer the selected item from one list to the other but when returning from the sever the lists items are gone. ...more >>

Inherit Datagrid
Posted by Martin Kulov at 8/29/2003 11:23:27 AM
Hi guys, I am trying to implement server control that inherits DataGrid control in order to preserve all of his properties and templates. However I want to add others web controls besides the datagrid control that will provide custom functionality. The problem is that these controls are...more >>

web form add a line break to a place holder
Posted by mbalam at 8/28/2003 4:03:27 PM
have a web form with page layout = FlowLayout have a PlaceHolder adding controls to the PlaceHolder e.g. PlaceHolder.Controls.Add (TextBox1); question how do I had a line break to the PlaceHolder ?...more >>

Programmatically created web user control events
Posted by jop NO[at]SPAM consignit.se at 8/27/2003 8:53:55 AM
I'v made a web user control that I use in one of my .aspx pages. This user control is dynamically loaded a number of times depending on the content of a ArrayList(stored in the session) containing DataSets. Each DataSetscontains the necessary information required to fill the user control with da...more >>

Numbers or letters in a TextBox
Posted by PABLIN at 8/26/2003 7:06:09 AM
How I can have a TextBox that to only lets me enter letters or numbers? ...more >>

Custom Controls and Type Properties not saving in html tag
Posted by Luciano Criscola at 8/25/2003 12:52:29 AM
Hi all, I am building a custom control and I add one primitive type (MyProperty1) and one MyClass type (MyProperty2) as public properties I had to make MyClass implement the IComponent interface so it would show properly in the properties window ( It show the name of the property and a + s...more >>



Can not access properties of controls of user control???
Posted by chaoy NO[at]SPAM pacbell.net at 8/24/2003 12:36:51 PM
Hi, I have created a user control, and need to change the properties of controls on the user control. However, if the form of user control are not runat=server, I got error of "...is null or not a object". If I have the form runat=server, I got error of "A page can have only one server-side ...more >>

Composite Controls and Me.Page.IsPostback Problem
Posted by Lucas Tam at 8/23/2003 5:24:38 PM
Hi all, In my Composite Control's Sub New Function I am unable to check if Me.Page.IsPostback. Me.Page is Nothing (so i get a NullReferenceException). Do I have to pass the Page Object to my composite control to get access to IsPostBack? Thanks. -- Lucas Tam (REMOVEnntp@rogers.co...more >>

Why is it that a TableCell cannot have both Text and a Child Control?
Posted by Robert Zurer at 8/21/2003 6:03:08 PM
Why are child controls and text mutually exclusive using ASP.NET? The code below gives me either one or the other? private void Page_Load(object sender, System.EventArgs e) { Control formMain = this.FindControl("Form1"); Table table = new Table(); TableRow row = new TableRow();...more >>

templated control default
Posted by Amit Patel at 8/21/2003 10:41:59 AM
Hello, I've created a templated control in C#, and I am trying to have default values for templates if the user of the control does not specify. For example, if the aspx code should look like: <custom:myControl runat="server" id="control1"> <aHeader>a non-default Header</aHeader> </cus...more >>

Dynamic Loading Style.
Posted by Robin van Nooy at 8/20/2003 6:05:42 PM
Is there an easy way to load a style like loading a template with LoadTemplate. I've created a workaround for this, but there must be a better way to do this. I want to create a kind of skin-system. But I want to load the layout of datafields and the style in different files. So I can choos...more >>

Problem with a usercontrol
Posted by Amir Davoodi at 8/20/2003 1:33:06 AM
Dear Friends, I'm working on a web based(ASP.Net) project. This project contains multiple web projects. I want to use a usercontrol which has been developed in some of these projects, within another project. I Recieve this parser Error : The virtual path '[The path of that usercontrol]' m...more >>

EventArugment Not Being Passed
Posted by Lucas Tam at 8/19/2003 2:24:21 PM
Hi all, I've been struggling for the past few days to get a custom control to pass events to RaisePostBackEvent. My page successfully fires the RaisePostBackEvent, however, the EventArugment is always nothing. I do not understand why the event argument is not being passed. Here is ho...more >>

Datagrid Binding Error: "Object does not match target type."
Posted by Karahan Celikel at 8/19/2003 9:49:53 AM
I have a datagrid in which I want to visualize objects of various type (they inherit from the same base class). I want to display common properties of the objects over the grid. At runtime I create an ArrayList that contains all the objects . When I make the binding I obtain the following err...more >>

Can someone comment my Custom control?
Posted by Flare at 8/18/2003 7:50:13 PM
Hi. I have now used ASP.NET for a couple of weeks and it _really_ looks good. I have made a custom control, wich has to act as my header on every site. Before i go any further with my control I would appreciate your comments on the design (wich problably is bad) Sorry for the long post... ...more >>

Reusing web user controls across application
Posted by Niranjan at 8/16/2003 4:41:55 PM
Hi, How can we reuse user controls across web applications. I have controls that are common to my company and want to reuse them across all applications. Thanks Niranjan ...more >>

Inheriting from System.Web.UI.WebControls.Table
Posted by Jimmy [Used-Disks] at 8/14/2003 2:24:10 PM
I am trying to create an ASP.NET control by inheriting from Table. I would like to stop the Rows property from being displayed/persisted at design-time, plus I would like to have new properties I have introduced be persisted as nested tags within my controls tag in the ASP.NET page. To do this I...more >>

Adding Literal Controls in CreateChildControls - Is this bad?
Posted by klj_mcsd NO[at]SPAM hotmail.com at 8/14/2003 1:59:47 PM
Adding Literal Controls in CreateChildControls - Is this bad? Someone told me it was but every example I've seen does not have a problem doing it. They told me I should add the html to the page in the render method and add the control where I want them to go. I just wanted to get other peopl...more >>

Composite control events dont fire.
Posted by Arthur Puszynski at 8/13/2003 5:57:48 PM
Hello, I cannot figure out why this doesnt work. This is almost exactly the same as the samples I've seen but it doesnt work for me. I am making a composite control with a button that has a click event but the event never fires. Here's my code: public class WebCustomControl1 : System.We...more >>

Circular references are not supported
Posted by Dan C Douglas at 8/13/2003 5:00:26 PM
I have a user control, and I would like to create another instance of the user control inside the same user control. I am doing this because the user control has a datagrid, and in the datagrid I instantiate a reference to a new instance of the same ascx file that I am currently on and place i...more >>

receiving databound property data in a custom server control
Posted by dm2 NO[at]SPAM rcs.urz.tu-dresden.de at 8/13/2003 3:47:17 AM
Hi, Background: I wrote a custom server control with a public property. Everything works perfekt when I use that server control as following: <DM:Visitenkarte id="Visitenkarte1" runat="server" KontaktID="1"></DM:Visitenkarte> Problem: I would like to use my control within another. So,...more >>

[ASCX In Separate Project]
Posted by Jim Christiano at 8/12/2003 3:01:14 PM
I would like to place an .ASCX file in one project while my main program is in another project. If this is possible, what type of project should I use for the ASCX? How do I call the ASCX from my main program? Do I use the standard @Register directive? Thanks in advance, Jim Christiano ...more >>

Looking for a tutorial on building custom controls
Posted by Billy Porter at 8/12/2003 12:01:18 PM
Any ideas? -- Thanks, Billy ...more >>

Custom Server Control with Panel --> how?
Posted by Gönen EREN at 8/11/2003 7:05:42 PM
Hi , I want to built a custom server control which has: * a panel * a button which sets the visiblity of the panel true or false and finally a want to add controls in the custom control (label,datagrid,...) in the aspx page just like an asp:panel i have a very small experience in bui...more >>

When does LoadControl really load the control?
Posted by rory.plaire NO[at]SPAM co.benton.or.us at 8/11/2003 4:24:19 PM
Hi, I'm loading a user control (.ascx) with LoadControl in a code-behind page. LoadControl returns successfully, and the valid reference it returns is successfully cast to the type of control I need (TimeEntryGrid). All this is done in Page_Init so that the control can catch the Page_Load the...more >>

Exposing a string array on a control - how to get PB support
Posted by Howard Dierking at 8/11/2003 10:59:02 AM
I've got a custom server control where I need to provide the user the ability to create a list of items items (I know that they will all be strings). In the property browser, I want to use the default type editor for string arrays (basically a textbox where items are seperated by new lines), an...more >>

possible to use TableItemStyle/ TableStyle to control radiobuttonlist appearence?
Posted by Christian H at 8/10/2003 12:47:45 AM
Hi! I'm so fed up with the built'in control's beeing hard to customize.. I'm trying to modify the radiobuttonlist, so that I can control the appearence of the table when using TableLayout. Right now you can only modify borderwidth,color,style and cellpadding,spacing. I'd like to add the poss...more >>

Cannot create an object of type 'System.String[]' from its representation 'String[] Array'
Posted by Hessam at 8/8/2003 1:06:16 PM
Hello, I am designing a .net custom control in VS.net 7.1 and my control exposes an array of strings which are supposed to be the items to show. To do this have declared a private string[ ] variable and a public property which returns it. string[] options = new string[1]; public string[] Opt...more >>

how to fire a postback event
Posted by kevinchu1021 NO[at]SPAM yahoo.com at 8/8/2003 12:28:06 PM
Hi, All I design a composite custom control, which has three dropdownlists in it. I find as long as one of the dropdownlist control's id is assigned using uniqueid property of my custom control then a postback event will be fired, but since my dropdownlist has javascript event which does some...more >>

Dynamically create non-fixed number of TextBoxes in Composite Control
Posted by Paul at 8/7/2003 3:55:24 PM
Hi, I have a composite control(TextBoxControl.cs) in my DynamicTextBox.aspx. On the Page_Load of the DynamicTextBox.aspx page, I am calling a business tier assembly, which is returning an ArrayList containing an unknown amount of objects. I would like to pass this ArrayList to my compo...more >>

Code Blocks in Custom Control
Posted by Darrin Boyd at 8/6/2003 9:27:02 AM
I have developed a custom control and I want to allow the user to insert code blocks in the .aspx (or .ascx) file to set attributes on the control. For example, I want to allow the user to do this: &lt;pwc:SortColumn HeadingText='<%=GetHeadingText(0)% >'/&gt; &lt;pwc:SortColumn HeadingTe...more >>

ControlDesigner not invoked on custom control when control is rendered within another custom control
Posted by msokol NO[at]SPAM myrealbox.com at 8/6/2003 8:20:38 AM
I have a custom control that has a simple designer (derived from System.Web.UI.Design.ControlDesigner) associated with it (using the DesignerAttribute). The overriden GetDesignTimeHtml provides the design-time display correctly when this control is placed on a web form. My problem is I also ...more >>

IRootDesigner in ASP.NET
Posted by Mihail Luca at 8/5/2003 3:21:01 PM
Hi ! After the first researches I found out that with WebForms there is no easy way to implement an IRootDesigner. After inspecting the Web.UI.Page class I have found that it uses these attribute: [ DesignerAttribute(typeof( Microsoft.VSDesigner.WebForms.WebFormDesigner) ), System.ComponentM...more >>

Exposing Font Name Property for Custom Control
Posted by Deep S. at 8/4/2003 12:04:57 PM
Hi, I've created a custom web control for using in my web application. I want to expose some Font-Name Properties of the control like i did for the Color and Boolean values, so that in the properties pane, a proper list is displayed for user selection. Like for picking up the color ...more >>

Control assembly and designer problem
Posted by Mark Aurit at 8/3/2003 5:38:37 PM
Hi Ive found a real nice class that inherits from DataGrid and adds a lot of functionality to it, enough so I want to use it in the app Ive mostly built. I took the class, changed the namespace, and compiled it into the namespace Im using. When I look in ildasm, I can see it with its pr...more >>

asp:Table and border-collapse
Posted by Michael Tissington at 8/1/2003 1:12:08 PM
I'm using the asp:Table control and it insists on adding the style "border-collapse:collapse;" Any idea how I can make it use the default of separate? Thanks. -- Michael Tissington Oaklodge Technologies http://www.oaklodge.com/technology ...more >>

Design-time problem with ParseControl ...
Posted by Francois Beauchemin at 8/1/2003 9:25:11 AM
Hi, I try to create a custom Webcontrol who load others controls from a string... My code seems to works well at runtime, but in design-time I have a NullReferenceException when I try to parse a control with ParseControl. ( see code bellow ) It is a bug of ParseControl? Or maybe ParseCon...more >>

How to use HtmlControlDesigner
Posted by Karsten Lundsgaard at 8/1/2003 4:41:16 AM
Hi, I'm making some runtime-invisible-WebControls, which should be visible at designtime like the "Repeater"- component in the "Web Forms Toolbox", and invisible at runtime. I think that I have to use HtmlControlDesigner. Is there somebody who have an exsample on how to make the Desig...more >>


DevelopmentNow Blog