Click here to Skip to main content
15,889,034 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
jkirkerx13-Aug-12 7:17
professionaljkirkerx13-Aug-12 7:17 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
CodeHawkz29-Aug-12 19:17
CodeHawkz29-Aug-12 19:17 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
jkirkerx30-Aug-12 6:04
professionaljkirkerx30-Aug-12 6:04 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
CodeHawkz30-Aug-12 20:34
CodeHawkz30-Aug-12 20:34 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
jkirkerx31-Aug-12 6:25
professionaljkirkerx31-Aug-12 6:25 
QuestionPage.Response.Redirect not working Pin
dcof9-Aug-12 5:21
dcof9-Aug-12 5:21 
AnswerRe: Page.Response.Redirect not working Pin
jkirkerx9-Aug-12 6:50
professionaljkirkerx9-Aug-12 6:50 
AnswerRe: Page.Response.Redirect not working Pin
AspDotNetDev9-Aug-12 6:51
protectorAspDotNetDev9-Aug-12 6:51 
dcof wrote:
The code that calls the routine is the following


Page.Response.Redirect is a server-side function, yet return numbersonly(this, event) appears to be a call to a JavaScript function. That's not going to work. Here is an example of how you can do a server-side redirect:
ASP.NET
<%@ Page Language="vb" AutoEventWireup="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
  Protected Sub btnTest_Click(sender As Object, e As System.EventArgs)
    Page.Response.Redirect("http://www.google.com/")
  End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Test Redirect</title>
</head>
<body>
    <form id="frmMain" runat="server">
      <asp:Button runat="server" ID="btnTest" Text="Redirect" onclick="btnTest_Click" />
    </form>
</body>
</html>

If you want to do it with JavaScript, it would be different (you'd use window.location).

AnswerMessage Closed Pin
9-Aug-12 8:14
professionaljkirkerx9-Aug-12 8:14 
GeneralRe: Page.Response.Redirect not working Pin
dcof9-Aug-12 12:11
dcof9-Aug-12 12:11 
GeneralRe: Page.Response.Redirect not working Pin
jkirkerx9-Aug-12 17:09
professionaljkirkerx9-Aug-12 17:09 
GeneralRe: Page.Response.Redirect not working Pin
dcof9-Aug-12 18:40
dcof9-Aug-12 18:40 
AnswerRe: Page.Response.Redirect not working Pin
dipurajp10-Aug-12 2:42
dipurajp10-Aug-12 2:42 
GeneralRecursion from asp classic to asp net Pin
EnricoRS19-Aug-12 4:45
EnricoRS19-Aug-12 4:45 
AnswerRe: Recursion from asp classic to asp net Pin
Wes Aday9-Aug-12 5:54
professionalWes Aday9-Aug-12 5:54 
GeneralRe: Recursion from asp classic to asp net Pin
EnricoRS19-Aug-12 9:00
EnricoRS19-Aug-12 9:00 
AnswerRe: Recursion from asp classic to asp net Pin
jkirkerx9-Aug-12 8:19
professionaljkirkerx9-Aug-12 8:19 
GeneralRe: Recursion from asp classic to asp net Pin
EnricoRS19-Aug-12 9:01
EnricoRS19-Aug-12 9:01 
GeneralThis is how I would of wrote it, Pin
jkirkerx10-Aug-12 7:04
professionaljkirkerx10-Aug-12 7:04 
QuestionGridview formatting acts wierd when dployed in server Pin
preetham_s8-Aug-12 20:40
preetham_s8-Aug-12 20:40 
QuestionRe: Gridview formatting acts wierd when dployed in server Pin
Eddy Vluggen9-Aug-12 0:56
professionalEddy Vluggen9-Aug-12 0:56 
QuestionIssue for Quartz schedular Pin
Shirish kumar manda8-Aug-12 20:39
Shirish kumar manda8-Aug-12 20:39 
AnswerRe: Issue for Quartz schedular Pin
Eddy Vluggen9-Aug-12 0:54
professionalEddy Vluggen9-Aug-12 0:54 
Questioncms Pin
Member 93252298-Aug-12 20:10
Member 93252298-Aug-12 20:10 
SuggestionRe: cms Pin
Eddy Vluggen9-Aug-12 0:55
professionalEddy Vluggen9-Aug-12 0:55 

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.