Dhimesh Parmar

Dhimesh Parmar

  • NA
  • 126
  • 13k

if same city name are there then it can'n repeat?

Mar 15 2018 3:56 AM
i need help to dislpy unic city name if city name are same then city data is disply but city name is not display?
 
my code like this:
 
<%
string tmp = "";
tmp=Convert.ToString(dstTourData1.Rows[i]["CityName"]);
if (tmp !=Convert.ToString(dstTourData1.Rows[i]["CityName"]))
{
%>
<div class="col-md-3">
<h3><%=dstTourData1.Rows[i]["CityName"] %>,<%=dstTourData1.Rows[i]["stateName"] %>,<%=dstTourData1.Rows[i]["CountryName"] %></h3>
</div>
<%
for (int j = 0; j <dstTourData1.Rows.Count; j++)
{
   <%
 
<div class="col-md-9">
<br />
<br />
<div class="col-md-12">
<h4><%=dstTourData1.Rows[i]["lname"] %></h4>
<p>
<%=dstTourData1.Rows[i]["detail"] %>
<br />
<b>Address </b>: <%=dstTourData1.Rows[i]["address"] %>
</p>
<p>
<img src="UploadImages/<%=dstTourData1.Rows[i]["image1"]%>" height="60" width="60" style="margin-right:25px" />
<img src="UploadImages/<%=dstTourData1.Rows[i]["image2"]%>" height="60" width="60" style="margin-right:25px" />
<img src="UploadImages/<%=dstTourData1.Rows[i]["image3"]%>" height="60" width="60" style="margin-right:25px" />
<img src="UploadImages/<%=dstTourData1.Rows[i]["image4"]%>" height="60" width="60" style="margin-right:25px" />
<img src="UploadImages/<%=dstTourData1.Rows[i]["image5"]%>" height="60" width="60" style="margin-right:25px" />
</p>
<!-- End row -->
</div>
</div>
<!-- End col-md-9 -->
</div>
 
 
   %> 
}
}
%>
 

Answers (3)