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

Filter by week: 1 2 3 4 5

Re-Use Web.UI.UserContol in other web-app
Posted by Jurjen de Groot at 7/31/2005 12:00:00 AM
I'm at this time doing some prototypeing with several self-made web-user-controls, I'd like to be able to use these controls in at least 2 web-projects but find myself wondering how to deal with this. I've already tried setting up the controls in a seperate web-app, but than I can't use them ...more >>

How to record audio from ASP.NET website?
Posted by Vihar Patel at 7/30/2005 12:00:00 AM
Hello Group, I want to record audio file using Webpage, I am using ASP.NET (1.1 Framerwork) to develop website. If anyone knows about this, then please let me know, Thanks in Advance, Vihar Patel ...more >>

WebControl, to select part of a web-image.
Posted by Jurjen de Groot at 7/29/2005 9:39:40 PM
Hi, I'm looking for an ASP.NET web-control in wich I can show a generated image to user, the user should then be able to select part of the image using the mouse (rubberbanding), a postback should result from this action returning the coordinates of the upper-left and lower-right corners ...more >>

How to write TypeConvert
Posted by Shimon Sim at 7/29/2005 12:26:37 PM
I am writing a control and need to introduce custom nested property. I need it to look exactly as XXXStyle properties for DataGrid. I starting looking into TypeConverters and it seems that I need to override ConvertTo and ConvertFrom methods. All the examples I saw show some custom implementat...more >>

Custominzation Calendar control in ASP 2.0
Posted by Alexandr Zverev at 7/28/2005 9:35:16 PM
Hello. I would like to develop control which will contain Calendar with some addition logic in each cell. I found the way to customize each sell using Calendar1_DayRender method which alow to : TableCell c = ((DayRenderEventArgs)e).Cell; c.Controls.Add(new TextBox()); This code...more >>

add reference for System.Web.UI.webcontrols which dll?
Posted by WebBuilder451 at 7/27/2005 7:04:04 AM
Which dll should i add a reference to to get this. i've added System.Web.UI, but this does not give me WebControls. thanks kes...more >>

Good application frameworks?
Posted by BillW at 7/26/2005 6:18:12 PM
Any recommendations for general application frameworks that sit on top of ..net to make writing web apps easier? Basically along the lines of the MS Application Blocks where things like handling error trapping, configuration, database stuff are handled. But also extending into areas such as ...more >>

LoadPostData not firing
Posted by John Teague at 7/26/2005 3:36:06 PM
I am trying to create a control that inherits from ListControl. I am implementing the IPostBackDataHandler, but the LoadPostData method is never called. I've read that in addition to implementing these methods, one of the html tags must have a name = control's uniqueID. However, I've done...more >>



Problem Working with Composite Control
Posted by zen at 7/26/2005 12:00:00 AM
Hi All, I have designed a control derived from WebControl, which contains lis of another control derived from PlaceHolder,INamingContainer. The UML design of the Class is attached ..[image: ClassDesign.JPG] Now the problem is.. I am adding a user control,derived from WebControl, insid ...more >>

casting custom classes
Posted by Sam at 7/26/2005 12:00:00 AM
Namespace system.web.ui Public Class ReplacableControlCollection Inherits ControlCollection End Class End Namespace ------------------------------------------------------- Public Shadows ReadOnly Property controls() As ReplacableControlCollection G...more >>

tag = only property.get gets called
Posted by Sam at 7/26/2005 12:00:00 AM
I've got: <ParseChildren(True)> _ Public Class UserElement Inherits WebControl Public strLabel As new Label Public Sub New() strLabel.id = "myID" End Sub <PersistenceMode(PersistenceMode.InnerProperty)> _ Public Propert...more >>

Custom control code serialization to class file
Posted by Dale at 7/23/2005 6:42:01 AM
I have a custom control that includes a custom collection. In the collection editor, I add a new item to the collection and that item gets persisted as desired to the aspx page that contains the control but it does not persist to the aspx.cs page. As I have tested different combinations of...more >>

How to access values of constituent controls in a User Control
Posted by dwok at 7/21/2005 1:22:44 PM
Hi All, I am building what I thought was a very simple user control in ASP.NET. The control is just a standard asp.net calendar control and a text box control. When the user selects a date within the calendar control, the text box is updated with the selected date. My problem is how do ...more >>

