Top Dot Net Code Interview Questions :: ALLInterview.com http://www.allinterview.com Top Dot Net Code Interview Questions en-us How to send e-mail from an ASP.NET application? http://www.allinterview.com/showanswers/23045.html MailMessage message = new MailMessage (); message.From = <email>; message.To = <email>; message.Subject = "Scheduled Power Outage"; message.Body = "Our servers will be down tonight." How we work on N tire architecture in asp.net Please give me Examle.. http://www.allinterview.com/showanswers/64867.html What is n-Tier Architecture? This is a very important topic to consider when developing an application. Many elements need to be considered when deciding on the architecture of the application, such as performance, scalability and future developm How to add checkbox to datagrid? http://www.allinterview.com/showanswers/17151.html Dim str as string =" " dim item as datagriditem dim chk as checkbox for each item in datagrid1.items chk=CType(item.findcontrol("ch"),checkbox) if chk.checked=true then str=str & "," & item.cells(1).text e How to Create a Treeview Menu in ASP.NET with C#? http://www.allinterview.com/showanswers/18011.html Microsoft.Web.UI.WebControls.TreeView Treeview11 public void PopulateTree() { TreeNode nodeProdDetail, nodeProdMaster; nodeProdMaster = new TreeNode(); nodeProdMaster.Text = "Master1"; nodeProdMaster.ID = "1 How to integrate the regional language in asp.net and c# like Telugu, http://www.allinterview.com/showanswers/59869.html Hi , The logic behind regional language is that convert the regional text into unicode (the language supported by browser)and this can be done through language converters. Second way to do is make .eot or .pfr files of your font and access HOw to Build a Nested GridView Control with ASP.NET? http://www.allinterview.com/showanswers/17850.html The steps in creating Datagrid are 1) Create a new Web page in project. 2) Add a GridView to that page. 3) Define bound columns for every element of data in datagrid. 4) Convert one or more bound columns into a template column by clicki &quot;c sharp&quot; code for factorial using static variables http://www.allinterview.com/showanswers/32695.html using System; class fact { int factorial(int x) { Static int y=1; y=y*x; return y; } public static void Main() { fact f=new fact(); int k=Convert.ToInt32(System.ReadLine()); for(int i=1;i<=x;i++) { int x=f.factorial(i); } System.C Give coding for Implementing a Fixed GridView Header in ASP.NET? http://www.allinterview.com/showanswers/18031.html First u need Style Settings <style type="text/css"> .fixedHeader { overflow: auto; height: 150px; } table th { border-width: 2px; border-color: balck; b Give coding for Exception Handling Techniques in ASP.NET? http://www.allinterview.com/showanswers/18035.html The exception handling techniques very use full to display the errors in meaningfull way. The syntax of exception handling as follows. try { } catch(Exception ) { } catch(Exception ) { } finally { How to Export Data to Excel? http://www.allinterview.com/showanswers/18034.html The belo code is Export the Listview Data's into Excel... It exports two columns, Cell Number and Name... Imports System.IO Try Dim st As String() = New String(lst_phone.Columns.Count - 1) {} how can we close a web page in asp.net without using jscript? http://www.allinterview.com/showanswers/17929.html <asp:Button ID="CloseButton" runat="server" Text="Close" OnClientClick="javaScript:window.close(); return false;" /> Code for Getting Information About A File? http://www.allinterview.com/showanswers/18039.html here we have the system.io base class in .net FileInfo is the class which has the properties and methods to display information about the file. example code FileInfo fi = new FileInfo("givepath"); Console.WriteLine("File Nam Code for Sending E-Mail with System.Web.Mail? http://www.allinterview.com/showanswers/18038.html using System; using System.Web.Mail; namespace vamshi.SendMail { /// <summary> /// Test console application to demonstrate sending e- mail. /// </summary> class TestMail { /// <summary> /// The main en how do i copy textbox contents of 1 form to another form http://www.allinterview.com/showanswers/82063.html Hi, By using state management variables you can get the value of textbox from one form to another,like querystring,session,cookies etc eg) Session["value"]=textboxid.Text;//Set the value in one form string s=Session["value".To Code for a Simple Way to Write XML in .NET (XmlTextWriter) http://www.allinterview.com/showanswers/18052.html This coding is to decrement the count value... Dim writer As New XmlTextWriter("C:\windows\Test.xml", New System.Text.UTF8Encoding) writer.WriteStartDocument() writer.WriteStartElement("Value"