Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:325307
More Search Options
RSS Available
Matching Posts
Custom Templated Control
I'm attempting to build a hybrid of the DetailsView control (multi-column). We do alot of data entry webforms, and I'm hoping to speed the process up a bit. I'd like my markup to look similar to the following <cc1:MyForm ID="DataEntryForm1" runat="server" Columns="2"> <ViewTemplate> <cc1:Field Question="What is your name?"> <asp:Label ID="myLabel" runat="server" /> </cc1:Field> <cc1:Field Question
Posted to
Custom Server Controls
(Forum)
by
djdouma
on 8/17/2009
Filed under: server control, "custom control", TemplateControl, "asp.net", "C#", c# server control
Re: Custom Templated Control
I've pretty much got it working by adding a 'FieldControls' property to the Field control. I'd like to remove the 'FieldControls' element. Suggestions? <cc1:MyForm ID="DataEntryForm1" runat="server"> <ViewTemplate> <cc1:Field Question="What is your name?"> <FieldControls> <asp:Textbox ID="txtName" runat="server" /> </FieldControls> </cc1:Field> <cc1:Field Question="What is your
Posted to
Custom Server Controls
(Forum)
by
djdouma
on 8/17/2009
Re: Custom Templated Control
I've pretty much got it working by adding a 'FieldControls' property to he Field control. I'd like to remove the 'FieldControls' element. Suggestions? <cc1:MyForm ID="DataEntryForm1" runat="server"> <ViewTemplate> <cc1:Field Question="What is your name?"> <FieldControls> <asp:Textbox ID="txtName" runat="server" /> </FieldControls> </cc1:Field> <cc1:Field Question="What is your
Posted to
Custom Server Controls
(Forum)
by
djdouma
on 8/17/2009
Re: Abstract Class & Inheritance
Ido, thanks for your comments. Would you be able to provide a code example which follows along the lines of what I originally posted (two methods, Delete & Add, with two Classes implementing Add with two different parameter lists)? I work better with examples public abstract class BaseObject { public abstract void Add(); public abstract void Delete( int Id); } public class ChildObject1 : BaseObject { public override void Add( string Name, string Desc) { } public override void Delete( int Id)
Posted to
Architecture
(Forum)
by
djdouma
on 5/2/2006
Re: Abstract Class & Inheritance
Thanks James. That make sense. Is there a way to 'hide' the overriden method Add() so that objects that inherit ChildObject1 won't be able to use this method?
Posted to
Architecture
(Forum)
by
djdouma
on 5/1/2006
Abstract Class & Inheritance
I'm new to defining abstract classes, so bear with me here. I'd like to have a BaseObject with the following two Methods; Delete & Add . When I inherit BaseObject into ChildObject1 and ChildObject2 , how do I have a different parameter list for the Add Method? I've posted "example" code below of what I'm trying to accomplish. Thanks in advance for your help. public abstract class BaseObject { public abstract void Add(); public abstract void Delete( int Id); } public class ChildObject1 : BaseObject
Posted to
Architecture
(Forum)
by
djdouma
on 5/1/2006
LoadPostData - Custom Child Controls First?
Hey folks. I have a custom control which has a custom control as a child. Is there a way to have the child controls LoadPostData event raised before the parents LoadPostData?
Posted to
Hosting Open Forum
(Forum)
by
djdouma
on 11/10/2005
Re: Composite Control - Client Side Visibility & Postback
I may have found a solution. Is this the best why to do it? On another note, why aren't the <code> tags working? What am I doing wrong? <code> Private Sub Page_OnLoad(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load For Each Control As System.Web.UI.Control In Me.Controls If Control.GetType Is GetType(System.Web.UI.WebControls.DropDownList) Then If LCase(CType(Control, System.web.ui.webcontrols.DropDownList).SelectedValue) = "other" Then ShowHideObject(True
Posted to
Web Forms
(Forum)
by
djdouma
on 8/29/2005
Composite Control - Client Side Visibility & Postback
I have a composite control which is created at run-time and added to the page programmatically. My control consists of: 1) A Dropdownlist (visible= true ) 2) A required field validator (enabled= true ) 3) A Div (visible= false ) which contains a) A TextBox b) A required field validator (enabled= false ) When someone selects the dropdownlist option "Other", through client side scripting (javascript), I make #3 visible and enable #3b. Everything is fine and dandy! :D The problem is, when I do a postback
Posted to
Web Forms
(Forum)
by
djdouma
on 8/29/2005
Re: javascript in custom server controls
Hey Mat. I believe it would register the script twice in your example above. You can check to see if the script as already been registered by using IsClientScriptBlockRegistered
Posted to
Hosting Open Forum
(Forum)
by
djdouma
on 3/16/2005
Page 1 of 3 (24 items) 1
2
3
Next >
Channel 9:
E2E: Brian Beckman and Erik Meijer - Co/Contravariance in Physics and Programming, 1 of 2
TechNet Edge:
Windows Server 2008 R2 Quick Look #3 - PowerShell V2
ASP.NET:
2009 Blogged - Greatest Hits
WindowsClient:
2009 Blogged - Greatest Hits
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 2, Imports & Exports
Channel 9:
MEF & Silverlight 4 Beta - Part 1, Introduction
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online