Looking for the appropriate control
-
I have a web user control (in C#) that generates a series of html tables etc in the code behind file. How do I set the display (i.e. the ascx file) render with the html I have created. I tried creating a ASP label but I ran into some big sizing issues. Is there a better way to do this? Matt Newman
All rise for the honorable Judge Stone Cold Steve Austin - From Dilbert Episode 30
-
I have a web user control (in C#) that generates a series of html tables etc in the code behind file. How do I set the display (i.e. the ascx file) render with the html I have created. I tried creating a ASP label but I ran into some big sizing issues. Is there a better way to do this? Matt Newman
All rise for the honorable Judge Stone Cold Steve Austin - From Dilbert Episode 30
-
I have a web user control (in C#) that generates a series of html tables etc in the code behind file. How do I set the display (i.e. the ascx file) render with the html I have created. I tried creating a ASP label but I ran into some big sizing issues. Is there a better way to do this? Matt Newman
All rise for the honorable Judge Stone Cold Steve Austin - From Dilbert Episode 30
I may have your situation wrong but the best way would be to override the
OnRender
event of the ASCX and spit it out to the providedHtmlWriter
. Or a literal as Marcie suggests. What sizing issues are you having? regards, Paul Watson Bluegrass South Africa Chris Maunder wrote: "I'd rather cover myself in honey and lie on an ant's nest than commit myself to it publicly." Jon Sagara replied: "I think we've all been in that situation before." Crikey! ain't life grand? -
I may have your situation wrong but the best way would be to override the
OnRender
event of the ASCX and spit it out to the providedHtmlWriter
. Or a literal as Marcie suggests. What sizing issues are you having? regards, Paul Watson Bluegrass South Africa Chris Maunder wrote: "I'd rather cover myself in honey and lie on an ant's nest than commit myself to it publicly." Jon Sagara replied: "I think we've all been in that situation before." Crikey! ain't life grand?Paul Watson wrote: I may have your situation wrong but the best way would be to override the OnRender event of the ASCX and spit it out to the provided HtmlWriter. I think thats what I may need. Paul Watson wrote: What sizing issues are you having? Outputting it to a label or similar control I have to specify a fixed height so it will render all of my generated html but since the html is dynamic I can't specify the size. [EDIT] I was playing with the OnRender event (which I think is kind of cool) but I realized that it was my user control that was not properly sizing :doh: But the OnRender was what I was looking for.[/EDIT] [EDIT2]It turns out that I hadn't closed some table tags so it was rendering improperly :doh::sigh:[/EDIT2] Matt Newman
All rise for the honorable Judge Stone Cold Steve Austin - From Dilbert Episode 30
-
Marcie Robillard (Datagrid Girl) wrote: A Literal might be better than a Label, since I believe Label's put everything inside of a [span]. I was looking for something more like overriding OnRender [EDIT]It turns out that I hadn't closed some table tags so it was rendering improperly :doh::sigh:[/EDIT] Matt Newman
All rise for the honorable Judge Stone Cold Steve Austin - From Dilbert Episode 30