Posts

Showing posts from June, 2017

Query String in ASP.NET

What is a QueryString? A Query String is a value specified in an HTTP query that can be accessed easily within ASP.NET. The query string is appended at the end of the URL following the question mark(‘?’) character. Multiple query strings can be specified in the URL by separating them by either an ampersand(‘&’) or a semicolon(‘;’). The following is an example of the query string with a field name of ‘id’ and a value of ‘1’: http://www.mywebsite.com/default.aspx?id=1. Query strings can be used for many different reasons, one common use is to display different data on the same page based on the query string. Latest Updated ASP.NET MVC Course Content  - (FREE PDF LINK) For example, if I had an online store and wanted a page to display an inidividual item from my database on the page, we could use a query string. This would work by passing something such as the item’s id in the database as a query string to the page, and then displaying data from the database based on the val

Reading and Writing Text File using C#.Net

This C# code snippet writes a text file from an internal string then reads it back using StreamReader, StreamWriter, TextReader, and TextWriter. Recommended Reading :  Learn C# Basics  INTRODUCTION:  Here you can information about how to read or write (Unicode) character based data through TextReader and TextWriter. The TextReader and TextWriter are base classes. The StreamReader and StringReader derives from the abstract type TextReader. Similarly the StreamWriter and StringWriter derives from the abstract type TextWriter. Trending This week :  Top 7 New Features in C# 7.0   WRITING — TEXT FILE:   StreamWriter type derives from a base class named TextWriter. This class defines members that allow derived types to write textual data to a given character stream. Let us see some of the main members of the abstract class TextWriter. close() — Closes the Writer and frees any associated resources. Write() — Writes a line to the text stream, with out a newline. WriteLine

Role of Microsoft .NET Certification in your Career

This C# code snippet writes a text file from an internal string then reads it back using StreamReader, StreamWriter, TextReader, and TextWriter. Recommended Reading :  Learn C# Basics  INTRODUCTION:  Here you can information about how to read or write (Unicode) character based data through TextReader and TextWriter. The TextReader and TextWriter are base classes. The StreamReader and StringReader derives from the abstract type TextReader. Similarly the StreamWriter and StringWriter derives from the abstract type TextWriter. Trending This week :  Top 7 New Features in C# 7.0   WRITING — TEXT FILE:   StreamWriter type derives from a base class named TextWriter. This class defines members that allow derived types to write textual data to a given character stream. Let us see some of the main members of the abstract class TextWriter. close() — Closes the Writer and frees any associated resources. Write() — Writes a line to the text stream, with out a newline. WriteLine

Top25 ASP.NET Interview Questions - FAQ | Crack the Interview Easily

Image
Complete MicrosoftDot Net Topics – PDF Download 1. What is ASP.Net? It is a framework developed by Microsoft on which we can develop new generation web sites using web forms(aspx), MVC, HTML, Javascript, CSS etc. Its successor of Microsoft Active Server Pages(ASP). Currently there is ASP.NET 4.0, which is used to develop web sites. There are various page extensions provided by Microsoft that are being used for web site development. Eg: aspx, asmx, ascx, ashx, cs, vb, html, XML etc. 2. What’s the use of Response.Output.Write()?  We can write formatted output  using Response.Output.Write(). 3. What is caching? Caching is a technique used to increase performance by keeping frequently accessed data or files in memory. The request for a cached file/data will be accessed from cache instead of actual location of that file. 4. What is Cross Page Posting? When we click submit button on a web page, the page post the data to the same page. The technique in wh