Home
|
Tutorial
|
Articles
|
Forum
|
Interview Question
|
Code Snippets
|
News
|
Fun Zone
|
Poll
|
Web Links
|
Certification
|
Search
Welcome :
Guest
Sign In
Register
Win Surprise Gifts!!!
Congratulations!!!
Top 5 Contributors of the Month
Jean Paul
satyapriyanayak
Narayanan
Karthikeyan Anbarasan
JQuery Developer
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Post New Question
Subscribe to Interview Questions
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
.NET Framework Interview Questions and Answers
Whatââ¬â¢s the difference between private and shared assembly?
Author:
Narayanan
Posted Date: July 26, 2012 Category:
.NET Framework
Points: 40
Private assembly is used inside an application only and does not have to be identified by a strong name. Shared assembly can be used by multiple applications and has to have a strong name.
Whatââ¬â¢s a strong name?
Author:
Narayanan
Posted Date: July 26, 2012 Category:
.NET Framework
Points: 40
A strong name includes the name of the assembly, version number, culture identity, and a public key token.
What is delay signing?
Author:
Narayanan
Posted Date: July 26, 2012 Category:
.NET Framework
Points: 40
Delay signing allows you to place a shared assembly in the GAC by signing the assembly with just the public key. This allows the assembly to be signed with the private key at a later stage, when the development process is complete and the component or assembly is ready to be deployed. This process enables developers to work with shared assemblies as if they were strongly named, and it secures the private key of the signature from being accessed at different stages of development.
How can you create a strong name for a .NET assembly?
Author:
Narayanan
Posted Date: July 26, 2012 Category:
.NET Framework
Points: 40
Help of Strong Name tool (sn.exe).
what is mean by .NET Framework Class Library?
Author:
Narayanan
Posted Date: July 26, 2012 Category:
.NET Framework
Points: 40
contains thousands of classes organized logically through a namespaces. You can add these classes in your web or Windows application where needed to reduce developing time
Difference between Debug class and Trace class?
Author:
Sreeraj Nair Mungath
Posted Date: July 17, 2012 Category:
.NET Framework
Points: 40
It looks same. We can use Debug class for debug builds snd Trace class for both debug and release builds.
how to add background to excel using C#
Author:
Sreeraj Nair Mungath
Posted Date: July 16, 2012 Category:
.NET Framework
Points: 40
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Excel = Microsoft.Office.Interop.Excel;
namespace excel2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click_1(object sender, EventArgs e)
{
Excel.Application xlApp;
Excel.Workbook xlWorkBook;
Excel.Worksheet xlWorkSheet;
object misValue = System.Reflection.Missing.Value;
xlApp = new Excel.Application();
xlWorkBook = xlApp.Workbooks.Add(misValue);
xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);
xlWorkSheet.SetBackgroundPicture(@"C:\Users\snair02\Desktop\SRJ DOCS\a.jpg");
//add some text
xlWorkSheet.Cells[1, 1] = "http://csharp.net-informations.com";
xlWorkSheet.Cells[2, 1] = "Adding background in Excel File";
xlWorkBook.SaveAs("csharp.net-informations.xls", Excel.XlFileFormat.xlWorkbookNormal, misValue, misValue, misValue, misValue, Excel.XlSaveAsAccessMode.xlExclusive, misValue, misValue, misValue, misValue, misValue);
xlWorkBook.Close(true, misValue, misValue);
xlApp.Quit();
releaseObject(xlApp);
releaseObject(xlWorkBook);
releaseObject(xlWorkSheet);
MessageBox.Show("File created !");
}
private void releaseObject(object obj)
{
try
{
System.Runtime.InteropServices.Marshal.ReleaseComObject(obj);
obj = null;
}
catch (Exception ex)
{
obj = null;
MessageBox.Show("Unable to release the Object " + ex.ToString());
}
finally
{
GC.Collect();
}
}
}
}
What is smart Navigation property in ASP.NET?
Author:
Murali Krishna
Posted Date: April 12, 2012 Category:
.NET Framework
Points: 40
The is one of the coolest property that Microsoft had come up in ASP.Net 2.0 where by using this we can maintain the scroll position of page in post backs.
Does C# support a variable number of arguments?
Author:
Narayanan
Posted Date: April 04, 2012 Category:
.NET Framework
Points: 40
Yes, using the params keyword.
Whats the use of "throw" keyword in C#?
Author:
Narayanan
Posted Date: April 04, 2012 Category:
.NET Framework
Points: 40
The throw keyword is used to throw an exception programatically in C#.
« Previous
1
2
3
4
5
6
7
8
9
10
….
96
97
Next »
Hall of Fame
Twitter
Terms of Service
Privacy Policy
Contact Us
Archives
Tell A Friend