dot net made easydot net made easy,real time questions, dot net frame work,microsoft dot net,dot net tutorial, dot net certification ,debugging,dot net tips,dot net programes,dot net lessons,dot net faq's,interview questions. Articles
Introduction to ADO.NET
2008-03-09 12:06:00 As more and more companies are coming up with n-tier client/server and Web-based database solutions, Microsoft with its Universal Data Access (UDA) model, offers highperformance access to diverse data and information sources on multiple platforms. Also, UDA provides an easy-to-use programming interface that works with practically any cool or language, leveraging the technical skills developers already have.The Microsoft UDA model is a collection of Data Access Components, which are the key technologies that enable Universal Data Access. The Data Access Components include ActiveX Data Objects (ADO), Remote Data Service (RDS), formerly known as Advanced Data Connector (ADC), Object Linking and Embedding Database (OLE DB), and Open Database Connectivity (ODBC).Microsoft is targeting many more such Data Access components that offer easy-tomaintainsolutions to organizations. Such solutions are aimed at allowing organizations use their own choice of tools, applications, and data sources o... More About: Introduction
Using Debugging Tools in ASP.NET
2008-03-08 10:41:00 In the creation process, writing or drawing an outline plays a major role, because in case of a failure, you do not need to waste your time scratching your head. Instead, you can refer to the outline to solve the problem. In any kind of development, if the developer starts logging the steps involved, debugging or finding errors and fixing them becomes very systematic and easy.In programming, logging of the process usually refers to the ability of an application to incorporate the use of debugging, code tracing, performance counters, and event logs. In this section, you'll learn to use the different debugging tools.Visual Studio .NET DebuggerVisual Studio has always provided the developer with very powerful GUI debuggers, and Visual Studio .NET is no exception to this tradition. The debugger built into Visual Studio .NET is powerful and has a lot of new features compared to the debugger that was available with Visual Studio 6.0. Features that were previously available to the develop... More About: Tools , Debugging
Debugging ASP.NET Pages
2008-03-07 17:39:00 While you are developing the application, the code editor catches most syntax errors. However, the errors that cannot be caught during application development cause the application to display error messages at run time. The errors that occur while the application is running are called run-time errors.On the other hand, if there is a problem in the programming logic, the application would run without errors, but it will not provide the desired functionality. Such errors are called logical errors. The process of going through the code to identify the root cause of an error in an application is called debugging.Error HandlingASP.NET provides rich support for handling and tracking errors that might occur while applications are running. When you run an ASP.NET application, if an error occurs on a server, an HTML error page is generated and displayed in the browser. While displaying error messages to users, ASP.NET takes care of the security issues by default, which makes it a reliable d... More About: Pages , Debugging
Validating User Input in ASP.NET
2008-03-07 14:49:00 These controls make pagevalidation much easier and reduce the amount of code that the developer must write to perform page validation. The ASP.NET team reviewed numerous Web sites to determine the most common types of validation that were taking place on the Web. Most developers were reinventing the wheel to perform validation, so the ASP.NET team decided that Web developers needed a set of validation controls to add to their toolbox.From the start, these controls were designed to detect the version of the browser when used in client-side validation and then render the correct version of HTML for that client browser.These research efforts lead to the development of the six controls covered in this chapter. The examples in this chapter will take a look at each control and explain the most commonly used properties for each control. However, keep in mind that all of the controls share basic properties, such as font, fore color, back color, and so on .Everything in the .NET Framework is... More About: User , Input
Custom Controls in ASP.NET
2008-03-06 14:44:00 Visual Studio .NET provides a rich set of standard controls, which are also called intrinsic controls. These standard controls provide a wide range of functionality and allow you to design and develop a user-friendly interface for your applications. Additionally, Visual Studio .NET provides you custom controls that you can use if the existing controls do not meet your requirements.For example, consider a Web application that needs to have multiple Web Forms and most of the Web Forms need a calculator. In this case, instead of adding standard controls to each Web Form for implementing the calculator, you can create one custom control to represent a calculator and use it across the Web Forms in your application. Thus, custom controls allow reusability.You can create the following types of custom controls in Visual Studio .NET: User control: A Web Forms page that can be used as a control on other Web Forms pages. Thus, if you already have a Web Forms page and you need to construct a si... More About: Custom
Web Controls in ASP.NET
2008-03-06 14:17:00 Using the AdRotator ControlThe AdRotator control is used to display flashing ads, such as banner ads and news flashes on Web pages. The control is capable of displaying ads randomly, because the control refreshes the display every time the Web page is refreshed, thereby displaying different ads for different users. Also, you can assign priorities to the ads so that certain ads are displayed more frequently than others.You can add the AdRotator control in an ASP.NET Web page by using the followingsyntax:propertyname = propertyvaluepropertyname = propertyvalue>Alternatively, you can use the toolbox provided with VS.NET to add the control to the page. When you do so, the code is automatically generated and can be seen in the HTML view of the ASPX file.Properties of the AdRotator controlAlong with the properties that are inherited from the System.Web.UI.Control base class,the AdRotator control has three additional properties: AdvertisementFile KeywordFilter TargetAdvertisementFileThe Ad...
TABLE CONTROL AND EVENTS IN ASP.NET
2008-03-05 17:37:00 A table is used to display information in a tabular format. A table consists of rows and columns. The intersection of a row and a column is called a cell. You can add a table to a Web Forms page by using the Table control. This control displays information statically by setting the rows and columns at design time. Also, you can program the Table control to display information dynamically at run time.You can add rows at design time by setting the Rows property, which represents a collection of TableRow objects; a TableRow object represents a row in the table. You can add cells to a table row by setting the Cells property of the TableRow object. The Cells property represents a collection of TableCell objects; a TableCell object represents a cell in a table row. Thus, to set rows and columns of a table at the design time, you first add the Table control to the form. Then, set the Rows property of the Table control to add TableRow objects. Finally, set the Cells property of the TableRow... More About: Events , Control
Building Forms with Web Controls in asp.net part two
2008-03-05 16:53:00 Using Web Controls:You can add ASP.NET server controls to a Web Forms page by using either of thefollowing two features:The Web Forms section of the toolboxThe ASP.NET codeYou add controls from the toolbox in Design view of the Web Forms page (the ASPX file). The toolbox categorizes the different types of controls in separate tabs, such as Web Forms, HTML, Components, and Data. You can use the HTML tab to add HTMLcontrols and use the Web Forms tab to add the ASP.NET server controls to Web Forms.However, to make the HTML controls available for coding at the server end, thesecontrols need to be converted to server controls. To do so, right-click the HTML control on the page and select Run As Server Control from the context menu. While selecting between HTML and Web server controls, using Web server controls is preferred,because they provide a rich object model and are adaptable to multiple browsers depending on browser capabilities. However, HTML server controls are preferred when m... More About: Building , Part
Building Forms with Web Controls in asp.net
2008-03-04 14:42:00 The increased use of the Internet in the business scenario has shifted focus from desktop applications to Web-based applications. Because of this shift in focus, a Web development technology is needed that can combine the capabilities of different languages and simplify application development.Microsoft's response to this need is the release of ASP.NET, which provides a common Web development platform.ASP.NET is a powerful programming platform that is used to develop and run Webbasedapplications and services. ASP.NET provides improved features, such as convenient debugging tools, over the earlier Web development technologies. ASP.NET provides a rich set of controls to design Web pages. Visual Studio .NET provides visual WYSIWYG (What You See Is What You Get) HTML editors. Therefore, you can design Web pages by simply dragging and dropping the controls.ASP.NET supports the C#, Visual Basic .NET, and JScript .NET languages, all of which you can use to build programming logic for your... More About: Building , Forms
ASP.NET INTRODUCTION
2008-02-28 15:21:00 ASP.NET, the next version of ASP, is a programming framework that is used to create enterprise-class Web applications. The enterprise-class Web applications are accessible on a global basis, leading to efficient information management. However, the advantages that ASP.NET offers make it more than just the next version of ASP.ASP.NET is integrated with Visual Studio .NET, which provides a GUI designer, a rich toolbox, and a fully integrated debugger. This allows the development of applications in a What You See is What You Get (WYSIWYG) manner. Therefore, creating ASP.NET applications is much simpler.Unlike the ASP runtime, ASP.NET uses the Common Language Runtime (CLR) provided by the .NET Framework. The CLR is the .NET runtime, which manages the execution of code. The CLR allows the objects, which are created in different languages, to interact with each other and hence removes the language barrier. CLR thus makes Web application development more efficient.In addition to simplifyin... More About: Introduction
dot net first round interview questions part three
2008-02-26 09:30:00 • Why is it a bad idea to throw your own exceptions?Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project.• What's the difference between // comments, /* */ comments and /// comments?Single-line, multi-line and XML documentation comments.• How do you generate documentation from the C# file commented properly with a command-line compiler?Compile it with a /doc switch.• Can you change the value of a variable while debugging a C# application?Yes, if you are debugging via Visual Studio.NET, just go to Immediate window.• What's the implicit name of the parameter that gets passed into the class' set method?Value, and it's datatype depends on whatever variable we're changing.• How do you inherit from a class in C#?Place a colon and then the name of the base class. Notice that it'... More About: Questions , Interview , Part , Round
dot net first round interview questions part two
2008-02-26 09:24:00 • What is the difference between an XML "Fragment" and an XML "Document."An XML fragment is an XML document with no single top-level root element. To put it simple it is a part (fragment) of a well-formed xml document. (node) Where as a well-formed xml document must have only one root element.• What does it meant to say “the canonical” form of XML?"The purpose of Canonical XML is to define a standard format for an XML document. Canonical XML is a very strict XML syntax, which lets documents in canonical XML be compared directly.Using this strict syntax makes it easier to see whether two XML documents are the same. For example, a section of text in one document might read Black & White, whereas the same section of text might read Black & White in another document, and even in another.If you compare those three documents byte by byte, they'll be different. But if you write them all in canonical XML, which specifies every aspect of the syntax you can use, these three d... More About: Questions , Interview , Part , Round
dot net first round interview questions part one
2008-02-26 09:19:00 • Explain the differences between Server-side and Client-side code?Server side code executes on the server.For this to occur page has to be submitted or posted back.Events fired by the controls are executed on the server.Client side code executes in the browser of the client without submitting the page.e.g. In ASP.NET for webcontrols like asp:button the click event of the button is executed on the server hence the event handler for the same in a part of the code-behind (server-side code). Along the server-side code events one can also attach client side events which are executed in the clients browser i.e. javascript events.• How does VB.NET/C# achieve polymorphism?Polymorphism is also achieved through interfaces. Like abstract classes, interfaces also describe the methods that a class needs to implement. The difference between abstract classes and interfaces is that abstract classes always act as a base class of the related classes in the class hierarchy. For example, consider ... More About: Questions , Interview , Part , Round
FAQ'S ON DOT NET FRAME WORK PART TEN
2008-02-25 17:45:00 • What’s wrong with a line like this? DateTime.Parse(myString);There IS nothing wrong with this declaration.Converts the specified string representation of a date and time to its DateTime equivalent.But If the string is not a valid DateTime,It throws an exception.• What are PDBs? Where must they be located for debugging to work? A program database (PDB) files holds debugging and project state information that allows incremental linking of debug configuration of your program.There are several different types of symbolic debugging information. The default type for Microsoft compiler is the so-called PDB file. The compiler setting for creating this file is /Zi, or /ZI for C/C++(which creates a PDB file with additional information that enables a feature called ""Edit and Continue"") or a Visual Basic/C#/JScript .NET program with /debug.A PDB file is a separate file, placed by default in the Debug project subdirectory, that has the same name as the executable file with the extensio... More About: Work , Part , Frame
FAQ'S ON DOT NET FRAME WORK PART NINE
2008-02-25 17:41:00 • What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?ASP.NET Web services and .NET Remoting provide a full suite of design options for cross-process and cross-plaform communication in distributed applications. In general, ASP.NET Web services provide the highest levels of interoperability with full support for WSDL and SOAP over HTTP, while .NET Remoting is designed for common language runtime type-system fidelity and supports additional data format and communication channels. Hence if we looking cross-platform communication than web services is the choice coz for .NET remoting .Net framework is requried which may or may not present for the other platform.Serialization and MetadataASP.NET Web services rely on the System.Xml.Serialization.XmlSerializer class to marshal data to and from SOAP messages at runtime. For metadata, they generate WSDL and XSD definitions that describe what their messages contain. The reliance on pure WSDL and XSD makes ... More About: Work , Part , Frame
FAQ'S ON DOT NET FRAME WORK PART EIGHT
2008-02-25 17:38:00 • Difference between int and int32 ?Both are same. System.Int32 is a .NET class. Int is an alias name for System.Int32.• Describe the difference between a Thread and a Process?A Process is an instance of an running application. And a thread is the Execution stream of the Process. A process can have multiple Thread.When a process starts a specific memory area is allocated to it. When there is multiple thread in a process, each thread gets a memory for storing the variables in it and plus they can access to the global variables which is common for all the thread. Eg.A Microsoft Word is a Application. When you open a word file,an instance of the Word starts and a process is allocated to this instance which has one thread.• What is the difference between an EXE and a DLL?You can create an objects of Dll but not of the EXE.Dll is an In-Process Component whereas EXE is an OUt-Process Component.Exe is for single use whereas you can use Dll for multiple use.Exe can be started as stand... More About: Work , Part , Frame
FAQ'S ON DOT NET FRAME WORK PART SEVEN
2008-02-25 17:34:00 • What is tracing?Where it used. Explain few methods available?Tracing refers to collecting information about the application while it is running. You use tracing information to troubleshoot an application.Tracing allows us to observe and correct programming errors. Tracing enables you to record information in various log files about the errors that might occur at run time. You can analyze these log files to find the cause of the errors.In .NET we have objects called Trace Listeners. A listener is an object that receivesthe trace output and outputs it somewhere; that somewhere could be a window in your development environment, a file on your hard drive, a Windows Event log, a SQL Server or Oracle database, or any other customized data store.The System.Diagnostics namespace provides the interfaces, classes, enumerations and structures that are used for tracing The System.Diagnostics namespace provides two classes named Trace and Debug that are used for writing errors and applicati... More About: Work , Part , Frame
FAQ'S ON DOT NET FRAME WORK PART SIX
2008-02-25 17:22:00 • What are the types of assemblies?There are four types of assemblies in .NET:Static assembliesThese are the .NET PE files that you create at compile time.Dynamic assembliesThese are PE-formatted, in-memory assemblies that you dynamically create at runtime using the classes in the System.Reflection.Emit namespace.Private assembliesThese are static assemblies used by a specific application.Public or shared assembliesThese are static assemblies that must have a unique shared name and can be used by any application.An application uses a private assembly by referring to the assembly using a static path or through an XML-based application configuration file. While the CLR doesn't enforce versioning policies-checking whether the correct version is used-for private assemblies, it ensures that an application uses the correct shared assemblies with which the application was built.Thus, an application uses a specific shared assembly by referring to the specific shared assembly, and the CLR... More About: Work , Part , Frame
FAQ'S ON DOT NET FRAME WORK PART FIVE
2008-02-25 17:17:00 • What are the Main Features of .NET platform?Features of .NET Platform are :-Common Language RuntimeExplains the features and benefits of the common language runtime, a run-time environment that manages the execution of code and provides services that simplify the development process.AssembliesDefines the concept of assemblies, which are collections of types and resources that form logical units of functionality. Assemblies are the fundamental units of deployment, version control, reuse, activation scoping, and security permissions.Application DomainsExplains how to use application domains to provide isolation between applications.Runtime HostsDescribes the runtime hosts supported by the .NET Frame work, including ASP.NET, Internet Explorer, and shell executables.Common Type SystemIdentifies the types supported by the common language runtime.Metadata and Self-Describing ComponentsExplains how the .NET Framework simplifies component interoperation by allowing compilers to emit addi... More About: Work , Part
FAQ'S ON DOT NET FRAME WORK PART FOUR
2008-02-25 17:12:00 • Different b/w .NET & J2EE?Differences between J2EE and the .NET PlatformVendor NeutralityThe .NET platform is not vendor neutral, it is tied to the Microsoft operating systems. But neither are any of the J2EE implementations.Many companies buy into J2EE believing that it will give them vendor neutrality. And, in fact, this is a stated goal of Sun's vision:A wide variety of J2EE product configurations and implementations, all of which meet the requirements of this specification, are possible. A portable J2EE application will function correctly when successfully deployed in any of these products. (ref : Java 2 Platform Enterprise Edition Specification, v1.3, page 2-7 available at http://java.sun.com/j2ee/)Overall MaturityGiven that the .NET platform has a three year lead over J2EE, it should be no surprise to learn that the .NET platform is far more mature than the J2EE platform. Whereas we have high volume highly reliable web sites using .NET technologies (NASDAQ and Dell be... More About: Work , Part , Frame
FAQ'S ON DOT NET FRAME WORK PART THREE
2008-02-25 16:58:00 • Differnce between Managed code and unmanaged code ?Managed Code:Code that runs under a "contract of cooperation" with the common language runtime. Managed code must supply the metadata necessary for the runtime to provide services such as memory management, cross-language integration, code access security, andautomatic lifetime control of objects. All code based on Microsoft intermediate language (MSIL) executes as managed code.Un-Managed Code:Code that is created without regard for the conventions and requirements of the common language runtime. Unmanaged code executes in the common language runtime environment with minimal services (for example, no garbage collection, limited debugging, and so on).• What is MSIL, IL, CTS and, CLR ?MSIL: (Microsoft intermediate language)When compiling to managed code, the compiler translates your source code into Microsoft intermediate language (MSIL), which is a CPU-independent set of instructions that can be efficiently converted to native ... More About: Work , Part , Frame
DOT NET REAL TIME QUESTIONS PART TWO
2008-02-20 03:22:00 • Why string are called Immutable data Type ?The memory representation of string is an Array of Characters, So on re-assigning the new array of Char is formed & the start address is changed . Thus keeping the Old string in Memory for Garbage Collector to be disposed.• What does assert() method do?In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true.• What's the difference between the Debug class and Trace class?Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds.• Why are there five tracing levels in System.Diagnostics.TraceSwitcher?The tracing dumps can be quite verbose. For applications that are constantly running you run the risk of overloading the machine and the hard drive. Five levels range from None to Verbose, allowing you to fine-tune the tracing activit... More About: Questions , Time , Real , Part , Real Time
DOT NET REAL TIME QUESTIONS 1
2008-02-19 19:42:00 • When was .NET announced?Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and delegates were given CDs containing a pre-release version of the .NET framework/SDK and Visual Studio.NET.• When was the first version of .NET released?The final version of the 1.0 SDK and runtime was made publicly available around 6pm PST on 15-Jan-2002. At the same time, the final version of Visual Studio.NET was made available to MSDN subscribers.• What platforms does the .NET Framework run on?The runtime supports Windows XP, Windows 2000, NT4 SP6a and Windows ME/98. Windows 95 is not supported. Some parts of the framework do not work on all platforms - for example, ASP.NET is only supported on Windows XP and Windows 2000. Windows 98/ME cannot be used for development.IIS is not supported on Windows XP Home Edition, and so cannot be used to host ASP.NET. However, the ASP.NET Web Matrix we... More About: Questions , Time , Real , Real Time
REAL TIME QUESTOINS ASP.NET PART FIVE
2008-02-19 14:59:00 • Can we handle the error and redirect to some pages using web.config?Yes, we can do this, but to handle errors, we must know the error codes; only then we can take the user to a proper error message page, else it may confuse the user.CustomErrors Configuration section in web.config file:The default configuration is: If mode is set to Off, custom error messages will be disabled. Users will receive detailed exception error messages.If mode is set to On, custom error messages will be enabled.If mode is set to RemoteOnly, then users will receive custom errors, but users accessing the site locally will receive detailed error messages.Add an tag for each error you want to handle. The error tag will redirect the user to the Notfound.aspx page when the site returns the 404 (Page not found) error.[Example]There is a page MainForm.aspxPrivate Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page hereDim s... More About: Time , Real , Part , Real Time
REAL TIME QUESTOINS ASP.NET PART FOUR
2008-02-19 14:55:00 • Which control would you use if you needed to make sure the values in two different controls matched?CompareValidator is used to ensure that two fields are identical.• What is validationsummary server control?where it is used?.The ValidationSummary control allows you to summarize the error messages from all validation controls on a Web page in a single location. The summary can be displayed as a list, a bulleted list, or a single paragraph, based on the value of the DisplayMode property. The error message displayed in the ValidationSummary control for each validation control on the page is specified by the ErrorMessage property of each validation control.If the ErrorMessage property of the validation control is not set, no error message is displayed in the ValidationSummary control for that validation control. You can also specify a custom title in the heading section of the ValidationSummary control by setting the HeaderText property.You can control whether the ValidationSumma... More About: Time , Real , Part , Real Time |



