.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

Namespaces are required to enable the use of databases in ASP.NET pages?

Posted By :Jack Hard     Posted Date :November 04, 2012    Points :40   Category :ASP.Net 
The following namespaces are required to enable the use of databases in ASP.NET pages:

1:The System.Data namespace.

2:The System.Data.OleDb namespace (to use any data provider, such as Access, Oracle, or SQL)

3:The System.Data.SQLClient namespace (specifically to use SQL as the data provider)

You can also find related Interview Question to Namespaces are required to enable the use of databases in ASP.NET pages?  below: 

Do I have to use one programming language for all my Web pages in .NET?

No. Each page can be written in a different programming language if you want, even in the same application. If you are creating source code files and putting them in the \App_Code folder to be compiled at run time, all the code in must be in the same language. However, you can create subfolders in the \App_Code folder and use the subfolders to store components written in different programming languages. (More...)

Can I add more than one .xaml pages in silverlight application?

Yes, you can have multiple .xaml files in a single project.

In the App.xaml, in the method Application_Startup you can choose, which page you want to

initially display. (More...)

Let us say the SQL Server crashed and you are rebuilding the databases including the master database what procedure to you follow?

For restoring the master db we have to stop the SQL Server first and then from command line we can type SQLSERVER -m which will basically bring it into the maintenance mode after which we can restore the master db. (More...)

Is Multiple Pages possible In Single asp.net Page?

We can achieve this in simple way by using FrameSet .... (More...)

Where is the actual physical storage of all database information and what s required for establishing a connection with Database?

Control files,data files and redo log files are the files which help in the physical storage for Database information.

Oracle Server is a database management system that provides open,integrated approach for information management.It consists of oracle database and a oracle instance.To connect to a database first of all we need to make a user connection and create a session. (More...)

For designing binary counter which type of flip-flop is required?

We require D-Type flip-flops to design binary counter. (More...)

How to get values across multiple pages using ViewState?

Ans. In page1.aspx

button_1click envent
ViewState["name"] = txtTest.Text;



In page2.aspx

In page_load

Page obj= this.PreviousPage;

TextBox txtNewTest = (TextBox)obj.FindControl("txtTest");

string sDisplay = txtNewTest.Text.ToString();




Name the two classes are required for implementing a Windows Service?

The following two classes are required for implementing a Windows Service:

· System.ServiceProcess.ServiceBase

· System.Configuration.Install.Installer (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

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 Interview Question 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    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend