What is Difference Between Server.Response and
Response.Redirect in ASP.Net with C#?
The data transfering between two page will be more differ on server.Transfer() and Response.Redirect().
Server.Transfer
Server.Transfer() helps the one less round trip. The main advantage of this transfer the first page to second page with better performance. The data can pass through variables, query string and also can retrive from the previous page control value.
Eg: Server.Transfer("Default.aspx");
Response.Redirect()
It is very similar to server.Transfer. The main difference is the posted pervious page values can't be accessable. Here also the data can pass through server variables and query string. It simply redirect the page from one page to another.
Eg: Response.Redirect("Default.aspx")
Note: But the pervious page values can't be accessable by Response.Redirect().
By the Following code setup attachement, This concept will be more understandable. Make use of it.
for code:
http://www.dotnetfunda.com/articles/article164.aspx
| Is This Answer Correct ? | 3 Yes | 0 No |
how to track links visited in google using iframes in dotnet
Hi Everyone, I used VB.net until last year, this year I change my language to C#.net.But the easy one in VB.net such as "Set as Start page when running program", right click on solution explorer and do it. But in C#.net I can't find the way to do (Set as start page)until now. If anyone know it , please share your technical help. Thanks . (Horace Trever)
what is wrong with this insert into code? vb 2008 say that there is a syntax error but i believe there is nothing.. cmd.CommandText = " INSERT INTO account1(username, password, lname, fname, mi) VALUES('" & Me.TextBox4.Text & "','" & Me.TextBox5.Text & "','" & Me.TextBox1.Text & "','" & Me.TextBox2.Text & "','" & Me.TextBox3.Text & "')" cmd.ExecuteNonQuery()
Program ended with error or warning, return code: 4
How to use singal crystal report viewer to multiple reports?
Hi everyone, I got some problem this week. I don't know the coding for "Linklabel" in C#.net. In ASP.net, I use it "Response.Redirect" and "Server.Transfer" and I also can use hyperlink. When offline I use "linklabel", Now I still write by "System.Dianogstic", It still showing error and can't reach my dedicated page(Means design page). So if anyone know it, please share your technical help. Thanks (Horace Trever)
how we change the .net 1.0 to .net 2.0?is that can we only paste the dll file?
sir, i have passed on S.B.I for clerk asstt. and i want to know that how many candidates were appointed from s.c cota?
1 Answers State Bank Of India SBI,
In .net how many error will occur?
What is Difference Between Server.Response and Response.Redirect in ASP.Net with C#?
a cowboy rides to town on friday he stays there for three days and lives on friday.how was that possible
What is Managerial Grid? Contract its approach to leadership with the approaches of the Ohio state and Michigan groups.