it works well when I change my code,This is edited code:
protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
{
if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem))
{
DataList dls1 = (DataList)sender;
Label lbl = (Label)e.Item.FindControl("hiddenLable");
string idfromindex = lbl.Text;
DataList lst2 = (DataList)e.Item.FindControl("innerDataLiat");
Panel pnl = (Panel)e.Item.FindControl("Panel1");
t = setinnerDataList(idfromindex);
int sumqty = 0;
double sumprice = 0;
for (int i = 0; i < t.Tables[0].Rows.Count; i++)
{
sumprice += Convert.ToDouble(t.Tables[0].Rows[i]["p_price"]) * Convert.ToInt32(t.Tables[0].Rows[i]["qty"]);
sumqty += Convert.ToInt32(t.Tables[0].Rows[i]["qty"]);
}
Label lbl14 = (Label)e.Item.FindControl("Label14");
lbl14.Text = sumqty.ToString();
Label lbl15 = (Label)e.Item.FindControl("Label15");
lbl15.Text = sumprice.ToString();
lst2.DataSource = t;
lst2.DataBind();
}
}
<asp:DataList ID="innerDataLiat" runat="server" RepeatColumns="1"
BackColor="#CCCCCC"
CellPadding="4" CellSpacing="2" ForeColor="Black" GridLines="Both" OnItemDataBound="DataList2_ItemDataBound" >
<FooterStyle BackColor="#CCCCCC" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<itemstyle backcolor="White" />
<itemtemplate>
<table style="width: 100%;"></table>
<table style="width: 100%;" id="tbl1">
<tr>
<td>
name :
</td>
<td>
<asp:label id="pname" runat="server" text="<%# Eval("pname") %>" xmlns:asp="#unknown"></asp:label>
</td>
<td>
quantity:
</td>
<td>
<asp:label id="qty" runat="server" text="<%# Eval("qty") %>" xmlns:asp="#unknown"></asp:label>
</td>
<td>
unit_price:
</td>
<td>
<asp:label id="unit_price" runat="server" text="<%# Eval("p_price") %>" xmlns:asp="#unknown"></asp:label>
</td>
</tr>
</table>
</itemtemplate>