Click here to Skip to main content
15,919,931 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: IE html/css problem Pin
Eric Georgiades18-Mar-07 9:13
Eric Georgiades18-Mar-07 9:13 
QuestionHow can I make tables align in Opera & Firefox Pin
happyheartcs18-Mar-07 6:59
happyheartcs18-Mar-07 6:59 
AnswerRe: How can I make tables align in Opera & Firefox Pin
Guffa18-Mar-07 8:57
Guffa18-Mar-07 8:57 
GeneralRe: How can I make tables align in Opera & Firefox Pin
happyheartcs18-Mar-07 9:03
happyheartcs18-Mar-07 9:03 
AnswerRe: How can I make tables align in Opera & Firefox Pin
Guffa18-Mar-07 23:35
Guffa18-Mar-07 23:35 
QuestionHow can I rendering select list item with added attributes? Pin
howardjr17-Mar-07 22:05
howardjr17-Mar-07 22:05 
AnswerRe: How can I rendering select list item with added attributes? Pin
Saifi Hasan19-Mar-07 18:36
Saifi Hasan19-Mar-07 18:36 
GeneralRe: How can I rendering select list item with added attributes? Pin
howardjr20-Mar-07 14:19
howardjr20-Mar-07 14:19 
In JavaScript and HTML, I created an list of options for a select list that had a UserProperties opbject, in which I created a "list" of arbitrary sub-attributes, similar to the style attributes. Then I added a function that could get this information from the selected option. This all worked well for storing additional values in the options, which could be referenced when the select's onSelect/OnChange event fired.

Now, I want to include this capability in my component. I created a property that allows me to manage the UserProperties as an arrary. Then when the select list's children are created, I use the ListItem attribute.add method to push the array value into the option. Unfortunately, Mircrosoft let you add the attribute, but doesn't render tham. Frown | :(

I could pass the array to the page, and then hava javascript push the values into the options, but that would be redundant.

I was hoping that there was a render for the option that I could override, and then create the tag strings myself. In the past, before linking all of my sub-components together as childern under a main span element and then letting the render method do all of the work, I was explictly was calling the render for each sub-component explicity, and adding 'little bits' of hard coded html to the output stream to implement to new features I wanted in my component.

Now that the sub-components are all linked up as childern of the main span, I need some way to get the render to call my render method for the options instead of the built-in one.

It seems to me that if good modular programming practices were employed that the option rendering would be a seperate routine from the select rendering routine, and that the option rendering routine would be overridiable.

The online help says "Gets a collection of attribute name and value pairs for the ListItem that are not directly supported by the class." But then goes on to say "Use the Attributes collection to manage the attribute name and value pairs declared in the opening and closing tags of the ListItem, but not directly supported by the class. You can programmatically add or remove attributes to the collection."

When I look at the Attributes collection, there is a render method, but its not clear to me how I could call get my code in to execute it.

Any ideas?

Thank you


QuestionText Alignment in a Datagrid Pin
shyamts17-Mar-07 18:29
shyamts17-Mar-07 18:29 
NewsSession_OnEnd no longer fires Pin
achimera17-Mar-07 8:01
achimera17-Mar-07 8:01 
GeneralRe: Session_OnEnd no longer fires Pin
Guffa17-Mar-07 9:14
Guffa17-Mar-07 9:14 
AnswerRe: Session_OnEnd no longer fires Pin
achimera17-Mar-07 11:03
achimera17-Mar-07 11:03 
GeneralRe: Session_OnEnd no longer fires Pin
Guffa17-Mar-07 13:33
Guffa17-Mar-07 13:33 
GeneralRe: Session_OnEnd no longer fires Pin
achimera17-Mar-07 14:19
achimera17-Mar-07 14:19 
GeneralRe: Session_OnEnd no longer fires Pin
Vasudevan Deepak Kumar22-Mar-07 6:15
Vasudevan Deepak Kumar22-Mar-07 6:15 
QuestionAsp.net webservice Pin
biaali16-Mar-07 23:08
biaali16-Mar-07 23:08 
AnswerRe: Asp.net webservice Pin
Vasudevan Deepak Kumar22-Mar-07 6:16
Vasudevan Deepak Kumar22-Mar-07 6:16 
Questionsending auto generating bulk mail Pin
jayvaishnav8216-Mar-07 20:08
jayvaishnav8216-Mar-07 20:08 
AnswerRe: sending auto generating bulk mail Pin
Bradml17-Mar-07 1:11
Bradml17-Mar-07 1:11 
GeneralRe: sending auto generating bulk mail Pin
jayvaishnav8217-Mar-07 1:30
jayvaishnav8217-Mar-07 1:30 
AnswerRe: sending auto generating bulk mail Pin
Vasudevan Deepak Kumar22-Mar-07 6:19
Vasudevan Deepak Kumar22-Mar-07 6:19 
QuestionEnterprise Library January 2006 - GUD to new for Asp.net 2.0 application Pin
dfdf34316-Mar-07 16:13
dfdf34316-Mar-07 16:13 
QuestionWindows Server 2003 SP2 Broke My Site Pin
achimera16-Mar-07 14:09
achimera16-Mar-07 14:09 
AnswerRe: Windows Server 2003 SP2 Broke My Site Pin
kubben16-Mar-07 16:52
kubben16-Mar-07 16:52 
GeneralRe: Windows Server 2003 SP2 Broke My Site Pin
achimera16-Mar-07 19:57
achimera16-Mar-07 19:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.