Click here to Skip to main content
15,892,927 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: web.config problem Pin
Fred_Smith15-Aug-07 4:57
Fred_Smith15-Aug-07 4:57 
GeneralRe: web.config problem Pin
Richard Jones15-Aug-07 7:07
Richard Jones15-Aug-07 7:07 
QuestionDetailsView After Insertion record Should postBack the inserted record Pin
JayadevLenka14-Aug-07 9:20
JayadevLenka14-Aug-07 9:20 
QuestionHow does one recognise a treo browser? Pin
dhigginx14-Aug-07 8:37
dhigginx14-Aug-07 8:37 
AnswerRe: How does one recognise a treo browser? Pin
Christian Graus14-Aug-07 12:24
protectorChristian Graus14-Aug-07 12:24 
QuestionAsp.net Basics Pin
i gr814-Aug-07 6:54
i gr814-Aug-07 6:54 
AnswerRe: Asp.net Basics [modified] Pin
dekart_roo14-Aug-07 7:18
dekart_roo14-Aug-07 7:18 
QuestionClean way to get to individual controls? Pin
dandy7214-Aug-07 3:30
dandy7214-Aug-07 3:30 
Hi all,

I'm trying to figure out the best way to proceed to get to individual child controls of some server controls, so my code won't be so brittle as to be likely to break at the next revision.

For example, I'm trying to get to the month caption so I can add an onclick event to it (or replace the text entirely). The calendar object doesn't appear to have a member mapped to the encapsulating , and it doesn't have an ID either.

The most obvious newbie answer to get to the (in order to be able to do something like td.Attributes.Add("onclick",...something...) ) is to look at the calendar's child control collection, and take a good guess based on its position in the collection. However I don't have much confidence in such an approach that assumes knowledge of what the final output is currently made to look like. Time and again ASP.NET newcomers are told to forget about the HTML, and are encouraged to think of everything as objects that abstract away the implementation details...so I'm trying to play nice and adapt to the framework, rather than fight it and manipulating the HTML generated (which goes against the very spirit of something like ASP.NET).

So what are the accepted ASP.NET practices for scenarios such as this? I'm new to ASP.NET, and like how the server controls go to a certain length to abstract away some HTML ugliness, but the more I toy with them, the more I find them to be severely lacking if you're after a lot of flexibility.

I have a lot of "how do I..." type of questions, but they could probably all be answered if I could get a straight answer to this one.
AnswerRe: Clean way to get to individual controls? Pin
J4amieC14-Aug-07 5:09
J4amieC14-Aug-07 5:09 
GeneralRe: Clean way to get to individual controls? Pin
dandy7215-Aug-07 5:18
dandy7215-Aug-07 5:18 
Question.net 1.1 and 2.0 Pin
greekius14-Aug-07 2:57
greekius14-Aug-07 2:57 
AnswerRe: .net 1.1 and 2.0 Pin
Talal Sultan14-Aug-07 3:01
Talal Sultan14-Aug-07 3:01 
AnswerRe: .net 1.1 and 2.0 Pin
nandhububbly14-Aug-07 3:01
nandhububbly14-Aug-07 3:01 
AnswerRe: .net 1.1 and 2.0 Pin
Talal Sultan14-Aug-07 3:08
Talal Sultan14-Aug-07 3:08 
QuestionFileUpload control Pin
Milind Panchal14-Aug-07 2:49
Milind Panchal14-Aug-07 2:49 
AnswerRe: FileUpload control Pin
Talal Sultan14-Aug-07 3:03
Talal Sultan14-Aug-07 3:03 
Questionscanning of files or folders without sharing Pin
gbs1234514-Aug-07 2:20
gbs1234514-Aug-07 2:20 
AnswerRe: scanning of files or folders without sharing Pin
Paddy Boyd14-Aug-07 3:24
Paddy Boyd14-Aug-07 3:24 
GeneralRe: scanning of files or folders without sharing Pin
gbs1234514-Aug-07 3:33
gbs1234514-Aug-07 3:33 
GeneralRe: scanning of files or folders without sharing Pin
Paddy Boyd14-Aug-07 3:36
Paddy Boyd14-Aug-07 3:36 
GeneralRe: scanning of files or folders without sharing Pin
gbs1234514-Aug-07 3:44
gbs1234514-Aug-07 3:44 
GeneralRe: scanning of files or folders without sharing Pin
Paddy Boyd14-Aug-07 3:48
Paddy Boyd14-Aug-07 3:48 
GeneralRe: scanning of files or folders without sharing Pin
gbs1234515-Aug-07 19:30
gbs1234515-Aug-07 19:30 
GeneralRe: scanning of files or folders without sharing Pin
Paddy Boyd15-Aug-07 21:09
Paddy Boyd15-Aug-07 21:09 
QuestionAutoPostback Pin
NICE TO MEET14-Aug-07 1:51
NICE TO MEET14-Aug-07 1:51 

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.