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 I use response redirect?
Why do we need url encoding?
how to elimainte the similar data from the different tables
Is asp.net a language?
Give an example of cookie abuse.
What is http session state?
What is the difference between Session and response.Redirect?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
What is globalization and localization in asp net?
What are the server control tags in asp.net.?
what is loosely coupled solution? How it can be used?
What is ispostback property?
In which event of the page viewstate is available?
Write a code for passing ArrayList in Web API?
What is a gridview in asp.net?