Author: kiekar01 | Posted on: 10/26/2008 4:38:21 PM | Views : 292

Hello,

I have a repeater control which has a TextBox and is inserted in a UpdatePanel.

I would like to have the TextBox columns property set based on the clients screen resolution.

I have a javascript function which sets the width using the onfocus event but ideally I would prefer

to set the width of the TextBox when the page loads.

Is this possible? If so, how would I go about doing this. Your help would be much appreciated.

Thanks,

Karl

<asp:TextBox ID="QCObservationTextBox" runat="server" Text='<%# Eval("QCObservation") %>'
     TextMode="MultiLine" Go to the complete details ...