June 4, 2019

Srikaanth

VeriSign ASP.NET Interview Questions Answers

VeriSign Most Frequently Asked Latest ASP.NET Interview Questions Answers

What Are The New Web Part Controls In Asp.net 2.0 ?

Web parts are an exciting new family of controls that enable you to add rich, personalized content and layout to your site, as well as the ability to edit that content and layout directly from your application pages. These controls rely on the personalization services in ASP.NET 2.0 to provide a unique experience for each user in your application.

I Have Created A .net User Control Page (.ascx) But I Cannot Compile And Run It.

User control (ascx) can't be run on it own, but you can drag it onto any web page (aspx) and then run it.

What Is A .resx File?

The .resx resource file format consists of XML entries, which specify objects and strings inside XML tags. This is useful for localization.

Is It Possible To Use A Style Sheet Class Directly On A Control Instead Of Using Inline Or Page-level Formatting ?

Every WebControl derived control has a CssClass property which allows you to set it's format to a style sheet.

Can I Recieve Both Html Markup For Page And Code In The Asp.net Web Page's Source Code Portion In The Web Browser?

No.

The Web browser recieves only HTML markup,No source code or web control syntax is passed back to the web browser.

Why Can't I Put <%@ Page Language="c " %> Where At The Top Of An Aspx File And Write My Server-side Scripts In C ?

The parsers ASP.NET uses to extract code from ASPX files understand C#, Visual Basic.NET, and JScript.NET. You can write server-side scripts in any language supported by a .NET compiler.
VeriSign Most Frequently Asked Latest ASP.NET Interview Questions Answers
VeriSign Most Frequently Asked Latest ASP.NET Interview Questions Answers

Asp Pages That Worked Pefectly On Windows 2000 Server And Iis 5.0 Do Not Work On Windows 2003 Server With Iis 6.0. Asp.net Pages Work Fine. Why?

Start -> Settings -> Control Panel -> Administrative Tools -> and double clicking IIS Manager.
Go to the Web Service Extensions tab, click Active Server Pages, then press the "Allow" button on the left.

Why Do I Get Error Message "error Creating Assembly Manifest: Error Reading Key File 'key.snk' -- The System Cannot Find The File Specified"?

Check the location of the key.snk file relative to the assembly file. Provide an explicit path or a relative path.
<Assembly: AssemblyKeyFileAttribute("Drive:\key.snk")>

How To Get Url Without Querystring?

VB.NET
Dim stringUri As String = "http://www.syncfusion.com/?id=1&auid=16" Dim weburi As Uri = New Uri(stringUri)
Dim query As String = weburi.Query
Dim weburl As String = stringUri.Substring(0, stringUri.Length - query.Length)
Response.Write(weburl)

C#
string stringUri = "http://www.syncfusion.com/?id=1&auid=16"; Uri weburi = new Uri(stringUri);
string query = weburi.Query;
string weburl = stringUri.Substring(0, stringUri.Length - query.Length);
Response.Write (weburl);

Why Can't You Specify The Accessibility Modifier For Methods Inside The Interface?

They all must be public. Therefore, to prevent you from getting the false impression that you have any freedom of choice, you are not allowed to specify any accessibility, its public by default.

What Is The Executescalar Method?

 Summary

Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.

Which One Of The Following Objects Is A High-level Abstraction Of The Connection And Command Objects In Ado.net?

DataReader DataSet DataTable DataView DataAdapter

: DataAdapter

How Can We Load Multiple Tables In To Dataset?

DataSet ds=new DataSet();
SqlDataAdapter dap=new
SqlDataAdapter(Select * from <tablename>,<connection1>);
dap.Fill(ds,"TableOne");
SqlDataAdapter dap1=new
SqlDataAdapter(Select * from <tablename>,<connection1>);
dap1.Fill(ds,"tableTwo");

What Is Connection String?

connection String - a string which contains address of the database we want to connect to.

What Is Delegate?

Delegate is an important element of C# and is extensively used in every type of .NET application. A delegate is a class whose object (delegate object) can store a set of references to methods.

How Do You Update A Dataset In Ado.net And How Do You Update Database Through Dataset?

Update a dataset

Dataset ds = new dataset();
SqlDataAdapter adp = new SqlDataAdapter(Query,connection);
Adp.fill(ds);
Again you can add/update Dataset as below
SqlDataAdapter adp1 = new SqlDataAdapter(Query1,connection);
Adp1.fill(ds);
Update database through dataset.

SqlCommandBuilder mySqlCommandBuilder = new
SqlCommandBuilder(mySqlDataAdapter);
Foreach(datarow dr in ds.table[0].rows)
{
Dr[“column Name”] = “value”;
mySqlDataAdapter.Update(ds);
}

What Are The Steps To Connect To A Database?

