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 > february 2005

Filter by week: 1 2 3 4

Save state when create image
Posted by Mango at 2/28/2005 3:51:06 AM
Hi there, I will be very happy if someone helps me. I need to create dynamic image, and save the state between the postback. I mean I've got 5 buttons and when I click on one of them, the image is creted with: System.Web.UI.WebControls.Image Img1 = new System.Web.UI.WebControls.Image(); Img...more >>


Compiling a CustomControl.vb file
Posted by AL Cs at 2/27/2005 6:13:04 AM
Hi When writing custom controls, how exactly is a .vb file compiled (manually)?? As you understand I'm new to this, and will be greatful for any (detailed) help and explanation. AL Cs...more >>

Need help with base.Style collection in custom control
Posted by Nick Goloborodko at 2/26/2005 4:17:17 PM
Hi, Here's my situation: I'm developing a custom control, which basically consists of two nested <DIV> tags. Now, i need to obtain base.Style object, in order to get the positioning information, if the control is being positioned via ABSOLUTE positioning. I have tried to used base.RenderBeg...more >>

Composite Control Designer Question
Posted by Showjumper at 2/26/2005 9:58:57 AM
I have built a composite control that consists of a textbox and a button that performs a whois lookup. How do i get the control to update its appearance when in design view of a webform after a property has been changed. I assume it has to do with creating a composite control designer which i th...more >>

Presisting control state across Postbacks
Posted by Nick Goloborodko at 2/25/2005 11:28:32 PM
Hi, At the moment i'm developing a Timer custom control, and i finally reached the stage where i need to persist it across page postbacks. What would be the best way of doing it? At the moment the only way that i see is by use of the cookies. (i was also thinking about using a hiddent field...more >>

Adding contextmenu to IE Treeview Control
Posted by Ole Hanson at 2/25/2005 1:20:35 PM
Does anybody have a clue as to how to do this? I would like to display my own custom context menu when rightclicking a node in my treeview, but am a little lost on how to do it, apart from that is should be some kind of javascript I guess. Anybody that could point me to inspiration? /Th...more >>

The most efficient way to buid / debug custom control
Posted by Nick Goloborodko at 2/24/2005 10:31:00 PM
Hi, I've got the following question: I'm currently in the process of building a custom control (the one that is compiled into a single dll), and at the moment its a tedious task. My current configuration: 2 projects - one containing code and other files related to the control, another one c...more >>

Add Events to HTML Table
Posted by JJ at 2/23/2005 3:55:01 PM
Hi, I was wondering is it possible to create my own html table that has two features. 1. it is databound and 2. Create my own events to it? The datagrid is nice and I do use it but I need to be able to customize it for other events to occur with it. Thanks, JJ ...more >>



Cache a user control based on a Property in the code behind.
Posted by MattC at 2/23/2005 11:50:24 AM
I have a user control that is placed on every page to provide a menu system, logout/login buttons etc. This contect varies in depending on the value of a property in the code behind file of the control. How can I cache dependant on the value of that property. TIA MattC ...more >>

Inherit from a Web User Control
Posted by Magnus Strandberg at 2/22/2005 11:04:43 PM
Hi, Is it possible to inherit from a web user control (*.ascx) created in a separate class-assembly to a local specialized control that can be used in an aspx-page ? What I want to do is to create some sort of base class library of controls to inherit from, and use in specific dotnet web a...more >>

Question about Custom Controls
Posted by GMK at 2/22/2005 1:08:53 PM
Dear all I'm building a web application that some standard controls in many pages as "DropDownlist" this drop down list is filled from a table in a specific database and this "DropDownlist" will be used in many apges and on each page the data inside the "DropDownlist" will be the same but the us...more >>

Custom User Control and packaging into a dll
Posted by Ralph at 2/22/2005 3:55:03 AM
Hi, I have been experimenting creating a User Control and overriding its Render method so that I have no reliance on an external ascx file and can package this control into a dll. I dynamically create my controls in Page_Load() and everything works fine while this code is part of my main...more >>

ASP.NET Custom WebControl Absolute Positioning
Posted by Nick Goloborodko at 2/22/2005 3:02:59 AM
Hi, I'm currently in the process of building a custom webcontrol. I nearly finished it, however one thing is a mystery to me: how do i enable the control to support absolute positioning? Thanks in advance, Nick Goloborodko...more >>

Problem Adding Controls
Posted by loureiro at 2/21/2005 6:37:06 AM
Hello, I seem to be having a problem loading a div tag with a control. here is what I am doing: Dim oObjCheckBox As CheckBox = New CheckBox() oObjCheckBox.ID = "chkTestControl" oObjCheckBox.Text = "Test Control" outputList.Controls.Add(oObjCheckBox) i do this inside a sub routine...more >>

