Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Custom Web Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom Web Control

 Post Reply Post Reply
Author
CountAnton View Drop Down
Newbie
Newbie
Avatar

Joined: 18 February 2003
Location: United Kingdom
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote CountAnton Quote  Post ReplyReply Direct Link To This Post Topic: Custom Web Control
    Posted: 16 April 2003 at 6:24am

I want to create a custom web control that works a bit like the Repeater Control, so I can define template details...

<myPrefix:myRepeater etc...>

<title>

Specific Group of Links

</title>

<ItemTemplate>

<a href="<%# DataBinder.Eval(Container.DataItem, "url_field")%>"> <%# DataBinder.Eval(Container.DataItem, "link_name_field" %></a><%# DataBinder.Eval(Container.DataItem, "iwg_displayed_name") %>

</ItemTemplate>

</myPrefix:myRepeater>

but so far all the custom control examples I've found are for single tag custom controls like...

<myPrefix:myControl etc... />

I'm going to play around with inheriting from Repeater to see if that gets me anywhere, but thought I'd post here in case someone knows about this...

Back to Top
CountAnton View Drop Down
Newbie
Newbie
Avatar

Joined: 18 February 2003
Location: United Kingdom
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote CountAnton Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2003 at 6:50am

Hmm, I seem to have found something...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcustomizingcontrolswithtemplates.asp

...might just be what I'm looking for.  Sorry to answer my own question but there you have it!

Back to Top
CountAnton View Drop Down
Newbie
Newbie
Avatar

Joined: 18 February 2003
Location: United Kingdom
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote CountAnton Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2003 at 3:02am

Well, the above example worked fine, but...

Getting a bit more advanced now, I think what I actually need is a Custom Templated Databound Control, but the article on msdn for this is very obscure and difficult to follow...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcontemplateddataboundcontrolsample.asp

So I'm looking for something that describes it in easier to follow steps.  If found a page with a link to an article, but the link seems to be broken...

http://www.aspalliance.com/aspxtreme/webforms/controls/keyconceptsinwebformscontroldevelopment.aspx

...So any help would be appreciated.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.