Create a connection. This requires a connection string, which can be given declaratively or put in a well defined place like the .config files. Advantage of keeping in .config files is that it enables use of Connection Pooling by .Net framework, else even one small change in connection string will cause CLR to think it's not the same connection and will instantiate new connection for other request.
Open the connection and keep it open until done, typically done as using (con) { //use }
If using connected data model, create a SqlCommand object, decorate it with desired command, command type (stored procedure for eg), add any parameters and their values to the command, and then consume the command by using ExcuteReader or ExecuteScalar. In case of ExecuteReader, we will get back a handle to a fast-forward, read only pointer to the recordset. We can also decorate Command object with multiple recordsets in 2.0 and execute one by one (MARS - Multiple Active Record Sets)
If using disconnected data model, create a DataAdapter object, decorate it with desired SELECT, INSERT, UPDATE, DELETE commands, add parameters as necessary and then fill up a DataSet or DataTable using the DataAdapter. Subsequent SQL can be executed using insert, update, delete commands on the dataset.

How Do You Connect To Sql Server Database Without Using Sqlclient?

you can connect sql using oledbname space.

What Is Partial Class?

A Partial class is a class that can be split into two or more classes. This means that a class can be physically separated into other parts of the class within the same namespace. All the parts must use the partial keyword. All the other classes should also have the same access modifier. At the compile time, all the partial classes will be treated as a single class. Let us list some advantages of having partial classes.

What Are The Advantages And Disadvantages Of Using Datalist?

Adv: The DataList's display is defined via templates, DataList allows for much more customization of the rendered HTML markup, by which it is more user-friendly displays of data.

DisAdv

adding such functionality with the DataList takes more development time than with the DataGrid as,

The Edit/Update/Cancel buttons that can be created in a DataGrid via the EditCommandColumn column type, must be manually added to the DataList and,
The DataGrid BoundColumn column types automatically use a TextBox Web control for the editing interface, whereas with the DataList you must explicitly specify the editing interface for the item being edited via the EditItemTemplate,
we can't do the paging and sorting with datalist controls.

What Is The Difference Between Data Reader And Data Adapter?

DataReader is an forward only and read only cursor type if you are accessing data through DataReader it shows the data on the web form/ control but you can not perform the paging feature on that record (because it's forward only type). Reader is best fit to show the Data (where no need to work on data) DataAdapter is not only connect with the Databse(through Command object) it provide four types of command (InsertCommand, UpdateCommand, DeleteCommand, SelectCommand), It supports to the disconnected Architecture of .NET show we can populate the records to the DataSet, where as Dataadapter is best fit to work on data.

What Is The Difference Between Data Reader And Data Set?

DataSet is disconnected object type. It uses XML to store data.
It fetches all data from the data source at a time
Modifications can be updated to the actual database
It will reduce the application performance.

Does Sqlclient And Oledb Class Share The Same Functionality?

No,

each have its own functionality,

ex : for sql client , there is SqlConnection object and for oledb client , there is OleDBConnection

How To Find The Count Of Records In A Dataset?

DS.Tables["tabname"].Rows.Count;

we can get count of the records.

What Are Design Patterns? Define Basic Classification Of Patterns?

A design pattern in Software is used to solve similar problems that occur in different scenarios.

What Is The Difference Between Factory And Abstract Factory Patterns?

The difference between Factory and Abstract Factory Patterns lies in object instantiation. In Abstract factory pattern Composition.

What Is Mvc Pattern?

Model View Controller is used to separate the interface from the business logic so as to give a better visual appearance.

How Can We Implement Singleton Pattern In .net?

Singleton pattern restricts only one instance running for an object.

How Do You Implement Prototype Pattern In .net?

Prototype pattern is used to create copies of original instances known as clones. It is used when creating instances of a class is very complex.

What Is Aspect Oriented Programming? What Is Cross Cutting In Aop?

Aspect-Oriented Programming (AOP), also named Aspect-Oriented Software Development (AOSD), is an approach to software development that goes further in the direction of separation of concerns. Separation of concerns is one of the most important rules in software development. It states that the same concern should be solved in a single unit of code. This is also called modularization. In procedural programming, the unit of code is the procedure (or function, or method). In object-oriented programming, the unit of code is the class. Some concerns cannot be implemented successfully using a pure procedural or object-oriented programming.

An example is code security. If you want to secure objects and methods, you have to modify the code of each method. That's why security is said a crosscutting concern, because it crosscuts the unit of modularization of the programming paradigm, in this case the class. An aspect is a concern that cross-cuts many classes and/or methods. So AOP is a technique that allows to address issues that cross-cuts objects. AOP is frequently used to implement caching, tracing, security or failure injections.

What Is Windows Dna Architecture?

Windows Distributed internet Applications architecture provides a robust, efficient solution to enable Windows platform.

What Is Service Oriented Architecture?

Service oriented architecture is based on services. Service is a unit of some task performed by a service provider in order to satisfy the consumer.

What Is Three Tier Architecture?

Three tier architecture typically consists of a client, server and “agent” between them. The agent is responsible for gathering the results and returning a single response to the agent. Such architecture increases performance, reusability and scalability of the application.

Explain The Situations You Will Use A Web Service And Remoting In Projects?

Web services should be used if the application demands communication over a public network and require to work across multiple platforms. Remoting is faster comparatively and hence can be used in .Net components when performance is a high priority. Few applications can also make use of BOTH web services and Remoting to send and receive data not just across multiple platforms but also between .Net applications where performance and speed is a key priority.

https://mytecbooks.blogspot.com/2019/06/verisign-aspnet-interview-questions.html
Subscribe to get more Posts :