ambiguous match found
Posted by Sam at 7/21/2005 12:00:00 AM
see code & error below. i noticed that the page parser only calles the set property so i decided to program it like below so that the set property can be called by the page parser while the get property is still availible for programming. Sam. ---------------------------------------------...more >>

Radiobutton view state is gone...
Posted by Mike at 7/21/2005 12:00:00 AM
Hi ... I an building a web form with a usercotrole on the usercontrole i have several Radiobuttons not in list but in in Group. so they are single radio buttons. connected by a group name. Why single radiobuttons because if you select the option c in the list of {a,b,c,d) within the li...more >>

How do you prevent postback data from being loaded into controls?
Posted by Monty at 7/20/2005 2:26:24 PM
I've got a form that dynamically adds a DropDownList control to a page. After the page is posted back the the code behind rebuilds the control and resets the selected item. Problem is that the postback data overrides what the code did. I would assume that no matter what it would always be s...more >>

Need to update other WebControls when switching from html to design view
Posted by robert.minter NO[at]SPAM tallan.com at 7/20/2005 9:46:14 AM
Hello all, I have a set of WebControls that have a common base class where the base class contains a "bool" property that all controls on a single Page need to match. Basically, change one control's bool property changes them all. If you stay in "Design" view, everything works and all the Web...more >>

Composite & issues with Viewstate/Enabled property
Posted by Andrew Backer at 7/18/2005 3:52:32 PM
I have pretty simple composite control consisting of a textbox and image control. On the composite control I have defined my own 'Enabled' property which simply calls into the sub-controls and sets their Enabled property. I am inheriting from Web.UI.Control, not WebControls.Control. The pro...more >>

Event Order
Posted by Chris Kennedy at 7/17/2005 12:00:00 AM
Does the load event on the parent page occur after the create child controls event on a custom control? ...more >>

Accessing Property values in create child controls sub
Posted by Chris Kennedy at 7/17/2005 12:00:00 AM
Can I read a control a property within the createcontrols sub and use it there. I am trying to read a value from an XML file to determine what controls to add. When I set the path to the xml file via either a property or a control property it doesn't seem to find the property in time to use it t...more >>

composite control does not fire event
Posted by Patrick at 7/15/2005 9:28:08 PM
Hi I have an aspx-page, where I load my custom-control (see below). The problem I have is that the event does not fire. I really cant figure out why. Just to know, I derive from System.Web.UI.Control, becaues later on I want to add some more controls, but first I have to solve this problem....more >>

Timer.Elapsed event doesn't want to fire
Posted by Nathan Sokalski at 7/15/2005 3:19:41 AM
I am trying to learn how to use the System.Timers.Timer control to perform an action every certain amount of time. However, the Elapsed event doesn't want to fire, but I can't figure out why. I looked at several code examples online, but I think I was doing everything the same way they were. D...more >>

Event Fires after CreateChildControls
Posted by John Bankhead at 7/14/2005 10:50:01 PM
I have created a C# control that creates its objects within CreateChildControls. One of those objects is a button which I have attached to a command event. The command event fires after CreateChildControls runs, but I want the clicking of the button to have an effect on what items CreateCh...more >>

programatically get ascx file name
Posted by jeremy.stitt NO[at]SPAM gmail.com at 7/14/2005 2:59:00 PM
Can anyone tell me how to get a string of the file name for an ascx file? On an aspx file, Request.Servervariables["PATH_INFO"] will return the path of the aspx. But if I add that same code to an ascx user control included in the aspx file, I still get the aspx file name. How can I get the...more >>

ControlToValidate
Posted by David at 7/14/2005 2:55:32 PM
Hi, I've created a custom server control that is essentially a control collection. Inside this is a textbox that I'm attempting to validate using a validation control assigned to the main control collection. I have a public property that exposes the internal textbox ID so the validation con...more >>

