Click here to Skip to main content
15,888,610 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAdding scriptManager tag to Non ajax enabled web application Pin
salmonraju30-Apr-10 2:15
salmonraju30-Apr-10 2:15 
AnswerRe: Adding scriptManager tag to Non ajax enabled web application Pin
Sandeep Mewara30-Apr-10 2:45
mveSandeep Mewara30-Apr-10 2:45 
GeneralRe: Adding scriptManager tag to Non ajax enabled web application Pin
salmonraju30-Apr-10 3:12
salmonraju30-Apr-10 3:12 
QuestionHow to hide Querystring Parameters Pin
Sandesh M Patil30-Apr-10 1:21
Sandesh M Patil30-Apr-10 1:21 
AnswerRe: How to hide Querystring Parameters Pin
DaveAuld30-Apr-10 1:31
professionalDaveAuld30-Apr-10 1:31 
AnswerRe: How to hide Querystring Parameters Pin
Dinesh Mani30-Apr-10 1:35
Dinesh Mani30-Apr-10 1:35 
AnswerRe: How to hide Querystring Parameters Pin
Brij30-Apr-10 1:38
mentorBrij30-Apr-10 1:38 
AnswerRe: How to hide Querystring Parameters Pin
daveyerwin30-Apr-10 4:11
daveyerwin30-Apr-10 4:11 
sandympatil wrote:
just want to use Querystring and want to hide it


OOkay , here is what the "login"
page looks like...
</head>
<body>
<form action=''>
enter password<br>
<input type="password" name="password" >
<input type="submit"  >
</form>
</body>
<script type="text/javascript">   
    xhr = new XMLHttpRequest();
    myredirect = function () {
        xhr.open("GET", "http://whoever.com/Default3.aspx?" + document.forms[0].password.value, true);
        xhr.onreadystatechange = function () {
            if (this.readyState == 4) {
                if (this.responseText == "failed") { alert("failed"); }
                else {
                    window.location.replace(this.responseText);
                }
            }
        }
        xhr.send(null);
        return false;
    }
    document.forms[0].onsubmit = myredirect;
    </script>
</html>

hereis the aspx file ...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>

here is the aspx.cs ...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default3 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString.ToString() == "password")
        {
            Response.Write("http://www.msn.com");
            Response.End();
        }
        else
        {
            Response.Write("failed");
            Response.End();

        }

    }
}

GeneralRe: How to hide Querystring Parameters Pin
Sandesh M Patil30-Apr-10 4:51
Sandesh M Patil30-Apr-10 4:51 
GeneralRe: How to hide Querystring Parameters Pin
daveyerwin30-Apr-10 11:57
daveyerwin30-Apr-10 11:57 
AnswerRe: How to hide Querystring Parameters Pin
Peace ON30-Apr-10 19:48
Peace ON30-Apr-10 19:48 
AnswerRe: How to hide Querystring Parameters Pin
Husain Ahmad Khalid2-May-10 1:33
Husain Ahmad Khalid2-May-10 1:33 
Questionasp:BoundField as link? Pin
lvq68430-Apr-10 1:11
lvq68430-Apr-10 1:11 
AnswerRe: asp:BoundField as link? Pin
Shahriar Iqbal Chowdhury/Galib30-Apr-10 1:47
professionalShahriar Iqbal Chowdhury/Galib30-Apr-10 1:47 
GeneralRe: asp:BoundField as link? Pin
lvq68430-Apr-10 2:45
lvq68430-Apr-10 2:45 
QuestionInsert excell data into SQL server Pin
Morgs Morgan30-Apr-10 1:09
Morgs Morgan30-Apr-10 1:09 
AnswerRe: Insert excell data into SQL server Pin
Peace ON30-Apr-10 2:09
Peace ON30-Apr-10 2:09 
QuestionBrowser compability Problem Pin
lrsalunkhe30-Apr-10 0:26
lrsalunkhe30-Apr-10 0:26 
AnswerRe: Browser compability Problem Pin
Simon_Whale30-Apr-10 1:17
Simon_Whale30-Apr-10 1:17 
QuestionTo Open Save Dialog box using javascript Pin
priyagee29-Apr-10 22:26
priyagee29-Apr-10 22:26 
AnswerRe: To Open Save Dialog box using javascript Pin
Peace ON30-Apr-10 20:04
Peace ON30-Apr-10 20:04 
Questiongridview Pin
Kissy1629-Apr-10 22:02
Kissy1629-Apr-10 22:02 
AnswerRe: gridview Pin
Abhishek Sur29-Apr-10 23:57
professionalAbhishek Sur29-Apr-10 23:57 
AnswerRe: gridview Pin
Anurag Gandhi30-Apr-10 0:01
professionalAnurag Gandhi30-Apr-10 0:01 
GeneralRe: gridview Pin
Kissy1630-Apr-10 1:26
Kissy1630-Apr-10 1:26 

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.