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
What is session start?
Define satellite assemblies.
Describe the Server Control Events of ASP.NET?
What is the state management in asp.net?
How do you hide the columns?
Is sql backend or frontend?
What are sql notifications and sql invalidations?
What is server redirect?
How would ASP and ASP.NET applications run at the same time on the same server?
How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?
Is viewstate secure?
Explain what is event bubbling?
What are custom user controls in asp.net?
What is ispostback method in asp.net? Why do we use that?
Is react a template engine?