deepa ashwi

deepa ashwi

  • NA
  • 109
  • 602.9k

in asp.net in javascript hoe to redirect a page

Jun 13 2013 6:09 AM
the following is my code which is in my index.aspx ..in the last line i gave as window.open...so,it is opening to a new window called Home.aspx and still the index.aspx is shown but index.aspx has to disappear when i move to Home.aspx.. i.e; index.aspx page has to close i gave window.close("index.aspx"); in Home.aspx page  but not working out...how to do.anyone help me know?..please


<script type="text/javascript" > 
function pageopen()
{
var Hid = document.getElementById('HiddenFieldCity');
var HidA = document.getElementById('HiddenFieldArea');
var HidC = document.getElementById('HiddenFieldComm');
var HidD = document.getElementById('txtDate');
if (document.getElementById('ddlone').value=="Select Here")
{
alert("Please Select City");
return false;
}
window.open('Home.aspx?hid=' + Hid.value + '& HidA=' + HidA.value + '& HidC=' + HidC.value + '& HidD=' + HidD.value + '',"Welcome","titlebar=0,fullscreen=0,addressbar=0,left=0,top=0,maximized=yes,width=1024,height=700,scrollbars=no,resizable=yes") 



Answers (2)