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 do you initiate validation on the server manually? What are two situations when you might you want to do that?
What is asp.net and its advantages?
Explain the working of passport authentication.
What is the difference between login controls and forms authentication?
What is work flow gen? how can it will work with .Net?
How do I create a web form?
What is the usage of DelegatingHandler?
How you can return View from ASP.NET Web API method?
What is a url string?
What is the difference between mvc and asp.net? : Asp.Net MVC
What is the difference between Session and response.Redirect?
How could you modify xaml content from javascript?
Can you change a master page dynamically at runtime? How?
What is autopostback in asp net?
Explain the different types of assemblies?