Skip to main content

Posts

Showing posts with the label C# faqs

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...

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"