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

Answer Posted / d

Put it inside <configuration> section

<connectionStrings>
<add key="conString" value="server=01HW154261\SQLEXPRESS;
database=MyDB; user id=; password=;" />
</connectionStrings>

SqlConnection con = new SqlConnection();

con.ConnectionString = ConfigurationManager.AppSettings
["conString"].ToString();

con.Open();

SqlDataAdapter adapter = new SqlDataAdapter("Select a.State
From State as a inner join Country as b on a.CountryID =
b.CountryID where b.CountryID = " + countryID, con);

DataSet dstCountry = new DataSet();

adapter.Fill(dstCountry);

con.Close();

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you will improve web application performance?

544


Explain the difference between asp and asp.net?

500


What are validator? Name the validation controls in asp.net? How do you disable them?

538


Explain the main differences between asp and asp.net?

508


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

575






What does the orientation property do in a menu control?

527


What is the significance of ASP.NET routing?

628


Explain significance of routing? : asp.net mvc

544


What is a web based system?

456


What is the good practice to implement validations in aspx page?

623


How can we identify that the Page is Post Back?

552


What are the disadvantages of using session?

460


Is asp.net and .net the same?

506


What methods are fired during the page load? Init()

512


What is asp short for?

549