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 are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?

0 Answers  


1. What is Connection Pooling…? 2. Maintaining Sessions in ASP.NET 3. ASP.NET page lifecycle. 4. Can we store objects in sessions. 5. What is AJAX..? 6. Serialization/Deserialization. Why we use serialization and Deserialization…? 7. What are Arrays and Arraylist..? 8. Difference between Authentication and Authorization…? 9. Difference between abstract class and Interfaces 10. What is a view..? Does a view contain data..? 11. What are triggers..? 12. What are transactions..? 13. What is Metaview (oracle)..? 14. What is Inheritance..? How can we call a method from the base class..? 15. Can an abstract class have zero abstract methods..? 16. How to read from Message Queue..? 17. What is Metadata..? 18. You would prefer to have business logic in c# or DB Side..? Why…?

1 Answers   Franklin Templeton, Sky InfoTech,


Describe Segmentation With Paging?

0 Answers   MaxSolPro,


What New Features comes with ASP.NET Web API 2.0?

0 Answers  


Exception handling

2 Answers   Syntel,






What are the Types of authentications in IIS

0 Answers   Microsoft,


Can we use MSSql as backend in asp.net...if yes then How.?

0 Answers   MCN Solutions,


Describe SOA and the tenets of it?

0 Answers   Siebel,


What is the use of ASP.NET routing?

0 Answers  


Can we use multiple web.config files in an sigle appliction?

3 Answers   IBS,


Can two different programming languages be mixed in a single ASMX file?

1 Answers   IBM, Patni, Wipro,


Explain the asp.net mvc folder conventions? : asp.net mvc

0 Answers  


Categories