vb.net

How to use XMLTextWriter with XML Namespaces in VB.NET

You can use the XMLTextWriter class to create XML content that uses a namespace. The code lies used to illustrate the idea are taken from the article How to use XMLTextWriter to create an XML document in VB.NET, and you can find more information about XML namespaces from the article How to use XML Namespaces in XML document.

The …

Learn more

How to use XmlTextReader to read XML file as objects in VB.NET

You can use the XmlTextReader class when you want to read a XML document in your code. The XmlTextReader moves through your document from top to bottom, one node at a time. You call the Read() method to move to the next node. In a typical application, you would need to go fishing for the elements …

Learn more

How to use XmlTextReader to read XML file as text in VB.NET

You can use the XmlTextReader class when you want to read a XML document in your code. The XmlTextReader moves through your document from top to bottom, one node at a time. You call the Read() method to move to the next node. This method returns true if there are more nodes to read or false …

Learn more

How to use XmlTextWriter formatting in VB.NET

You can create a XML document, by using the basic XmlTextWriter class. If you want to understand how you can read the  article How to use XMLTextWriter to create an XML document in VB.NET. By default, the XmlTextWriter creates an XML file that has all its elements lumped together in a single line without any helpful carriage returns …

Learn more

How to upload files to the Web server with FileUpload control in VB

ASP.NET includes a control named FileUpload that allows website users to upload files to the web server. The FileUpload control manages the posted file data, by examining it, disregarding it, or saving it to a back-end database or a file on the web server.   The FileUpload control represents the <input  type = “file”> HTML tag and …

Learn more

How to use LINQ Skip clause in VB.NET

Web developers use optional LINQ Skip clause when they want to bypass, specified by the count parameter, elements at the beginning of a results list and return the remaining elements. Web developers can combine the Skip clause with the Take clause to return a range of data from any segment of a query, by passing the …

Learn more

How to use LINQ Distinct clause in VB.NET

Web developers use optional LINQ Distinct clause when they want to receive a list of unique items. The Distinct clause ignores duplicate query results and can be applied to duplicate values for all return fields specified by the Select clause. If no Select clause is specified, the Distinct clause is applied to the range variable for the query …

Learn more

How to use LINQ Let clause in VB.NET

Web developers can use optional LINQ Let clause to compute values for each query result and reference them by using an alias. The alias can be used in other clauses, such as the Where clause. By using Let clause, Web developers can create a query statement that is easier to read because they can specify an alias for …

Learn more

How to download a file from the Web server in ASP.NET in VB.NET

You should use the Directory FileInfo classes to collect and present the names of the files you want to make available for download to the end user. You can display their names in a ListBox with a button to initiate the download. When the user clicks the button, stream the selected file to the browser. The …

Learn more