Troubles with Response.Redirect and target = â_bla
Hello:
From a web form I want open a new web form which I send one parameter from first web form, Iâm using this code:
if(this.CheckBox1.Checked == true)
{
string sIdPersona = "";
sIdPersona = TextBox3.Text;
Response.Redirect("WebForm2.aspx?id_persona=" + sIdPersona);
}
[u]If in first web form I use:</u>
Target = â_blankâ in form of HTML
Then if CheckBox1 is checked, itâs showing me 2nd web form correctly in a new window, but if CheckBox1 is not checked itâs showing me again 1st window into a new window.
[u]If in first web form I omit target = â_blankâ</u>
Then if CheckBox1 is checked, itâs showing me 2nd web form into same window, where 1st window was, such thing I donât want; but if it is not checked then nothing happens, this is OK.
I wish attain new web form show in a 2nd window if CheckBox1 is checked and otherwise 1st web form stay there, do not opening again it in a 2nd window.
Iâll thank you in advance if youâll be able to help me to attain it.
A.L.
El Hombre que tiene Amigos ha de mostrarse Amigo
__________________
El Hombre que tiene Amigos ha de mostrarse Amigo
|