Posts by Filipe Oliveira • 2,655 points
60 posts
-
0
votes2
answers5213
viewsA: Consume web-service in ASP.NET MVC
Do the following, right-click the project and choose the option Adicionar referência de serviço. Paste the WS URL, change the namespace and press OK.
-
6
votes2
answers26381
viewsQ: Problem connecting to SQL Server 2012 database on IIS
I cannot run my system queries on IIS, when running in Visual Studio I can get the result easily. The mistake I get when I try to do something is this::…
-
1
votes1
answer655
viewsA: Updating fancybox size dynamically
You can do it that way: $("#seuBotao").click(function () { parent.$fancybox.update(); }); Remembering that for this to work properly you need that in the Fancybox call the attribute autosize be it…
-
8
votes1
answer492
viewsQ: How to get the generic type entity type from the top interface?
I have the following situation: public class MinhaClasse : IMinhaClasse<Carro> { //... } public static void Main(string[] args) { var foo = new MinhaClasse(); } It is possible to get the…
-
0
votes2
answers65
viewsA: Consulting type passed via generic method
You can use Typeof() thus: Type seuTipo = typeof(TEntidade);
-
0
votes2
answers437
viewsA: Associate a controller to an existing view
You can set the return of an Action to the desired View: public ActionResult NomeAction(SeuModel seuModel) { // Seu código aqui return View("SuaView", seuModel); } Besides in your View you can also…
asp.net-mvc-5answered Filipe Oliveira 2,655 -
1
votes7
answers3980
viewsA: How to check if there are numbers inside an input with Javascript?
You can use this way too. $(document).ready(function(){ $("#idInputNome").keypress(function (e) { var valor = String.fromCharCode(e.which); return !$.isNumeric(valor) || (e.keyCode == 46 ||…
javascriptanswered Filipe Oliveira 2,655 -
0
votes2
answers500
viewsA: Extend a specific jQuery method in ASP.NET MVC jquery.unobtrusive-ajax.js
I would refer you to create a . js file for your website. No $(Document). ready(Function(){ ... }). You can use this: $(document).ajaxStart(function () { //Seu código quando a requisição inicia });…
-
0
votes2
answers3428
viewsA: Take the value of an input type=text and play in a variable
The @gypsy-Morrison-Mendez response is correct, but you can also use a Helper: @Html.Textbox("fieldDoForm")
-
1
votes1
answer82
viewsQ: Does ASMX Web Service contain an event to end the request?
I would like to make sure that at the end of all requests to my Web Service the Savechanges runs. Someone could help me?