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:633092
More Search Options
RSS Available
Matching Posts
Re: Custom TreeView via Inheritance
Hello Ike, this blogentry of Danny Chen is a good way to get started. Basically you need to create a custom TreeNode class that adds an Attribute property and then make sure that these attributes are rendered by overriding RenderPreText. hope this helps, Stefaan
Posted to
Custom Server Controls
(Forum)
by
srillaert
on 3/30/2006
Re: TreeView, Menu... WebResource.axd
I have only experience with resources embedded in a custom webcontrols assembly (a 'Class Library' project in visual studio), which is the same situation as with the standard TreeView or the Menu controls of asp.net. In that case one - adds the image to the project - set the build action of this image to 'Embedded Resource' - adds a <Assembly: WebResource("YourImageName", "image/gif")> attribute to the AssemblyInfo.vb - uses GetWebResourceUrl(GetType(YourType), "YourImageName") to get the Url
Posted to
Custom Server Controls
(Forum)
by
srillaert
on 2/1/2006
Re: TableItemStyle indesigner
Hi Tsauve, have you already tried to make your HeaderStyle a read-only property, something like : public TableItemStyle HeaderStyle { get { if ( _headerStyle == null) { _headerStyle = new TableItemStyle(); } return _headerStyle; } } This is the normally the way to add style properties to controls. Also be careful with the right viewstate management on your _headerStyle. For a full explanation you can check out the book on custom controls by Nikhil Kothari (sorry, I don't know any online resources
Posted to
Custom Server Controls
(Forum)
by
srillaert
on 1/31/2006
Re: TreeView, Menu... WebResource.axd
Hi Nathan, These gif images are part of the System.Web.dll as embedded resources (just as most of the JavaScript used by the TreeView). The TreeView uses ClientScriptManager.GetWebResourceUrl () to get an URL to these embedded resources. You can use reflector on System.Web.dll to see exactly how this is done. Does this replies all your questions ? greetings, Stefaan
Posted to
Custom Server Controls
(Forum)
by
srillaert
on 1/31/2006
Re: DataList within a composite control
Hi Paul, You can use the Control.FindControl method to do so. Some sample code is available in this previous post . Hope this helps, Stefaan
Posted to
Custom Server Controls
(Forum)
by
srillaert
on 1/31/2006
Re: How to reference other object in a custom properties?
Hi Cussuol, DataSourceIDConverter is a TypeConvertor that is part of ASP.NET 2.0, the documentation is available on MSDN . By the way, if the DataSourceIDConverter or one of the other standard TypeConvertors don't fit your needs, you can inherit from ControlIDConverter and override the FilterControl method in which you decide to which controls your custom control can be attached. When you are not using ASP.NET 2.0, I guess you have to write your own TypeConvertor that searches for all the controls
Posted to
Custom Server Controls
(Forum)
by
srillaert
on 1/24/2006
Custom TreeNodes and TreeNodeCollectionEditorDialog
Hi everyone, I have custom TreeView inheriting from the standard Treeview (let's call it CustomTreeView) and a custom TreeNode class inheriting from, you guessed it, TreeNode (let's call it CustomTreeNode). So far, so good. Developers can add and remove CustomTreeNode objects from the Nodes collection of the CustomTreeView programmatically and in the xml markup. So the following sample works just fine : <ny:CustomTreeView ID="TreeView1" runat="server" ExpandDepth="0" OnTreeNodePopulate="TreeView1_TreeNodePopulate
Posted to
Custom Server Controls
(Forum)
by
srillaert
on 1/24/2006
Re: How to reference other object in a custom properties?
Orzeh is right on this. Here is some sample code : [System.ComponentModel.TypeConverter(typeof(DataSourceIDConverter))] public String DataSourceID { get { String s = (String)ViewState["DataSourceID"]; return (s == null) ? String.Empty : s; } set { ViewState["DataSourceID"] = value; } } protected Control DataSource { get { if (DataSourceID == String.Empty) return null; else return NamingContainer.FindControl(DataSourceID); } } With the right TypeConvertor you can show a dropdownlist with only the
Posted to
Custom Server Controls
(Forum)
by
srillaert
on 1/24/2006
Re: Problem in Custom Control Unable to find Control To Validate Property
Have you already tried replacing requiredFieldValidator.ControlToValidate = textBox.ID; by : requiredFieldValidator.ControlToValidate = textBox. Unique ID; hope this helps.
Posted to
Custom Server Controls
(Forum)
by
srillaert
on 1/11/2006
Re: Adding the NavigateURL property to a custom control that inherits WebControl?
And when you apply the EditorAttribute to this property with as parameter the UrlEditor you get a nice UI for selecting the URL. [EditorAttribute(typeof(System.Web.UI.Design.UrlEditor), typeof(UITypeEditor))] public string NavigateUrl { get { return ( string )ViewState["NavigateUrl"]; } set { ViewState["NavigateUrl"] = value ; } } Have fun.
Posted to
Custom Server Controls
(Forum)
by
srillaert
on 1/11/2006
Page 1 of 2 (15 items) 1
2
Next >
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Channel 10:
Bing's Top Searches Reveal Our Celeb Obsessions
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Silverlight:
Building extensible Silverlight applications with MEF
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
ASP.NET:
Script# Update - v0.5.5.0
Channel 10:
Difference between DirectX 10 and DirectX 11
Channel 10:
WHS Power Pack 3 Arrives
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online