Posts by ridermansb • 316 points
11 posts
-
1
votes1
answer164
viewsA: Sql Timeout with Webmatrix.Data.Database
Have you ever tried something like "Data Source=localhost;Initial Catalog=database;Connect Timeout=15" Or change the sql Server default using sp_configure Look at this question:…
-
1
votes1
answer577
viewsA: Redirect to external URL with basic Authentication in MVC
It is not possible , since you would need to generate the exact cookie for the portal you are trying to access. If the credentials are the same as your portal, you could do something like:…
-
1
votes1
answer92
viewsA: Use of meta Keywords
Yes! Search engines will hardly abandon these tags. Bing and Google even have some documentations like this and this on the use of these tags. Besides there are several articles like this with the…
-
2
votes1
answer1591
viewsA: Working with Excel data in C#
It is not advisable business rules in the database! Only for this reason ideally would you use C#. I recommend the library: Linqtoexcel You can read Excel files very intuitively: var excel = new…
-
2
votes2
answers731
viewsA: Change Context according to application
Utilize Web.config Transformation Syntax to change the Connection strings when published: In Solution explorer, search for: Web.Release.config and change the desired session:…
-
2
votes2
answers74
viewsA: td in a Function
I recommend using the Buildr. var iFrames = [{ width: "560", height: "315", src: "//www.youtube.com/embed/rj6OLq9W6RE", frameborder: 0, allowfullscreen: true }]; $div = $("div"); function Retorno()…
javascriptanswered ridermansb 316 -
1
votes1
answer172
viewsA: Multicliente (multi-tenant) application with Asp.net webforms and routes
You need to change your route: routes.MapRoute( name: "Default", url: "{cliente}/{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } );…
-
1
votes1
answer1306
viewsA: Change Webservice address at runtime - C#
I recommend not adding the reference (Web Service) to your project. So you will have more control in the code on how to consume this web service. Utilize Webrequest or a library like Restsharp:…
-
1
votes1
answer1122
viewsA: Make an SQL query with Entity Framework 4
For Entity Framework executing commands with query (which returns data) you need to have some data types defined for mapping the query result. If you want un-typed results, I suggest you use…
-
0
votes1
answer325
viewsA: MSBUILD - How to Publish Multiple Single Solution Projects (OSGI)
You can try via command line: msbuild example.sln /p:Configuration=Test;DeployOnBuild=true;PublishProfile=Test.example.pubxml /MaxCpuCount:8 The idea is to create a Bach (bat) to make this…
-
2
votes2
answers2101
viewsA: How to decode an image in Base64
Providing the image string Base64 would help a lot! Either way, it follows: [TestMethod] public void como_decodificar_uma_imagem_em_base64() { var img =…