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

What can we do with asp.net?

0 Answers  


What is the use of placeholder control? Can we see it at runtime?

0 Answers  


What is custom attribute? How to create?

0 Answers  


How to create events for a control?

0 Answers  


What is the use of web.config and machine.config files?

0 Answers   Amdocs,






What is the difference between custom controls and user controls?

0 Answers  


What is microsoft windows sharepoint services?

0 Answers  


What is the difference between a.Equals(b) and a == b?

4 Answers  


What tags do you need to add within the asp:datagrid tags to bind columns manually?

5 Answers   Siebel Systems,


What is AutoEventWireup attribute for ?

0 Answers  


What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

0 Answers  


What is ViewState ? and how it is managed ?

1 Answers  


Categories