I have to send data throug querystring from one page to
another. But it should not be displayed in URL. How it is
possible?

Answers were Sorted based on User's Feedback



I have to send data throug querystring from one page to another. But it should not be displayed in..

Answer / ravindra thakur

Using the server.transfer("page.aspx?id=1")

Is This Answer Correct ?    10 Yes 7 No

I have to send data throug querystring from one page to another. But it should not be displayed in..

Answer / santosh

string url = "http://localhost:4351/WebSite8/Default5.aspx?" + TextBox1.Text;

Uri weburi = new Uri(url);
string query = weburi.Query;
string weburl = url.Substring(0, url.Length - query.Length);
Response.Redirect(weburl);

Is This Answer Correct ?    1 Yes 0 No

I have to send data throug querystring from one page to another. But it should not be displayed in..

Answer / aloke kumar datta

By URL rewriting

Is This Answer Correct ?    6 Yes 6 No

I have to send data throug querystring from one page to another. But it should not be displayed in..

Answer / joydeep

using hidden feilds

Is This Answer Correct ?    6 Yes 8 No

I have to send data throug querystring from one page to another. But it should not be displayed in..

Answer / ramesh

Write this code in default.aspx:

Response.Redirect("default2.aspx?Name=" + txtStudName.Text);

Write this code in default2.aspx:

if (Request.QueryString["Name"] != null)
{
TextBox1.Text = Request.QueryString
["Name"].ToString();

}

Is This Answer Correct ?    10 Yes 13 No

I have to send data throug querystring from one page to another. But it should not be displayed in..

Answer / don

Use Server.Transfer("PageName")&Var1, &Var2;

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More ASP.NET Interview Questions

How do u optimize a query in asp.net?

0 Answers   MCN Solutions,


What is stateless asp or asp.net ?

2 Answers   Accenture, BirlaSoft,


Define dll hell?

0 Answers  


How do cookies work? Give an example of their abuse.

0 Answers  


What is the size of Get method and how much data it can store?

0 Answers   HCL,






Does the following statement executes successfully: Response.Write(?value of i = ? + i);

4 Answers   TCS,


What is the function of new view engine in asp.net? : asp.net mvc

0 Answers  


What is the asp.net control toolkit?

0 Answers  


What is difference between rest and soap?

0 Answers  


which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites

0 Answers   TCS,


What data types do the RangeValidator control support?

2 Answers   Siebel Systems,


how to convert varchar into datatype int............. in ASP

1 Answers  


Categories