ASP.Net is a program application with server controls with programmable objects, which can do the same job HTML did in the past. ASP.Net is used to build a Website and VB.Net is a computer language you use to build the site. Some use VB.Net and others use C# (C Sharp language) to build a website. Using ASP. Net and VB.Net or C# you can build an E-commerce store, which has multi functional capabilities. You can integrate PayPal or one of the other payment programs into your site. Create an Email system, speed up the applications by caching the pages and the data within the pages of your site and do a number of other things to successfully run an E- commerce store on the Internet.
ASP.Net is very successful Web application platform used by individuals and many large companies, who want to build and run their own websites. ASP.Net provides server controls with the ability to give you rich web content and more. Anyone willing to purchase the software and learn how to properly use this technology can use the tools, and application system to build a great Website. You can develop and build your own database choosing to use VB.net or C# language. Many websites today, which were built in the past used HTML language to build their websites. |
An application domain is the CLR equivalent of an operation system’s
process. An application domain is used to isolate applications from one
another. This is the same way an operating system process works. The
separation is required so that applications do not affect one another.
This separation is achieved by making sure than any given unique
virtual address space runs exactly one application and scopes the
resources for the process or application domain using that address space. |
1. Weak named assemblies can be duplicated and tampered with, where as strong named assemblies cannot be tampered and duplicated.
2. Strong named assemblies can be copied into GAC(GLOBAL ASSEMBLY CACHE), where as weak named assemblies cannot be copied.
3. A single copy of strong named assembly present in the GAC(GLOBAL ASSEMBLY CACHE) can be shared with multiple applications, where as weak named assembly must be copied into the bin directory of each project.
Thanks and Regards
Akiii |
There are two types of assemblies are there in .net. They are,
1. Private Assemblies and
2. Public/Shared Assemblies.
Private Assembly:- An assembly is used only for a particular application. It is stored in the application's directory other wise in the application's sub directory. There is no version constraint in private assembly.
Public Assembly:- It has version constraint. This public assembly is stored inside the global assembly cache or GAC.GAC contains a collection of shared assemblies. |
There is a text file named "MsgSrikanth.txt" which has contents. Now we can convert that entire text file into a single string variable called showResult.
That conversion is shown below :
In VB.NET
Dim showResult As String = NothingDim reader as New
StreamReader("MsgSrikanth.txt")showResult = reader.ReadToEnd()
In C#.NET
string showResult = NothingDim;
StreamReader reader = new StreamReader("MsgSrikanth.txt");
showResult = reader.ReadToEnd();
ReadToEnd() method used to read content from the current position to the end of the file. |
NOTE: This is objective type question, Please click question title for correct answer. |
RDL:
1.Report Definition Language
2.Created by Sql server with reporting services
3.Runs on server side
4.Requires values for all elements such as query text
5.Takes less time to produce large data in reports
RDLC:
1.Report Definition Language, Client Side
2.Created by Visual studio
3.Runs on client side
4.Does not require to have values for all elements such as query text
5.Takes more time to produce large data in reports
6.As runs in local license of the reporting services not needed |
|
NOTE: This is objective type question, Please click question title for correct answer. |
NOTE: This is objective type question, Please click question title for correct answer. |
Yes.
We can write Try { } Finally { } block. In this case exception will be thrown in try block if it is but code inside finally block will execute.
Here any exception in CallFirstMethod() or CallSecondMethod() will be handled by MainMethod() and finally block will execute always to perform any cleanups for respective methods.
public void MainMethod()
{
try
{
CallFirstMethod();
CallSecondMethod();
}
Catch(Exception ex)
{
//handle exception
}
}
publiv void CallFirstMethod()
{
try
{
//code
}
finally
{
//cleanups
}
}
publiv void CallSecondMethod()
{
try
{
//code
}
finally
{
//cleanups
}
} |
Answer : No
If finally block is being run as a effect of exception thrown from try block it doesn't make sense of returning any thing or leaving the finally block.
If any exception occurs in finally block it will replace original exception in try block. |
Basically there are three different ways to deploy an assembly the are
1. Using a MSI Installer
2. Using a CAB archive
3. Using a XCOPY Command |
Custom controls are control build entirely in code. The pro is that you can put them in libraries, add an icon to the toolbox and other fine control.
User controls are more easy to do, and in general is a way to encapsulate things to simplify other pages or when you need to use the same markup in several pages. |
It's simple.
for C#
object[] arr = Array.ConvertAll<DataRow, object>(dataTable.Select(<criteria if any or leave blank>), (DataRow r) => r[<column-name>]);
for VB
dim arr as Object() = Array.ConvertAll(Of DataRow, Object)(dataTable.Select(<criteria if any or leave blank>), Function(r as DataRow) r(<column-name>)); |
There are two main differences between an array and a stack. Firstly, an array can be multi-dimensional, while a stack is strictly one-dimensional. Secondly, an array allows direct access to any of its elements, whereas with a stack, only the 'top' element is directly accessible; to access other elements of a stack, you must go through them in order, until you get to the one you want |