I have a method that is returning a string which can be of any length.
Once this string is returned I want to display it on screen in a label
control. How can I make the label control's height and width be
flexible so that it always fits the length of the string it contains?
<asp:Label ID="lblSQL" runat="server" Height="600" Width="600"
BackColor="blue " ForeColor="whit e" Font-Names="Verdana"
Font-Size="Small"></asp:Label>
protected void Page_Load(objec t sender, EventArgs e)
{
ViewState["CountGUID"] = Request.QuerySt ring["GUID"];
string strCountSQL =
GetCountSql(Vie wState["CountGUID"].ToString());
lblSQL.Text = strCountSQL;
}
*** Sent via Developersdex http://www.developersdex.com ***
Once this string is returned I want to display it on screen in a label
control. How can I make the label control's height and width be
flexible so that it always fits the length of the string it contains?
<asp:Label ID="lblSQL" runat="server" Height="600" Width="600"
BackColor="blue " ForeColor="whit e" Font-Names="Verdana"
Font-Size="Small"></asp:Label>
protected void Page_Load(objec t sender, EventArgs e)
{
ViewState["CountGUID"] = Request.QuerySt ring["GUID"];
string strCountSQL =
GetCountSql(Vie wState["CountGUID"].ToString());
lblSQL.Text = strCountSQL;
}
*** Sent via Developersdex http://www.developersdex.com ***
Comment