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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|