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

How can I compile controls to a single DLL?
Posted by chambersdon NO[at]SPAM hotmail.com at 6/30/2005 9:28:08 AM
I have several projects that I need to compile into a single DLL. Is this possible? We have a project called 'Utilities' that includes classes to which encapsulate business logic. I've now created another project called 'Controls' with custom controls that can be used by all of our develope...more >>


Rendering Custom Control during design time
Posted by Joey Lee at 6/30/2005 12:00:00 AM
Hi, I have been creating simple custom controls that is able to be added to the Visual Studio toolbox and drag & drop to my aspx pages. The main thing i need is visual representation during design time. In order to do this, i override the render method and insert html codes. However I w...more >>

ASP.NET User Control
Posted by Brett Wesoloski at 6/29/2005 1:54:15 PM
I have a user control that has a text box in it. Well what I would like to happen is when a user changes the text my aspx page will know and fire so I can run some code behind. I have tried many things and have looked on google but can't find what I am looking for. This is what I have in m...more >>

Immediate v. Delayed Delegation of Properties in CompositeControls
Posted by Sky Sigal at 6/29/2005 6:31:04 AM
Hello: Going nuts looking for someone who can solve this riddle... ControlBuilder -- according to what I've seen -- parses attributes of declarative tags in alphabetic order, then parses nested tags in alphabetic order. And that is causing me a lot of trouble... Take for example the fo...more >>

using TagPrefix to avoid having @ Register directives on pages using custom controls
Posted by Shan McArthur at 6/28/2005 5:07:29 PM
Hello, I am designing a custom control in a seperate DLL. I have used the assembly:TagPrefix attribute in this project. The project is included as a reference in our website project. I can use my custom control if I have a @ Register directive in my page, but I want to develop this contr...more >>

CollectionEditor Remove button event?
Posted by lisa NO[at]SPAM starways.net at 6/28/2005 2:58:12 PM
I have a custom CollectionEditor. It's not very customized, and is almost the same as any standard CollectionEditor. A problem I have, which isn't really a problem, but is irksome, is that when I go into the CollectionEditor and click on the Remove button, the control in design mode doesn't u...more >>

How to receive postback values for Composite Control
Posted by akira NO[at]SPAM regonline.com at 6/27/2005 11:17:41 AM
Please help me since I am new to composite control. I've been building a composite control that contains 3 textboxes. Rendering control portion works fine, but I don't know how to receive postback values from each textbox. If anyone could provide me an example of code and some explanations, t...more >>

dynamically build sql based on text in textbox and dropdownbox
Posted by Edward F at 6/22/2005 5:55:01 PM
I have a web form that contains textboxes for first name and last name. I also have a dropdown list that contains companies. I would like the user to enter criteria in any manner in the control and get results from the database. For example if the user enters information in the firstname f...more >>



