Rendered Control questions

M

Martin

Hi,

I'm writing a rendered control to display either a plain text (in a span
element), or an edit box, (in an input element) according to the control
attribute ReadOnly.

Fundamentally I have the runtime behaviour I want.
I have 2 questions:
1) How do I control the size of the rendered control at design time, and run
time?
2) I have noticed that in Render method, if I say output.RenderTag("INPUT"),
the input element is still written in lower case. Is that correct
behaviour, or something more sinister?

Thanks
Martin
 
M

Martin

Answer to 1) is
output.AddStyleAttribute("Width",this.Width.ToString());

in Render(...)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top