Groups | Blog | Home


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
May 2008
June 2008
all groups > asp.net building controls > july 2005 > threads for july 8 - 14, 2005

Filter by week: 1 2 3 4 5

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


DevelopmentNow Blog