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 do you mean by serialize and marshalbyref?

0 Answers  


Whats the use of @ Register directives ?

4 Answers  


What is difference between view and partial view?

0 Answers  


Tell About Global.asax ?

3 Answers   Keane India Ltd,


How can you display all validation messages in one control?

0 Answers  






Trigger syntax in sql2000

1 Answers   Wipro,


List of words of preprocessor in .net?

0 Answers  


Is it true that a Web service must be written in .NET or not?

0 Answers   Siebel,


How to use push notification?

0 Answers   MCN Solutions,


what to magage the state manament in asp.net with respect to in_prock and out_prock

1 Answers   Aviva,


What is Assembly?

3 Answers   Inspira Technologies,


how to debug web services on consumer side?

0 Answers   HCL,


Categories