Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between Server.Transfer and
Response.Redirect? Why would you choose one over the other?

Answers were Sorted based on User's Feedback



What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over..

Answer / avinash

server.transfer() is used to request a page it directly
requests the page whereas response.redirect() is used it
first say browser to call the page.
Exampme:

if((name.text=="avinash")&&(password=="niit"))
{
response.redirect("mypage.aspx");
}
else
{
server.transfer("error.aspx");
}

Is This Answer Correct ?    0 Yes 0 No

What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over..

Answer / x

<script type="text/javascript" language="javascript">
function HideChild(){
parent.emailwindow.hide();
parent.location.replace("DisplayRec.aspx");
window.open("http://wwww.google.com");
}
</script>

Is This Answer Correct ?    1 Yes 2 No

What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over..

Answer / x

select Distinct [Subject ID], [Date of Birth],[Gender],
[Race] from
(
select vm1.spid as [Subject ID],
(case when objd1.objectdesignationtypeid = 4 then
vmd1.fieldvalue end) as [Date of Birth],
(case when objd1.objectdesignationtypeid = 8 then
vmd1.fieldvalue end) as [Gender],
(case when objd1.objectdesignationtypeid = 9 then
vmd1.fieldvalue end) as [Race]
from Recon.dbo.AAA999809_Visitmodule
vm1,Recon.dbo.AAA999809_Visitmoduledetail vmd1,
Recon.dbo.recon_objectdesignation objd1
where vm1.vuid = vmd1.vuid and
vmd1.objectid = objd1.objectid
and vmd1.objectid is not null and objd1.objectid is not null

Is This Answer Correct ?    0 Yes 1 No

What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over..

Answer / p

http://support4.scriptlogic.com/kb/article.aspx?
id=13711&cNode=3I2R8J

Is This Answer Correct ?    1 Yes 3 No

What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over..

Answer / a

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Runtime.InteropServices.ComTypes;
using System.Data.OleDb;
using System.IO;

public partial class ReadExcel : System.Web.UI.Page {
protected void Page_Load(object sender, EventArgs e) {
string strFilePath = @"D:\Development\Test.xlsx";
string strBatchPath = @"D:\Development\test.txt";
try {
string strConnectionString = string.Empty;
//strConnectionString =
@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
strFilePath + @";Extended Properties=""Excel
8.0;HDR=YES;IMEX=1""";
strConnectionString =
@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +
strFilePath + @";Extended Properties=""Excel 12.0
Xml;HDR=YES;IMEX=1""";
OleDbConnection cnCSV = new OleDbConnection
(strConnectionString);
cnCSV.Open();
OleDbCommand cmdSelect = new OleDbCommand
(@"SELECT * FROM [Sheet1$]", cnCSV);
OleDbDataAdapter daCSV = new OleDbDataAdapter();
daCSV.SelectCommand = cmdSelect;
DataTable dtCSV = new DataTable();
daCSV.Fill(dtCSV);
cnCSV.Close();
daCSV = null;

StreamWriter sr = File.AppendText(strBatchPath);
string cmd = string.Empty;
for (int i = 0; i < dtCSV.Rows.Count; i++) {
cmd = "xcopy /Y \"" + dtCSV.Rows[i][0]
+ "\" " + "\"D:/\"";
WriteText(cmd, sr);
}
sr.Close();
} catch (Exception ex) {
} finally {
}
}

public void WriteText(string message, TextWriter tr) {
tr.WriteLine(message);
tr.Flush();
}
}

Is This Answer Correct ?    0 Yes 2 No

What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over..

Answer / c

Please Ignore:

function opennewsletter(){
var name = 'Bala';
emailwindow=dhtmlmodal.open
('EmailBox', 'iframe', 'newsletter.aspx?name=' +
name, 'Newsletter Signup
page', 'width=350px,height=200px,center=1,resize=0,scrolling
=1')
}

Put this in the modal page:

if (Request.QueryString["name"] != null &&
Request.QueryString["name"].ToString() != string.Empty)
{
name = Request.QueryString["name"].ToString
();
}

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

how can you handle "control is not part of this page " error?

3 Answers   FactorH,


How can we create Tree control in asp.net?

0 Answers  


How to unit test Web API?

0 Answers  


To match the two different controls which control would we use ?

2 Answers   Siebel,


Why we use asp.net for website development?

0 Answers  


What line in the following XML document will generate an error? <?xml version=?1.0?> <employees> <employee> <name>Bob Andcarrol</name> </employee> <employee> <name>Robert Burns</name> </employee> </employees> a) 6 b) 4 c) 1 d) There is no error

3 Answers   Syntax Softtech,


What is the maximum timeout we can set for Cookies?

0 Answers  


what is dumpbin.exe?

1 Answers  


what is the cursor

1 Answers   Wipro,


Explain which is best suited place in the Application Start and Session_Start subroutines with an example?

3 Answers   Siebel,


Tell About Global.asax ?

3 Answers   Keane India Ltd,


What are ASP.NET Web Forms? How is this technology different than what is available though ASP?

1 Answers   BirlaSoft,


Categories