Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts
Friday, May 20, 2022
Thursday, May 19, 2022
Wednesday, May 18, 2022
Wednesday, June 07, 2017
Security Framework
I've created a new repository on GitHub.
The project is a security framework for asp.net mvc projects.
You can find it th following address on GitHub:
https://github.com/Searching/securityframework
I'll update this post periodically to make a useful guide to use it in your projects.
Have fun.
The project is a security framework for asp.net mvc projects.
You can find it th following address on GitHub:
https://github.com/Searching/securityframework
I'll update this post periodically to make a useful guide to use it in your projects.
Have fun.
Monday, October 10, 2016
Consuming a WCF with error: "The caller was not authenticated by the service"
Consuming a WCF service when it hosted on a work group server may cause raise some errors such as: "The caller was not authenticated by the service".
I tackled it by adding the following lines to my code:
I tackled it by adding the following lines to my code:
Tuesday, April 20, 2010
Gridview Sorting Problem
When you bind a List to a Gridview, you can not sort it, because your data source is not a Dataset, Dataview or DataTable. So you should convert your data source (List) to a Dataset for example.
You can do it such as following code:
You can bind this Dataset to your Gridview data source
You can do it such as following code:
1 public static DataSet dsSearch()
2 {
3
4 DataTable dtTelcoCenter = new DataTable();
5 dtTelcoCenter.Columns.Add("Id", typeof(int));
6 dtTelcoCenter.Columns.Add("City", typeof(string));
7 dtTelcoCenter.Columns.Add("Capacity", typeof(int));
8
9 IList<Telco> telcoCenter = Search(centerName, Prefix);// Search method return a list
10
11
12 foreach (Telco telco in telcoCenter)
13 {
14 DataRow rowTelcoCenter = dtTelcoCenter.NewRow();
15 rowTelcoCenter["Id"] = telco.Id;
16 rowTelcoCenter["City"] = telco.City;
17 rowTelcoCenter["Capacity"] = telco.Capacity;
18 dtTelcoCenter.Rows.Add(rowTelcoCenter);
19 }
20 DataSet dsTelcoCenter = new DataSet();
21 dsTelcoCenter.Tables.Add(dtTelcoCenter);
22 return dsTelcoCenter;
23 }
Subscribe to:
Posts (Atom)
Update the author and email address of every commit on a repository
source: stackoverflow.com
-
content
-
I've created a new repository on GitHub . The project is a security framework for asp.net mvc projects. You can find it th following ...