Questions tagged as 'asp.net'

1
answer

How to instruct the browser to keep my Javascript and CSS cached through web.config

I analyzed my new site in Google PageSpeed Insights , I made some corrections, and now I need to cache some files (CSS and JS) in the browser. I searched for some articles / questions in Stack Overflow but could not figure out how to cache s...
asked by 05.07.2017 / 15:41
1
answer

Display Facebook images with given hashtag via API

I'm developing a web application, and my client has asked me about appearing on his site in some area of the site, Facebook images, with the hashtag . Example, it will cover a certain example, his clients take photos and publish on Facebo...
asked by 29.07.2014 / 15:48
1
answer

Filter in DropDown using C # MVC 4

I have a dropdown in my view that I fill in as follows: ViewBag.NfeStatus = EnumHelper .ListAll<NfeStatus>() .ToSelectList(x => x, x => x.Description()); My NfeStatus model is an enum: public enum NfeStatus {...
asked by 17.01.2017 / 12:33
2
answers

How to redirect from non-www to www?

I want visitors to my site to always access with www . I want to somehow redirect in case the user tries to log in without www or subdomain. If you try to access exemplo.com I want to redirect to www.exemplo.com ....
asked by 11.12.2013 / 23:17
1
answer

What is ADO.Net for C #?

I'm starting to learn about C # for Web applications, and wanted to know what is ADO.Net and what are the advantages of using it?     
asked by 04.10.2015 / 17:25
1
answer

What is the Level Trust of an ASP.NET application?

What is the Level Trust setting for an ASP.NET application? Does it protect the server from anything? Does it protect the application from anything? In which case or for what reason is it recommended or necessary to change this setting?...
asked by 31.10.2016 / 18:23
1
answer

Proxy Connection: HTTP 407 Proxy Authentication Required

I created a project for ASP NET where I want to get the data of an address from the CEP by querying a call from the url in a webservice. On my machine it works normally, however on the machine I work, there is a need for network authenticatio...
asked by 28.04.2015 / 19:23
2
answers

String Conversion to Double Asp.NET C #

I need to convert a String value (returned by the database) to Double but when I do this, it simply modifies the value. Example: bank returns 22.5, when converted to Double in 225.0. String val_serv = consultaserv[2].ToString(); Double buffer...
asked by 17.03.2014 / 20:39
1
answer

How to add a control dynamically in C #?

How to add a control to a ASP.NET page dynamically using C # ?     
asked by 17.04.2014 / 23:12
1
answer

In which cases they return the error Exception of type System.OutOfMemoryException

What are the most frequent cases that can return this exception ?     
asked by 18.09.2017 / 14:35