Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
How u can create XML file?
Posted By :
Posted Date :
July 13, 2009
To write Dataset Contents out to disk as an XML file use:
You can also find related Interview Question to
How u can create XML file?
To create a excel file using COM. Whether we need to change any dcom configuration?
Yes we need to give the proper rights to the ASPNET user
How to create an instance of a user control programmatically in the code behind file of a Web Forms page
Create a new Web Forms page in Visual Studio.
Navigate to the code behind file generated for this Web Forms page.
In the Page_Load event of the Page class, write the following code.
// Load the control by calling LoadControl on the page class.
Control c1 = LoadControl("test.ascx");
// Add the loaded control in the page controls collection.
What is Private Constructor? and it's use? Can you create instance of a class which has Private Constructor?
When a class declares only private instance constructors, it is not possible for classes outside the program to derive from the class or to directly create instances of it. (Except Nested classes)
Make a constructor private if:
1) You want it to be available only to the class itself. For example, you might have a special constructor used only in the implementation of your class' Clone method.
2) You do not want instances of your component to be created. For example, you may have a class containing nothing but Shared utility functions, and no instance data. Creating instances of the class would waste memory.
Which index option causes SQL Server to create an index with empty space on
the leaf level of the index?
What are the requirements to create a CLR based user-defined type?
CLR must be enabled for the instance and A class created with a CLR-compatible language.
What do you need to specify to create a linked server?
OLE DB Data Source
what is used to execute a .net file from the command prompt ?
csc is C# compiler abbreviation is C Sharp Compiler
To create a string literal exclude escape sequence
@string. With adding @ at the beginning you can escape literal
Which command executes the contents of a specified file?
What command is used to create a table by copying the structure of another table?
CREATE TABLE .. AS SELECT command
To copy only the structure, the WHERE clause of the SELECT command should contain a FALSE statement as in the following.
CREATE TABLE NEWTABLE AS SELECT * FROM EXISTINGTABLE WHERE 1=2;
If the WHERE condition is true, then all the rows or rows satisfying the condition will be copied to the new table.
Disadvantage in File Processing System?
1.Data redundancy & inconsistency.
2.Difficult in accessing data.
5.Concurrent access is not possible.
Can I create your own custom templates in Sharepont?
Yes you can. You can have templates for business plans, doctor's office, lawyer's office, Educational, health etc and if you want to share with anyone else in SharePint community you can upload your own SharePoint templates to Microsoft website.
what is the use of using web.config file
By using this web.config file we can store sqlconnection string.This SqlConnection String can be accessed any where in your application.for security purpose of connection string also we can use web.config.
Can we have more than one web.config file in our application?
Yes,we can create or use more than one web.config file in our application.
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