Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Guys...

Here I am Creating two html controls dynamically...one is label control and second one is link...but what issue i am facing is that both the controls are coming in single line...


like...

AshuRawatClick to download

here ashirawat is text in label control and click to download is link....

I want Click to download to be in next line...
like...WITHOUT USING BREAK CONTROL...OR I DO"T WANT TO USE ANY DUMMY CONTROL

AshuRawat
Click to download

Please Help me guys to resolve this issue....

Thanx in Advance...

MY CODE FOR CREATING CONTROL IS THIS....::::


System.Web.UI.WebControls.Label lbl = new System.Web.UI.WebControls.Label();
lbl.Text = obizLayer.SubscriptionMessage;
divMain.Controls.Add(lbl);
HtmlAnchor albl = new HtmlAnchor();
albl.InnerHtml = obizLayer.SubscriptionLinkText;
albl.HRef = obizLayer.SubscriptionLinkURL;
divMain.Controls.Add(albl);
Posted
Updated 17-Apr-13 1:43am
v2

Why don't you manually add a line break (with the BR tag) or insert the controls in a paragraph (the P tag)?
 
Share this answer
 
Or/And use css
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900