TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dhimesh Parmar
NA
126
14.2k
if city name is same then it print only one time?
Mar 15 2018 1:20 AM
my code like this:
<%
if(dstTourData1 != null)
{
if(dstTourData1.Rows.Count > 0)
{
for (int i = 0; i < dstTourData1.Rows.Count; i++)
{
%>
<div class="row">
<%
string tmp=Convert.ToString(dstTourData1.Rows[i]["CityName"]);
if (tmp ==Convert.ToString(dstTourData1.Rows[i]["CityName"]))
{
for (int j = 0; j <=dstTourData.Rows.Count; j++)
{
%>
<div class="col-md-3">
<h3><%=dstTourData1.Rows[i]["CityName"] %>,<%=dstTourData1.Rows[i]["stateName"] %>,<%=dstTourData1.Rows[i]["CountryName"] %></h3>
</div>
<%
}
}
%>
<div class="col-md-3">
<h3><%=dstTourData1.Rows[i]["CityName"] %>,<%=dstTourData1.Rows[i]["stateName"] %>,<%=dstTourData1.Rows[i]["CountryName"] %></h3>
</div>
<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>
Reply
Answers (
1
)
Fetching data into checkboxes without using Html Helper
edit opreation of datepicker