Home > Not Working > Asp.net Window.location Not Working

Asp.net Window.location Not Working


My code is below: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page1.aspx.cs" Inherits="WebApplication1.Page1" %>

script Peter -- Site: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com Short urls & more: http://ittyurl.net "Dan" wrote: >Hi,i try to redirect to another aspx page with jscript. location is not a function. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Source

Optional Password I have read and agree to the Terms of Service and Privacy Policy Please subscribe me to the CodeProject newsletters Submit your solution! Examples might be simplified to improve reading and basic understanding. Thanks Dan ....

.... Feb 12 '07 #2 P: n/a =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?= Code ladder, Robbers What to do when your opponent doesn't play along in the opening? http://stackoverflow.com/questions/27725127/redirect-using-window-location-doesnt-working

Window.location.href Is Not Working

I'm just getting a page refresh, here's the full code: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TEST.aspx.cs" Inherits="TEST" %> Untitled Page window.location refers to the current windows address, and will only - when using window.location.reload() - reload the CURRENT window. All rights reserved. Now here, it working fine in my colleague's PC (both IE and CHROME) but not working same in my PC on IE browser but working fine with google chrome.

Reply dst101 Member 43 Points 223 Posts Re: window.location not working in asp.net page? Sign in using Search within: Articles Quick Answers Messages Use my saved content filters home articles Chapters and Sections> Search Latest Articles Latest Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Has a movie ever referred to a later movie? Window.location Alternative problem with redirecting page with OnClientClick P: n/a Dan Hi, i try to redirect to another aspx page with jscript.

My problem is: When i want to navigate to another page using javascript window.location.href the browser redirects me to the production page and not the test page. Window.location Not Working In Chrome more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Can I sell a stock immediately? http://stackoverflow.com/questions/6094130/window-location-not-working-not-opening-page Is IIS adding some default routing?

window.location.href = "City.aspx?city=" + city + "-" + country; share|improve this answer answered May 2 '12 at 0:21 Ryan♦ 126k21242290 thanks, of course.. Window.location.href Not Working In Ajax Success Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. How? http://support.microsoft.com/gp/howtoscript[^] If your JavaScript is enabled and still it is not working then you can try window.top.location="pageurl.aspx".

Window.location Not Working In Chrome

If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. http://www.codeproject.com/Questions/733049/Window-location-not-working my code is below var WinPrint = window.open('', '', 'letf=0,top=0,width=800,height=400,menubar=0,scrollbars=0,status=0'); WinPrint.document.write(prtContent.innerHTML); WinPrint.onunload = refreshParent; function refreshParent() { window.location.href = 'disbursal.aspx?PRGCODE=PRA021'; alert('fired'); } WinPrint.document.close(); WinPrint.focus(); WinPrint.print(); WinPrint.close(); Please Reply. Window.location.href Is Not Working Here is my javascript; Feb 12 '07 #1 Post Reply Share

Not the answer you're looking for? but it does not woking with chrome. Can a giant spoon be utilised as a weapon Pick Randomly Between -1 or 1 Animated plot required to leave behind trace Is there a way to block an elected President Javascript Redirect Not Working What am i doing wrong?

Animated plot required to leave behind trace Lab colleague uses cracked software. To critique or request clarification from an author, leave a comment below their post. –BorrajaX Mar 5 '15 at 22:38 Tried using location.replace("/MyPage.aspx?id="+item.value); but the problem is still there. What I'm doing wrong? I appologise!

Join them; it only takes a minute: Sign up window.location() is not working in .aspx page up vote -2 down vote favorite I have an aspx page and a asp textbox Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.

© Copyright 2017 bosseur.net. All rights reserved.