C#

Collection of Articles and Posts on C# ,Dotnet Professional must read these Articles and Posts, these also includes some questions mostly ask by interviewer,

Mixed Content: The page at ‘https://yourdomain’ was loaded over HTTPS, but requested an insecure script ‘http://url’. This request has been blocked; the content must be served over HTTPS.

Post Views: 359  Mixed Content: The page at ‘https://yourdomain’ was loaded over HTTPS, but requested an insecure script ‘http://url’. This request has been blocked; the content must be served over HTTPS. If you are getting the same error  means you are calling HTTP from HTTPS, to avoid the error you can use src=”//yoururl/yourscript.js” in your script tag […]

Read and Parse a Json File in C#

Post Views: 449  Situation :  when you get JSON from source, it can be any source or JSON return by any service and you want to get data from JSON or want to access any retrive particluar data value from JSON   Here requiredfield is field   dynamic stuff = Newtonsoft.Json.JsonConvert.DeserializeObject(res); string RequiredData = stuff[“requiredfield”].Value; if […]

REST (Representational State Transfer) Services in WCF

Asp.net

Post Views: 518  REST (Representational State Transfer)Services in WCF: Representational State Transfer (REST )  is  architectural style that clients can make requests of services(Endpoints). RES9T is useful to implement one way distributed commutation between the client server architectural styles. URI (Unforce Resource Identifier): End user can interact with resources and resources could be name of […]

Refresh ASPx page after time

Post Views: 315   How to get aspx page Automatically refresh after some time To get a page to be refreshed after a particular time at page level of the aspx page we need to specify like this :    <meta http-equiv=”refresh” content=”10″ />   The above statement will make a particular page to be refreshed for […]

Difference between Session vs Cache?

Post Views: 237  Difference between Session vs Cache? Main difference is session is per user, while cache will be for application scoped items. Items available into a session will stay there, until the session ends. Items in the cache can expire (will be removed from cache) after a specified amount of time. we can keep session state  external i e state […]

Contract in WCF Service

Post Views: 306  What are contract in WCF Services? Contract defined the service and its operation. It’s the agreement between the client and WCF Service application between there communication. Contract defined that what the WCF service does. Service Contract: Service contract define the operation that service provide for client. Service Contract describes the client –callable […]

Window Communication Foundation ABC

Post Views: 264  What is WCF? WCF (Window Communication Service) is use for developing the service oriented application .WCF service is use for communicating and sharing data with real time in multi locations. You can send data message asynchronously from one endpoint to another endpoint. WCF services can be distributed as a globally and can […]

Tech Contents © 2016
Inline
Inline