CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 7/24/2007 9:34:25 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 20 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
Dimebrain
Asp.Net User
Re: using CSSFriendly adapters and template conversion7/24/2007 9:34:25 PM

0/0

Hello,

I can successfully use CSSFriendly adapters for stock controls, but if I want to add custom html to my control, following the usual "Convert To Template" approach results in the standard table output in my source. Obviously the div'd results I see on a rendered page are generated by ASP.NET, but is there a way to use converted templates with CSSFriendly adapters, or do I have to resort to tables (or hand-cut divs) for customized controls?

 

 


Some day I'll be able to answer more questions than I ask.
Russ Helfand
Asp.Net User
Re: using CSSFriendly adapters and template conversion7/25/2007 5:03:50 PM

0/0

Which control are you trying to use? Several of the adapters in the kit allow you to use templates. Convert-to-template will not produce the adapted HTML in the new template instances. However, as I said, you can use templates of your own creation in several of the adapted controls.


Russ Helfand
Groovybits.com
Dimebrain
Asp.Net User
Re: using CSSFriendly adapters and template conversion7/25/2007 5:53:00 PM

0/0

Russ Helfand:

Which control are you trying to use? Several of the adapters in the kit allow you to use templates. Convert-to-template will not produce the adapted HTML in the new template instances. However, as I said, you can use templates of your own creation in several of the adapted controls.

Hi Russ,

The control I was using was the Login control. I may not be using it correctly but I can see the properly div'd source when viewed as a rendered page, but converting to a template creates a LayoutTemplate with tables. When you say "Convert-to-template will not produce the adapted HTML in the new template instances", do you mean that I will see table tags in the markup, but the code itself will render as divs as per stock controls? I think I was hoping to see the same sort of div-based markup at design-time so I could easily style with CSS and see the results in the designer for controls using my customized template.

Daniel


Some day I'll be able to answer more questions than I ask.
Russ Helfand
Asp.Net User
Re: using CSSFriendly adapters and template conversion7/25/2007 6:13:00 PM

0/0

Hi Daniel,

Now I understand your uber-goal better. Frankly, I've not spent much time trying to get the adapters to play with the design surface in VS. So you are on uncharted ground!!! That's always fun.

Personally, I suspect that the union of the adapters and the design surface is going to be problematic. I think that the design surface uses the various IDesign* interfaces provided by the control to determine behavior of the control in the surface. The adapters make no attempt to modify those interfaces in the control. In fact, I don't know that the apadpter architecture even provides a hook to do that sort of design-related modification to the control. So I'm not sure whether or not it is possible. I can tell you for sure, though, that the adapters in the kit do not have any code that was specifically written to accomodate the design surface interfaces in the API.

You might be able to "trick" the design surface into showing the right stuff by using templates but I suspect you don't really want to do that because then you've sort of short-circuited the adapters' native ability to generate the HTML on-the-fly. When you convert-to-template you effectively freeze-in-time the HTML being rendered for that control. If you improve the control in the future you won't see those improvements since you're no longer generating the HTML for that control on-the-fly. So, frankly, I use templates somewhat sparingly for things like Menus or Trees because I feel as though they should always render heuristically as simple nested unordered lists (UL tags). But that's just my perspective.

Good luck working out the kinks in the design surface as it relates to the adapters. I've be really interested to read about your experience in that regard, if you decide to pursue your investigation.


Russ Helfand
Groovybits.com
Dimebrain
Asp.Net User
Re: using CSSFriendly adapters and template conversion7/27/2007 12:46:21 PM

0/0

Hi Russ,


I share your sentiment about Menus and Trees, and it's only with the LoginControl and SignUp control that I see the need to leverage the dynamic HTML generated by the adapter in addition to adding customized template-based elements, otherwise designs using these controls are relegated to displaying custom elements, even if they are only additional imagery or text for marketing messages and the like, outside of the control itself. It's an interesting challenge and it's not trivial, but if I do take this on I'll be sure to share the experience.


 


Some day I'll be able to answer more questions than I ask.
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Re: using CSSFriendly adapters and template conversion - ASP
CSS Friendly Control Adapters -- Dead? : LeeDumond.com Nov 19, 2008 ... But of course, isn't that what you're probably using templates for ... Sure, the CSS Friendly Control Adapters seemed like a good idea at ...
Adapters and ClientTarget - CSS Friendly Control Adapters AspNet-Menu-Selected Problems · (Yet another) vertical align only in IE6 · using CSSFriendly adapters and template conversion ...
CSS Friendly Control Adapters - Issue Tracker Hello everybody: We've tried to use the CSS Friendly Treeview Adapter in a project that .... rows for a certain re-usable control I created for some of my clients. ... DataList adapter control does not render the seperator template if ...
CSS Control Adapter Toolkit Update - ScottGu's Blog You can use these control adapter classes as-is to get pure CSS friendly .... re : CSS Control Adapter Toolkit Update. Sunday, September 10, 2006 11:28 AM by Art Toscano ... How about a template with both Atlas AND the CSS controls? ...
Programming and Development | TechRepublic.com YUI Grids CSS offers preset page widths and templates, along with the ability ..... Friendly Control Adapters download includes a lot of code that you may reuse. ... Using the CSS Friendly Control Adapters delivers a menu using an HTML ...
Work, life and other stuff By using CSS adapters (Check out CSS Friendly) we can still take advantage of ... provider for future reuse. 5) Add the control template to the masterpage. ...
StevenHarman.net - Tips & Tricks. If you're using CSS Friendly Control Adapters to get some of your asp.net .... After building a test website using the Web Site template that is included ...
Benjamin Howarth However, when we're using old-school table-based designs, we come across a ... In my next blog entry, I'm going to be taking the CSS friendly adapters and ...
CreateUserWizard, Custom Data on Template - ng.asp-net-forum ... I am using CreateUsreWizard control in template mode. ... Re: CreateUserWizard, Custom Data on Template, 6/5/2006 5:42:11 AM ... CSS Friendly Control Adapters, CreateUserWizard, and ViewState . ...




Search This Site:










access denied on admin tab

omg - i need some help .... trying to place an entry on a message queue from a asmx web service

how to set focus on treenode?

getrolesforuser

nothing i do work deadline tomorrow

browser-specific master pages issue

add image to control

migrating child portal to new installation and 4.0 from 3.2

anybody have a module to accept credit card payments?

ttt application pack 1.0.09 w/dnn 1.0.10

making login id and password case sensitive

email client - dnn module

how do i change the width of a tab?

navigateurl() not being referenced

unable to cast object of type 'system.web.compilation.buildresultcompiledassembly' to type 'system.web.compilation.buildresultcompiledglobalasaxtype'

themes and css. need advice ...

help needed with installation of dotnetnuke

rss encoding

starter kit - help

is it better to use vs auto generated insert code or own stored procedures

multiple browser support

get selected value for sqldatasource select parameter located in content page from listbox located in master page

how to migrate the server and change sql connection?

how to link a pageview in a multipage controls to a pre-designed page or to a url?

blog rss icon nowhere

debuggin in vwd with vista beta 2

how to have expanded archived previous monthes?

restricting unauthorized users to view the webpage.

[2.0] - url path

exception has been thrown by the target of an invocation

 
All Times Are GMT