Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am getting address from database i want to show data one by one like
name address
jack texas
dellas
usa
just like address column but in my program i am getting it in a row like texas,dellas,usa ,how ro do it in asp.net mvc
Posted
Comments
deepankarbhatnagar 23-Jun-15 8:42am    
Not getting your query

Use break statements in between the address fields wherever necessary so that it appear as specified.

HTML
<div>
<span>name address</span><br />
<span>jack texas</span><br />
<span>dellas</span><br />
<span>usa</span>
<div></div></div>
 
Share this answer
 
Comments
Member 11755579 26-Jun-15 1:17am    
these things are coming directly from database how to give span there it is coming under address column
Sreekanth Mothukuru 26-Jun-15 2:28am    
You need to format the SQL query output string in such a way that it appear as is. There is no other way we could do this.
these things are coming directly from database how to give span there it is coming under address column
 
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