Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Give some salient points of difference between request processor and request dispatcher.

0 Answers   Tech Mahindra,


What is the result when the Web Form containing the following line is complied and executed? <asp:Button id=?thebutton? onClick=?theEvent? /> a) The button control is created; theEvent is the click event handler. b) Compiler error; the control must be set to runat=?server?. c) Compiler error; onClick is not a valid attribute. d) Runtime Exception; the control must be set to runat=?server?.

3 Answers   Syntax Softtech,


How many types of validators are there in asp net?

0 Answers  


What do you mean by View State and what is its role?

0 Answers   Wipro,


How do you declare static variable? What is its lifetime?

0 Answers  






Can we override the enablepartialrendering property of the scriptmanager class?

0 Answers  


How many types of session in ASP.NET

0 Answers   MCN Solutions,


Write code to send e-mail from an asp.net application?

0 Answers  


What is an iHTTPModule, and explain its implementation with its limitations?

1 Answers   Siebel,


How would you turn off cookies on one page of your website?

0 Answers  


What is the difference between abstract class vs interface? Can give me the real time examples?

0 Answers  


what is roles in asp.net

2 Answers  






Categories