Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
in asp.net in javascript hoe to redirect a page
deepa ashwi
11y
1.1k
1
Reply
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")
}
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
how to add facebook, twitter button in asp.net??
how to add google map in asp.net with location?