Click here to Skip to main content
15,907,281 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Redirect to other page than specified by default Pin
jkirkerx13-Jan-12 10:39
professionaljkirkerx13-Jan-12 10:39 
QuestionUrl changes but page stays on the same page Pin
CodingYoshi12-Jan-12 4:46
CodingYoshi12-Jan-12 4:46 
AnswerRe: Url changes but page stays on the same page Pin
jkirkerx13-Jan-12 10:32
professionaljkirkerx13-Jan-12 10:32 
QuestionASP.NET MVC 3 Pin
CodingYoshi11-Jan-12 5:35
CodingYoshi11-Jan-12 5:35 
AnswerRe: ASP.NET MVC 3 Pin
jkirkerx13-Jan-12 10:22
professionaljkirkerx13-Jan-12 10:22 
QuestionExport to Excel Date Format for UK Pin
thowra11-Jan-12 0:09
thowra11-Jan-12 0:09 
AnswerRe: Export to Excel Date Format for UK Pin
thowra11-Jan-12 2:28
thowra11-Jan-12 2:28 
QuestionCompare two Template Fields of Gridview Pin
Rameez Raja9-Jan-12 21:36
Rameez Raja9-Jan-12 21:36 
AnswerRe: Compare two Template Fields of Gridview Pin
manognya kota9-Jan-12 22:40
manognya kota9-Jan-12 22:40 
AnswerRe: Compare two Template Fields of Gridview Pin
Karthik Harve9-Jan-12 22:43
professionalKarthik Harve9-Jan-12 22:43 
AnswerRe: Compare two Template Fields of Gridview Pin
jkirkerx13-Jan-12 10:46
professionaljkirkerx13-Jan-12 10:46 
Questionhow to display menu control like code project top navigation and left panel menu Pin
developerit9-Jan-12 20:47
developerit9-Jan-12 20:47 
AnswerRe: how to display menu control like code project top navigation and left panel menu Pin
David C# Hobbyist.10-Jan-12 3:07
professionalDavid C# Hobbyist.10-Jan-12 3:07 
AnswerRe: how to display menu control like code project top navigation and left panel menu Pin
anishkannan10-Jan-12 20:16
anishkannan10-Jan-12 20:16 
Questionwindow.location.replace Pin
Satish_S9-Jan-12 0:09
Satish_S9-Jan-12 0:09 
hi
i have following line of code

randomNumber = Math.round(100000*Math.random());


url = "sample.aspx?host="+host+"&port="+port+"&targetName="+targetName+"&imageMode="+imageMode+"&randomNumber="+randomNumber;
alert("callbegins:Authentication.aspx");
location.replace(url);
alert("callends:Authentication.aspx");
break;


in the Authentication.aspx page i have the client code which connects a device. when the line of the above code getting executed it is redirecting to the URL server side but my javascript code are not working. when i call alert after replace then the page getting redirected and client code is getting excuted.
i am confused that why when putting alert after replace it is redirecting and calling client code but when the alert commented then the client code not working.


this issue is in fire fox, and in IE9 its not at all redirecting if alert also there.

please clarify me why this happens

thanks
AnswerRe: window.location.replace Pin
jkirkerx9-Jan-12 9:24
professionaljkirkerx9-Jan-12 9:24 
GeneralRe: window.location.replace Pin
Satish_S9-Jan-12 23:45
Satish_S9-Jan-12 23:45 
GeneralRe: window.location.replace Pin
jkirkerx10-Jan-12 6:33
professionaljkirkerx10-Jan-12 6:33 
GeneralRe: window.location.replace Pin
Satish_S10-Jan-12 18:05
Satish_S10-Jan-12 18:05 
GeneralRe: window.location.replace Pin
jkirkerx10-Jan-12 18:10
professionaljkirkerx10-Jan-12 18:10 
GeneralRe: window.location.replace Pin
jkirkerx10-Jan-12 18:16
professionaljkirkerx10-Jan-12 18:16 
GeneralRe: window.location.replace Pin
Satish_S10-Jan-12 18:20
Satish_S10-Jan-12 18:20 
GeneralRe: window.location.replace Pin
jkirkerx10-Jan-12 18:33
professionaljkirkerx10-Jan-12 18:33 
GeneralRe: window.location.replace Pin
Satish_S10-Jan-12 18:56
Satish_S10-Jan-12 18:56 
GeneralRe: window.location.replace Pin
jkirkerx10-Jan-12 19:03
professionaljkirkerx10-Jan-12 19:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.