JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
<table>
@foreach (var item in Model.order_details.GroupBy(x => x.delivery_add).Select(x1 => x1.FirstOrDefault()).ToList())
var seqno_ = seqNO++;
var a2 = seqNNo++;
if (seqno_ % 2 == 0)
flag = "Even";
flag = "Odd";
if (flag == "Odd")
<text> <tr></text>
<b>Delivery Address @a2: </b>
<b>Delivery Address @a2: </b>
<text></tr></text>
</table>
Posting guidelines
DIY:
Before posting, try to debug your code, try to search documentation/web for information/solutions.
Where:
Try to post in proper subforum, all forums here are for C# questions.
How:
Explain the problem so other people can understand it. Give a brief title describing the topic. State project type and .Net version.
Code:
Use code button
</>
when posting code. Avoid screenshots of code.
Resolved
button is at top of page,
Mark as solution
button right side of post.
"Give a person a relativistic rock,
and they will shatter a planet today.
Teach them to do the math themselves,
and they will shatter planets for the rest of their lives."
-
from an Ad Astra Games t-shirt
Posting guidelines
DIY:
Before posting, try to debug your code, try to search documentation/web for information/solutions.
Where:
Try to post in proper subforum, all forums here are for C# questions.
How:
Explain the problem so other people can understand it. Give a brief title describing the topic. State project type and .Net version.
Code:
Use code button
</>
when posting code. Avoid screenshots of code.
Resolved
button is at top of page,
Mark as solution
button right side of post.
"Give a person a relativistic rock,
and they will shatter a planet today.
Teach them to do the math themselves,
and they will shatter planets for the rest of their lives."
-
from an Ad Astra Games t-shirt
<table>
@foreach (var item in Model.order_details.GroupBy(x => x.delivery_add).Select(x1 => x1.FirstOrDefault()).ToList())
var seqno_ = seqNO++;
var a2 = seqNNo++;
if (seqno_ % 2 == 0)
flag = "Even";
flag = "Odd";
if (flag == "Odd")
<text> <tr></text>
<b>Delivery Address @a2: </b>
<b>Delivery Address @a2: </b>
<text></tr></text>
</table>
Output:
ODD Even
Delivery Address:1 Delivery Address:2
Delivery Address:3 Delivery Address:4
Posting guidelines
DIY:
Before posting, try to debug your code, try to search documentation/web for information/solutions.
Where:
Try to post in proper subforum, all forums here are for C# questions.
How:
Explain the problem so other people can understand it. Give a brief title describing the topic. State project type and .Net version.
Code:
Use code button
</>
when posting code. Avoid screenshots of code.
Resolved
button is at top of page,
Mark as solution
button right side of post.
"Give a person a relativistic rock,
and they will shatter a planet today.
Teach them to do the math themselves,
and they will shatter planets for the rest of their lives."
-
from an Ad Astra Games t-shirt
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…