Changing HTML in the Render() method
Posted by Benton at 2/19/2005 1:10:28 PM
Hi there, I am looking for C# code samples on how to: 1.- Get a string with the default HTML that would be rendered for a custom control. 2.- Customize this string. 3.- Make the control render the customized HTML. I want to customize the "HREF" part of the HTML generated for a LinkButto...more >>

Basics to extend the any control?
Posted by Vishal at 2/17/2005 6:44:12 PM
Hello I would like to know what methods/events I have to override to extend any webserver control. I actually need to extend the datagrid control, but the basics should be same for all, right? What are the basic required events, which I have to insert for each control? I have never cre...more >>

Collections as properties?
Posted by Paul Louth at 2/17/2005 4:40:35 PM
Hi, I'm creating my own custom web-control called Table, with a collection of my own custom 'Column's as a property: [ToolboxData("<{0}:Table runat=server></{0}:Table>")] public class Table : System.Web.UI.WebControls.WebControl { ... [Bindable(true)] public ColumnCollection Co...more >>

DataGrid.Column.Count is empty?
Posted by SK at 2/17/2005 1:44:07 PM
Hello, I have created my own datagrid control, derived from datagrid. Now my webform uses this datagrrd and calls the ItemDataBound method, which then SHOULD loop through the columns, but it always shows me that the columns count is 0. Although I can see several columns in the webbrows...more >>

Derive OnItemCreated
Posted by SK at 2/16/2005 4:02:12 PM
Hello, i have created my own datagrid control derived from the datagrid control. Now I would like to override the OnItemCreated method. But I dont get how I can do that. Can somebody help me out? Thanks ...more >>

Building a non-databound custom template and accessing it's properties
Posted by Geoffrey Gallaway at 2/16/2005 5:39:52 AM
Hello, I've built a custom control (inherits from WebControls.Repeater) with a custom template. The intention is to make a custom paging repeater. The repeater would be controlled via LinkButtons that would be inside the custom template. I want to do something like this in the aspx files that...more >>

Strange button behaviour
Posted by ByB at 2/15/2005 11:19:49 PM
Hello, I created an ASPX page with some buttons on it, but one of them is reacting in a strange way : In design mode, if i double click on it, it takes me to the corresponding OnClick method. But if I put a breakpoint on this method, when i work in debug mode and clicking on this button, i...more >>

Creating a panel with a collection property -- NEED HELP
Posted by Nicolas LeBlanc at 2/15/2005 3:36:36 PM
Hello everybody, I've been working lately on making my own tabstrip control because I = couldn't find anything that works the way I want it. But now I have a = problem, because I have a "Tabs" property which is the collection of = tabs inside my control, I'm no longer able to add controls insi...more >>

Really Creating dinamically Web Controls
Posted by Cesar Garcia H at 2/15/2005 1:57:41 PM
Hi everyone. I'm developing a custom control and i'm having some problems. Here goes the figure : I have a N level tree structure, and I have to show the first level in a DropDownList. When the user selects one option of the first dropdownlist, the page has to show another dropdownlist, ...more >>

hide component from toolbox
Posted by Naveen Kohli at 2/15/2005 9:45:03 AM
I have a control assembly which contains the my custom web control. In the same assembly I have few classes that implement IComponent interface. I need this interface for my classes. When I add the assembly to toolbox, every single class that implements IComponent interface shows up in the toolbo...more >>

HELP: Where is the asp.net web based control designer???
Posted by inetmug at 2/15/2005 7:57:08 AM
What namespace is it in? -- Patrick...more >>

CreateChildControls and Exception Failed to Load ViewState
Posted by Craig at 2/15/2005 6:53:04 AM
Hi I've been struggling with this problem for several days now, pretty much out of ideas... I have n number of xml files each defines what server side control to to render inside my custom web control (composite). The OnInit of my web control parses the xml files creating a collection o...more >>

Adding Datasource Property
Posted by Steven W at 2/15/2005 4:23:05 AM
I need help with how to add a DataSource property to a composite control and then how to assign that property to the datasource of a datagrid. Thanks...more >>

How do you do a Web ControlDesigner?
Posted by inetmug at 2/14/2005 1:11:05 PM
How do you do a ControlDesigner? It seems that the docs are out of date with the namespaces? Using VS 2003, I can not get the snippet from this link on the MSDN to work/compile... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuidesigncontroldesig...more >>

