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 a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
What is the difference between table and query?
How could you modify xaml content from javascript?
Explain About WebService
How to display validation messages in one control?
What do you understand from custom control?
What are html helpers in asp.net?
What is rich control in asp.net?
What happens if an ASP.NET server control with event-handling routines is missing from its definition?
What does session_start () do?
Explain the difference between sql invalidation and sql notification.
Define satellite assemblies.
In the Repeater control which way you can edit?
What is a postback ispostback and autopostback in asp net?
What is server redirect?