Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
Posted By :
Posted Date :
October 18, 2013
The Query String helps in sending the page information to the server.
You can also find related Interview Question to
Query String Advantages
1.Every browser works with Query Strings.
2.It does not require server resources and so does not exert any kind of burden on the server.
Query String Limitations
1.Information must be within the limit because URL does not support many characters.
2.Information is clearly visible to the user, which leads to security threats.
C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?
The answer is TWO of the above questions
To create a string literal exclude escape sequence
@string. With adding @ at the beginning you can escape literal
String is an...........
String is an Object Type. where other data types are reference type in .NET
What is Query evaluation engine?
It executes low-level instruction generated by compiler.
Where do you store connection string?
Database connection string can be stored in the web config file.
The connection string can be stored in the WEB.Config file under
What does connection string consist of?
The connection string consists of the following parts:
Server: Whether local or remote.
Uid: User Id (sa-in sql server)
Password: The required password to be filled-in here
Database: The database name.
Difference between String.Empty and ""
The main difference is lies on memory management.
String.Empty will not create any object of string where as "" (Double Quote or Empty Quote) will create a new object in the memory for the checking the objects.
How do I convert a numeric type to a string?
Call Sytem.Object.ToString(). For example, if the variable count is an integer, write the following:
string text = count.ToString();
How you will write a Connection String in web.Config fiel?
Ans) Then write below lines of code:
add name="sqlconnectionstring" connectionString="Data Source=INTHIYAAZ;Initial Catalog=DB;User ID=sa;Password=sa" />
What is Query binding ?
The binding of an object to a query
What's the advantage of using System.Text.StringBuilder over System.String?
StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it's being operated on, a new instance is created.
To perform asynchronous data access, what must be added to the connection string?
Select Correct Answer.
Quick Links For Interview Questions Categories:
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Terms of Service
Tell A Friend