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
Define static constructor?
What is the postback property in asp.net?
Where can I get information on cookies in asp.net?
Whats the difference between abstract factory pattern and factory pattern?
How dataadapter.fill works?
Give an example of cookie abuse.
What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?
What is globalization and localization in asp net?
What is data caching?
How many types of controls are there in asp.net?
How to use ipostback?
What is fulltrust?
How long do session variables last?
Explain how is a property designated as read-only?
What are custom user controls in asp.net?