Disable ViewState on base class only?
Posted by Damien at 7/14/2005 11:33:48 AM
Is it possible to somehow disable the ViewState on the base object but leave the ViewState on within the new object? For example, I have a server control which inherits from DataGrid. I would like to disable the DataGrid ViewState while keeping ViewState enabled for my custom code (e.g. Proper...more >>

Inheriting Custom Control
Posted by Chris Kennedy at 7/14/2005 12:00:00 AM
How can I inherit from a custom control. Could anyone point me to some useful resources, Chris ...more >>

Programmatically Get to User Control Properties
Posted by Newbie at 7/13/2005 5:58:05 PM
I created a User Control, called in an Asp.Net page. First, I've registered the control at the top of the page: <%@ Register TagPrefix=3D"uc1" TagName=3D"MyUC" Src=3D"MyUC.ascx" %> Then, placed the control, as follows: <uc1:MyUC id=3D"MyUC1" runat=3D"server" TitleText=3D"My custom = ...more >>

Combining Two Controls, best way?
Posted by Andrew Backer at 7/13/2005 5:27:17 PM
I have a working date picker, and I want to combine it at the control level with a textbox and validator, so we can use <my:datepickertextboxthingy/> What is the best way to go about this? I am most concerned with access to the textbox's properties, since this will function mostly as a textb...more >>

Control Not remembering property on postback
Posted by Chris Kennedy at 7/13/2005 9:32:35 AM
I am having problems getting my customer control to remember properties accross postback. I have tried setting it to a session. What is the recommended way of doing this. I have tried this 'set it to session _location = Value.ToString() System.Web.HttpContext.Current.Session("XmlPath") = _...more >>

IExtenderProvider
Posted by Shaun Wilde at 7/13/2005 12:34:01 AM
Hi I have a asp.net contol that implements IExtenderProvider, I notice however that the extra property it adds only works for controls in the WebControl namespace and not those in the HtmlControl namespace. This is not a big issue however as I can handle this in my customised settings colle...more >>

Error: Multiple controls with the same ID
Posted by Nathan Sokalski at 7/11/2005 5:35:01 PM
When I view any page in my application a second 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, String par...more >>

Composite control: child attributes not rendered
Posted by Anig at 7/11/2005 7:31:08 AM
I'm writing a composite control inheriting from WebControl and INamingContainer. I'm wrote the control using the composition approach, i.e. I haven't overrided the render method(). The control is very simple. It has 4 linkbutton and a label. Have defined the LabelCssClass property, just a wr...more >>

dynamic loading - click event won't fire
Posted by CalSun at 7/8/2005 11:51:15 AM
Hi all, I have a login control. As I add this control at design time, the control login_button_Click event got called. However, it doesn't do the same as I add this control dynamically. Here is how I load the ctrl dynamically Dim loginctrl As Control loginctrl = LoadControl("login.ascx"...more >>

How to render an embedded image at design-time?
Posted by Justin M. Keyes at 7/7/2005 3:22:58 PM
Hi, I have a custom web server control, specifically a composite control, that includes an image button. The image button takes an ImageUrl property that renders at _runtime_, but at design-time the image does not render unless the user chooses an image. I would like to display a default im...more >>

Modify the HMTL generated in a user control
Posted by David at 7/6/2005 5:46:20 PM
Hi all, I have spent ages trying to work this out... I have searched google for ages with different search criteria, tried various methods, all to no avail. I am dynamically placing user control onto the page. Now, the page has a "Text Only" link, so I have to modify the output of the user...more >>

Web Form Designer deleting collection markup on Custom Server Control
Posted by Ken Baltrinic at 7/6/2005 2:01:15 PM
I am trying to implement a custom server control which exposes a collection and uses the ParseChildrenAttribute to populate it from child elements of the controls aspx markup. In fact I am simply starting with Microsoft's "ParseChildrenAttribute Sample". I have made no changes to this sample...more >>

Using the same User Control multiple times on one page
Posted by Raith at 7/5/2005 12:00:00 AM
How can I reuse a User Control multiple times on a single page? I have one created that pulls and hyperlinks the most recent news items from the database. I want to reuse it multiple times, one instance in each javascript dropdown menu on the page. I plan to pass the catagoryID via each individua...more >>

Accessing User Control inside Datagrid
Posted by mirlisa at 7/1/2005 7:21:00 AM
I've created a simple user control (dynamically populated dropdown list via database) and dynamically added it to a datagrid. There are 9 instances of this control in the datagrid. My problem is accessing the control itself. I need to be able to loop through all nine to get the selected values...more >>


DevelopmentNow Blog