Strange Error when viewing page
Posted by Nathan Sokalski at 6/21/2005 4:02:12 AM
When I view my index.aspx page any time after the first time, I recieve the following error: [HttpException (0x80004005): Multiple controls with the same ID 'TitleBanner:_ctl0' were found. Trace requires that controls have unique IDs.] System.Web.TraceContext.AddNewControl(String id, St...more >>

Newbie question
Posted by FloridaJoe at 6/20/2005 12:42:21 PM
I've keyed in the following code that I copied drom my asp .net for dummies book: <%@Page Language="vb" debug="True" %> <html> <head> <title>Hello and Welome Page</title> </head> <body> <center> <% Dim TextSize as integer %> <% For TextSize = 1 to 7 %> <fon...more >>

Problem with INamingContainer
Posted by Sergio FLorez M. at 6/20/2005 9:40:20 AM
I created a composite control which works just fine. I want to be able to set the focus to one of its contained controls (a textbox) but this is giving me a javascript error. The problem is that the ClientID property of the contained textbox is not giving me the correct value. When I debug the a...more >>

How Can I do this in ASP.NET...
Posted by msnews.microsoft.com at 6/17/2005 12:00:00 AM
Hi All I m facing a problem. My Scenario is that i have a table in database with the name of = "userprofile". In my web site the user enters his personal information for building his = profile in our system.=20 During building his profile the system asks the user for his personal = website ...more >>

custom web controls and conversion to inline code
Posted by Lefty at 6/16/2005 11:48:01 AM
Our client wanted delivery of the code using inline scripting, but for obvious reasons, we developed the ASP.NET 1.1 app using codebehind. We have an issue now when trying to convert the codebehind code to an inline format. The control fires a custom event (to pass detailed error info up the...more >>

Using DataViewManager with a WebControls.DataGrid
Posted by martyn_wynne NO[at]SPAM hotmail.com at 6/16/2005 5:39:19 AM
Does anyone know how to bind a dataset to a WebControls.DataGrid using a DataViewManager. For a Forms DataGrid, it is... // Bind to a DataGrid. System.Windows.Forms.DataGrid myGrid =3D new System.Windows.Forms.DataGrid(=AD); myGrid.SetDataBinding(myDVM, "Customers"); see http://msdn.mic...more >>

Reach UserControl from ASPX codebehind?
Posted by Ă–zden Irmak at 6/16/2005 12:00:00 AM
Hi, I created a usercontrol and dropped it onto my aspx... But from CodeBehind of that aspx I can't reach to that UserControl...I just want to reach to it just like when I dropped for instance a textbox onto that form so I can play with it's properties and subscribe to it's events? Anyb...more >>

Sample Whidbey Web Part Code
Posted by cliffeh at 6/14/2005 11:57:02 AM
Can anyone point me to some examples of Whidbey Web Parts being designed from scratch. The documentation on this is still blank (eg. http://msdn2.microsoft.com/library/t54h7hh7(en-us,vs.80).aspx). Is the generally accepted way to create web parts just to create a user control and then wrap ...more >>

dynamically add usercontrol
Posted by Snorre at 6/14/2005 3:39:02 AM
Hi Can anybody explain to me how to dynamically add a usercontrol? When I try to use the this.Controls.Add the control is added, but none of the usercontrol member controls are instanciated. The workaround I have done is to add the control to the aspx and set visible to false. Not very el...more >>

this.Context.Server.MapPath
Posted by crazyhorse at 6/9/2005 8:40:13 PM
can get the Server.MapPath to work in run-mode, but not in the property desinger window. It will throw an error. Try to read a xml file in the Oninit. Works when you run a web page, but not while you open the desinger properties window. What am i doing wrong, or is this is just the way a co...more >>

design time support for collections
Posted by Pieter at 6/9/2005 12:00:00 AM
Hi, I have a servercontrol that contains a list of buttons. What I would like to do is to create property on my WebControl where I can edit the buttons (create, delete, set the order, set the name of each button, backgroundcolor of each button). What is working is that the property is visib...more >>

Problem using AddHandler for dynamically created WebControls
Posted by Nathan Sokalski at 6/8/2005 5:12:04 PM
I am using the AddHandler statement to add a CheckedChanged event handler to a series of RadioButtons that I create in a loop. However, the handler is not being called for a reason I cannot determine. What is the problem? Here is my code: Private Sub Page_Load(ByVal sender As System...more >>

How to check if a client has installed an application or not from ASP.NET
Posted by Prasad at 6/8/2005 10:43:17 AM
Does anyone know how to check on the client machine if a particular application/OCX is installed programmatically in ASP or ASP.NET environment ? Any help will be greatly appreciated . --- Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/...more >>

Alignment of a System.Web.UI.WebControls.Image object
Posted by Nathan Sokalski at 6/8/2005 2:51:25 AM
When using a System.Web.UI.WebControls.Image object, how do I control both vertical and horizontal alignment? Both directions are controlled using the ImageAlign property, which prevents setting both a vertical and horizontal direction. Why isn't there something like a VerticalAlign and Hori...more >>

Templated Custom Control
Posted by Gary K at 6/7/2005 11:31:03 PM
Greetings & Salutations, I have made a templated custom control (NOT data-bound), a container for the templates & a designer for the control. After placing it on the form it functions as expected, however I cannot edit the templates. I have a Template Editing menu available that displays t...more >>

Custom Control Debugging - Design Time!
Posted by Gary K at 6/7/2005 10:15:03 PM
Greetings & Salutations, I have already scanned the posts for my problem & have found a couple that deal with problems that have the exact same symptoms as mine, however the solutions do not work for me. I am trying to debug a web custom control. (Sorry did I just hear you groan?) I am ...more >>

custom web control
Posted by param NO[at]SPAM community.nospam at 6/6/2005 10:41:47 PM
Hi all, I wish to write some custom web controls that build on current controls such as the html input text box etc. e.g. a phone number control that will have 3 text boxes. I have been able to do this with usercontrols (ascx files) but the down side is I have to maintain the file in multiple ...more >>

Dynamically loading user control into Placeholder gives Object reference not set to an instance of an object
Posted by Phoenix at 6/6/2005 5:13:44 AM
I've created user controls that contain listboxes that are dynamically populated from the database. In the html view of the user control (ucSectorsIndustries.ascx) is the <asp:listbox id="lbSector" runat="server" Rows="5"></asp:listbox> code. In the codebehind I have the following: Protected...more >>

EditCommandColumn problem!!
Posted by Sachi at 6/2/2005 12:19:06 AM
Hi, I am trying to embedd image to "update" and "cancel" button in editcommandcolumn which I add dynamically in my control. So when I use this with just a image, I can get the output as output1: <Image>Update <Image>Cancel But if I want to use further more style. So when...more >>

2 controls on the same page and wrong events fire
Posted by justengland NO[at]SPAM gmail.com at 6/1/2005 4:39:13 PM
I have a button control that uses the <button> tag. I use the render control method. I have the name attribute set to the control unique id. When I have 2 of these buttons on the same page, the page gets confused as to what control fired the event. How can I make it work. Basically it cal...more >>


DevelopmentNow Blog