תראו, כשאני משתמש בקטע הקוד הבא:
קוד:System.Web.UI.WebControls.TextBox txt1 = new System.Web.UI.WebControls.TextBox(); txt1.ID = "lbl_Account_Inner_Username"; form1.Controls.Add(txt1); panel_Account_Inner.Controls.Add(txt1);
הוא יוצר לי תיבת טקסט בלי בעיה מקום הנכון.
אבל כשאני משתמש בקוד הבא:
קוד:System.Web.UI.WebControls.Label l1 = new System.Web.UI.WebControls.Label(); l1.ID = "lbl_Account_Inner_Username"; l1.Text = "Something"; form1.Controls.Add(l1); panel_Account_Inner.Controls.Add(l1);
אני לא רואה את הלייבל!
למרות זאת, היא כן מופיעה בסורס:
עזרה???קוד:<div id="panel_Account_Inner" style="height:100%;width:100%;"> <span id="lbl_Account_Inner_Username">Something</span>
מה לעשות כדי שיראו אותה??



ציטוט ההודעה