|
Why Can not I run my .Net Application without .Net Framework?
|
|
All the .Net libraries you call within your code are not compiled into your assembly, and you need these assemblies in the destination machine, in order for it to run you need .Net Framework installed.\r\n
A program compiled in C# or VB is not a program in native code, it is a Pre-compilation in a Intermediate Language (MSIL). When you run this program the .Net Runtime, makes the final compilation to native code for the platform on which it is executed - this is called Just-In-Time compilation.
|
|
|
|
|
|
|
|
What is difference between ExecuteReader, ExecuteNonQuery and ExecuteScalar?
|
- ExecuteReader : Use for accessing data. It provides a forward-only, read-only, connected recordset.
- ExecuteNonQuery : Use for data manipulation, such as Insert, Update, Delete.
- ExecuteScalar : Use for retriving 1 row 1 col. value., i.e. Single value. eg: for retriving aggregate function. It is faster than other ways of retriving a single value from DB.
|
|
|
|
|
|
|
|
What is the default maximum size of the file that can be uplaoded by the ASP.Net application.
|
|
4096 KB (4MB)
|
|
|
|
|
|
|
|
Can I lock a configuration setting so that a Web.config file that appears lower in the hierarchy cannot override it?
|
|
Yes. By setting the location element Override attribute to false, you can lock a specific setting so that it does not inherit settings from below.
|
|
|
|
|
|
|
|
How are ASP.Net configuration files secured against unauthorized access?
|
|
ASP.Net configures IIS to deny access to any user that requests access to the Machine.config or Web.config files.
|
|
|
|
|
|
|
|