Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Rendered Control questions

Reply
Thread Tools

Rendered Control questions

 
 
Martin
Guest
Posts: n/a
 
      10-10-2004
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


 
Reply With Quote
 
 
 
 
Martin
Guest
Posts: n/a
 
      10-10-2004
Answer to 1) is
output.AddStyleAttribute("Width",this.Width.ToStri ng());

in Render(...)



"Martin" <> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get the id of a rendered control within user control alsu50@gmail.com ASP .Net 3 10-28-2006 12:26 AM
edit attribute values of a web control just before control rendered to the page (control's Load event?) TJ ASP .Net Web Controls 4 04-07-2006 01:30 AM
Custom User Control is not rendered inside another user control in a server table. Leeor Chernov ASP .Net 2 10-16-2005 08:35 AM
Repeater control in a rendered custom control Cappy ASP .Net Building Controls 0 01-21-2004 03:44 PM
ControlDesigner not invoked on custom control when control is rendered within another custom control Matt Sokol ASP .Net Building Controls 2 08-07-2003 07:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57