Composite Web Control and Dynamically Created Children Controls.
Posted by Craig at 2/13/2005 10:27:01 AM
Hi I am developing a web control which creates other web controls. During the OnInit of the my web control I read an Xml file which tells my web control which child control to create, adding the child controls into a private collection. In the CreateChildControls (override) method, I l...more >>

Databounded textbox
Posted by Kiwi at 2/11/2005 1:18:32 PM
Hello: I would like to know how to develope a databounded textbox for using with asp.net. Datagrid, combos etc are databounded, but when I want to read data from an xml node to a textbox, I must to divide xml in nodes for read value. Is there any way to use textbox with a "datasource" pro...more >>

Building a Property Builder?
Posted by ndbabb NO[at]SPAM gmail.com at 2/10/2005 11:48:53 AM
Looking for information on how to build a property builder for a custom server control, much like the built-in datagrid property builder. Is it possible? Thanks in advance. -Nic ...more >>

Performance question
Posted by Lubomir at 2/9/2005 1:05:05 PM
Hi, I would like to know your opinion about .NET menu server controls from performance point of view. It is a good idea if a menu is running on a client machine: a response is quick and the server time is not used. However, implementation of a menu in a java script often results in a mes...more >>

Custom template in Repeater
Posted by dotNet at 2/8/2005 4:52:27 PM
Hello! I want to add another template to the templates that are already available with the repeater control. This is what I have done so far... Created a class that inherits from WebControl and implements INamingContainer to hold my controls that I add in my template. public class Pa...more >>

using the Items property in the design time property window
Posted by Ryan Taylor at 2/8/2005 11:05:38 AM
I hope this is the proper forum. I posted this problem in the wrong one previously. I have a custom server control that I am building. Implementing simple properties like strings and ints seems to be pretty straightforward and there are a lot of examples. However, I have a need to allow the user ...more >>

Menu Control - Recommendations
Posted by Paul Say at 2/8/2005 9:26:18 AM
We are looking at developing a web application, that we wish to be menu driven (would like to have a drop down menu bar). Also the menu needs to be dynamically build from a database file. The application will be installed on several servers, for a variety of clients. Any Recommendations...more >>

Control not getting value
Posted by Jon at 2/8/2005 8:09:09 AM
Hello all, I've written the below server control which only half works! When I complie and include the server control into a project I can get connectionString but not storedProcedure, it always errors saying it's null, yet the code (seems) is the same. Can anyone shed any light on this? Th...more >>

More then 16000 programs and cracks!!!
Posted by flex at 2/8/2005 5:10:46 AM
Hi! If you are professional ARHITECT, ENGINEER, DESIGNER, PROGRAMMER or User, and you can't buy expensive professional software - we will solve this problem. Our prices are very low. You pay only about 1%-15% of the price for the original software. Our prices very from $20 to $150 per...more >>

PersistChildrenAttribute class and collections in design-time prob
Posted by A.J. van der Burg at 2/7/2005 8:01:07 AM
Hi all, I have a problem with maintaning the elements of a collection in design time. I have a custom webcontrol, which in turn has a collection of child controls. When I use the PersistChildenAttribute class, this collection is not maintained when viewing the control in design time. In run...more >>

Controling the 'selected' property on CheckBoxList while DataBinding()
Posted by eran NO[at]SPAM prosight.com at 2/7/2005 3:14:23 AM
Hi Group! When binding the CheckBoxList control, you can only control the 'text' and 'value' properties of each CheckBox created. Suppose I have on the data source some additional information for the 'checked' initial state, and I want to update the 'selected' property of each checkbox. ...more >>

Design-time property change on webctl not saved
Posted by atip at 2/4/2005 10:13:01 PM
Hi! I have a WebControl with 2 properties. In the properties window I change one of them. Internally I would like to set another property to a default value. When I do this, the first property (the one changed in the properties window) gets changed and updates the HTML in the page, but ...more >>

How do I pass an object to webcontrol that is loaded using the "LoadLontrol" method ? .NET 2005 Beta.
Posted by Da Rabit at 2/4/2005 9:42:35 AM
Hi all, Because of the nature of my application, I have a web control that is being loaded and added to my form at runtime using the LoadControl method. Beacuse of the new framework, it is impossible to inherit from my own version of the "System.Web.UI.UserControl" class as the code seems to be ...more >>

resolving relative ~ paths
Posted by Stephen Woolhead at 2/3/2005 2:50:41 AM
Is there a function that will replace the ~ in a relative path with the virtual directory, so I can use the path in clientside javascript? Thanks Stephen. ...more >>


DevelopmentNow Blog