Skip to main content

Posts

Showing posts with the label Interview Questions

Dot Net Framework Interview Questions

 Dot Net Framework Interview Questions Previously I was Explained about   Interview Questions in ASP.NET,C#.NET,SQL Server,.NET Framework 1. What is .NET Framework? .NET Framework is a complete environment that allows developers to develop, run, and deploy the following applications: Console applications Windows Forms applications Windows Presentation Foundation (WPF) applications Web applications (ASP.NET applications) Web services Windows services Service-oriented applications using Windows Communication Foundation (WCF) Workflow-enabled applications using Windows Workflow Foundation (WF) .NET Framework also enables a developer to create sharable components to be used in distributed computing architecture. NET Framework supports the object-oriented programming model for multiple languages, such as Visual Basic, Visual C#, and Visual C++. .NET Framework supports multiple programming languages in a manner that allows language intero...

Difference between Convert.tostring and .tostring() method Example

In this article I will explain differences between .tostring() and Convert.tostring() in asp.net .  The basic difference between them is “ Convert.ToString(variable) ” handles NULL values even if variable value become null but “ variable.ToString() ” will not handle NULL values it will throw a NULL reference exception error. So as a good coding practice using “convert” is always safe. A Small Example as follws  //Returns a null reference exception for str. string string1; object  s1i = null ; string1 = i1.ToString(); //Returns an empty string for str and does not throw an exception. If you dont string   string2 ; object i = null ; string2 = Convert .ToString(i);

What is the difference between a process and a thread

Both processes and threads are independent sequences of execution. The typical difference is that threads (of the same process) run in a shared memory space, while processes run in separate memory spaces. I'm not sure what "hardware" vs "software" threads might be referring to. Threads are an operating environment feature, rather than a CPU feature (though the CPU typically has operations that make threads efficient). Erlang uses the term "process" because it does not expose a shared-memory multiprogramming model. Calling them "threads" would imply that they have shared memory. Process: An executing instance of a program is called a process. Some operating systems use the term ‘task‘ to refer to a program that is being executed. A process is always stored in the main memory also termed as the primary memory or random access memory. Therefore, a process is termed as an active entity. It disappears if the machine is re...

Asp.net Url Routing vs Rewriting

IIS URL Rewriting When a client makes a request to the Web server for a particular URL, the URL-rewriting component analyzes the requested URL and changes it to a different other URL on the same server. The URL-rewriting component runs very early in the request processing pipeline, so is able to modify the requested URL before the Web server makes a decision about which handler to use for processing the request. ASP.NET Routing ASP.NET routing is implemented as a managed-code module that plugs into the IIS request processing pipeline at the Resolve Cache stage (PostResolveRequestCache event) and at the Map Handler stage (PostMapRequestHandler). ASP.NET routing is configured to run for all requests made to the Web application. Differences between URL rewriting and ASP.NET routing: URL rewriting is used to manipulate URL paths before the request is handled by the Web server . The URL-rewriting module does not know anything about what handler will eventually process ...

Bind DropDownList with two columns of Datatable

Combining two fields in a DataTextField. Is this possible?  Ans : Yes  Here is the code How to do this You can add an additional column to the datatable that is a computed column and use it as your datatextfield  So for your example above you could do something like this:  dsAddress.Tables[0].Columns.Add("StreetAndPlace",typeof(string),"StreetAddress + Place"); lstAddressDropdown.DataSource = dsAddress;  lstAddressDropdown.DataTextField = "StreetAndPlace";  lstAddressDropdown.DataBind();  lstAddressDropdown.Items.Insert(0, new ListItem("Please select"));  To add a space Or any special characters between the StreetAddress and Place replace the expression string shown above with "StreetAddress + ' ' + Place" Or "StreetAddress + '$' + Place"