asp.net - How to Use Target="_Blank" in Respnse.redirect() in c# -


i creating website in added paypal button. want on same page after success of payment. want payment processing should done in new tab.my written code follows:-

protected void button7_click(object sender, eventargs e) {     string business = "rajpadwa@gmail.com";     string itemname = "funds";     int itemamount = int32.parse(dropdownlist1.selecteditem.value);     string currencycode = "usd";      stringbuilder pphref = new stringbuilder();      pphref.append("https://www.paypal.com/cgi-bin/webscr?cmd=_xclick");     pphref.append("&business=" + business);     pphref.append("&item_name=" + itemname);     pphref.append("&amount=" + itemamount.tostring("#.00"));     pphref.append("&currency_code=" + currencycode);      response.redirect(pphref.tostring(), true); } 

can u please tell me how paypal transaction in new tab while using response.redirect() method...

you cannot use traget="_blank" on submit button, have use on form tag:

<form name="form1" method="post" action="somepage.aspx" target="_blank""> 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -