그래서 "place order"버튼이있는 웹 사이트가 있고 그 위에는 각 제품에 대한 수량을 설정할 수있는 제품 및 텍스트 상자 목록이 있습니다.프로그래밍 방식으로 mailto
버튼을 클릭하면 다시 게시되고 각 제품의 수를 계산 한 다음 앞면에 "mailto : [email protected]"과 함께 큰 문자열로 넣습니다. 나는 이제 어떻게 든 포스트 백이 끝날 때 클라이언트에 자동으로 팝업되도록하려고합니다.
나는 window.open을 시도했지만, 피하려고하는 새 브라우저 창이 열립니다.
버튼 게시 코드 :
protected void btnPlaceOrder_Click(object sender, EventArgs e)
{
string url = "mailto:[email protected]?subject=New order from " + ddlSelectLocation.SelectedItem.Value;
url += "&body=Please raise a new order for the following items:" + Environment.NewLine;
foreach (GridViewRow row in grdOrder.Rows)
{
string model = row.Cells[0].Text;
int qty = 0;
TextBox txt = (TextBox)row.Cells[3].Controls[1];
if (int.TryParse(txt.Text, out qty))
{
if (qty > 0)
url += " - " + model + ": " + qty.ToString() + Environment.NewLine;
}
}
url += Environment.NewLine + "Many Thanks.";
Response.Write(url);
}
그렇지 않으면 내가
window.op 대신 document.window를 사용하십시오. en – prospector
그래도 내 현재 창보기의 내용을 제거 할 수 있습니까? –