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
How you will improve web application performance?
Explain the difference between asp and asp.net?
What are validator? Name the validation controls in asp.net? How do you disable them?
Explain the main differences between asp and asp.net?
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
What does the orientation property do in a menu control?
What is the significance of ASP.NET routing?
Explain significance of routing? : asp.net mvc
What is a web based system?
What is the good practice to implement validations in aspx page?
How can we identify that the Page is Post Back?
What are the disadvantages of using session?
Is asp.net and .net the same?
What methods are fired during the page load? Init()
What is asp short for?