Latest posts on tagged on "ASP-NET"

Xml dropdownlist bind in asp.net?

22 June 2016

In this example, I will show you to bind dropdownlist with an xml file using ReadXml() method. In order to read data from cities.xml file into a dataset from the specified path using Server.MapPath.

How to update nuget package manager?

16 June 2016

Go to tool menu in visual studio and select Library package manager and click Package manager console. If you want to check whether new updates are available for the installed package

Jquery gridview asp net examples

9 June 2016

In this example I will show you how to bind data in asp.net vb gridview using JQuery. I used Html table structure to populate data to gridview.

[solved]The model item passed into the dictionary is of type 'System.Data.Entity.Infrastructure.DbQuery`1[<> f__AnonymousType2`2[System.String,System.String]]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1'

7 June 2016

When I was trying to run the application I had faced this problem. I resolved by selecting the complete object that result will consists of complete customer objects. But before I selected a subset of the customer objects, just two members.

How to check all rows in a gridview in asp.net?

1 June 2016

In this article we will discuss how to check all rows in a gridview in asp.net using javascript. When user clicks on the header checkbox it call a javascript function on that we are written logic about checkall/uncheckall for a gridview.

How to create autocomplete textbox with database in asp.net c#?

31 May 2016

In this article we will discuss to create autocomplete textbox using webmethod in asp.net c# application. It provides suggestion in a dropdown menu while the user enters text into the field. Please change the database connection string to connect your database.

A potentially dangerous Request.Form value was detected from the client.

26 May 2016

I have created a table “article” with columns articleId and article_content. I am also using html editor for “article_content” column. When I am trying to save I got the following error. It was resolved by adding [AllowHtml] to Description property in class.

How to read text file using fileupload control in asp.net MVC?

25 May 2016

In this step by step article describes how to read text file using fileupload control in asp.net MVC.create a post form method with html controls file, button and create a folder name with Document in the project. When user choose the text file and click the submit button the controller will receive file type, name etc. we will save the file in our project document folder.