Posts by Harry • 3,805 points
339 posts
-
0
votes0
answers250
viewsQ: Changing the default apache port does not resolve on Windows 10?
I did the normal installation of xampp, after running xampp-control I’m having the errors: 10:20:09 [mysql] Error: MySQL shutdown unexpectedly. 10:20:09 [mysql] This may be due to a blocked port,…
-
1
votes1
answer91
viewsQ: Doubt with Ionic project generation
I have this environment installed: Nodejs = Node-V6.9.1-x86. msi npm = 3.10.8 jdk = jdk1.8.0_91 Cordova = 6.4.0 Ionic = 2.1.13 When entering cmd as administrator, I requested the creation of a…
-
0
votes1
answer784
viewsQ: Which version of nodejs to install Cordova Ionic 2.0.0-beta.3
There are many versions of nodejs, I noticed that if I have the latest version of nodejs, I can’t install an earlier version of Ionic, I tried after installing nodejs is enters the terminal as…
-
-1
votes1
answer73
viewsQ: Connection to Hibernate, java.lang.Nullpointerexception error
Connection with Ibernate I have an application where I realized all the necessary settings to run the project following the company manual, I happen to have an error in opening the same related to…
-
1
votes2
answers5281
viewsA: Backup sql server express database using . bat
To generate a backup using sql server express, it is possible using the script : USE T4FAT; GO BACKUP DATABASE T4FAT TO DISK = 'C:\Dropbox\MF-YCORN\BK_MF\T4FAT.Bak' WITH FORMAT, MEDIANAME =…
-
5
votes2
answers5281
viewsQ: Backup sql server express database using . bat
I created a file .bat with the content: USE T4FAT; GO BACKUP DATABASE T4FAT TO DISK = 'C:\Dropbox\MF-YCORN\BK_MF\T4FAT.Bak' WITH FORMAT, MEDIANAME = 'T4FATBackups', NAME = 'Full Backup of T4FAT'; GO…
-
1
votes0
answers87
viewsQ: How to expose wordpress for external access in Azure / IIS?
I have a site made in wordpress it is hosted on a cloud server with the following path: C:\xampp\htdocs\site.com.br To access it locally with the external IP I use so:…
-
1
votes1
answer125
viewsQ: How to send a special character to the view , Asp.net mvc?
I have a situation where I would like to position the page in the same position as the container I was in before sending the Get? Example : <!-- ==== contato ==== --> <div class="container"…
-
1
votes1
answer212
viewsQ: Problem with route routing Asp.net mvc
I have the following route, where I get the representative’s id: http://localhost:18568/Representative/Index/1 So it’s working, but I’d like to show the representative’s name…
-
3
votes1
answer78
viewsQ: Convert a Session to Boolean - Asp.net mvc?
I have in my system a Session that stores an information "S" or "N" Session["Administrador"] = retorno.ADMINISTRADOR; In the layout I want to convert it to Boolean @{ bool administrador =…
-
1
votes1
answer882
viewsA: How do I get the view id if I have Asp.net mvc?
The solution is: Following as reference RoutConfig defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } It was like this in the view: @{ var controller =…
-
1
votes1
answer882
viewsQ: How do I get the view id if I have Asp.net mvc?
I have the following situation, in my _Layout I am checking: @{ var controller = HttpContext.Current.Request.RequestContext.RouteData.Values["Controller"].ToString(); var view =…
-
0
votes0
answers66
viewsQ: Remove spaces from the image div using Canvas
I have a div, where I’m saving the content using canvas <div class="container-capa"> <img src=~/Content/imagemcartaovisita/@Session["NomeCapaCartao"] class="img-responsive" id="capa" alt=""…
-
0
votes1
answer392
viewsQ: How to define the image format when saving the file using "html2canvas"?
I am using canvas2image.js to turn a div into an image, everything works, the problem, need to define a format for the image at the time of saving, without it it is without a valid format. Example:…
-
2
votes1
answer566
viewsQ: Align image according to container using CSS
I have a banner registration that will have fixed sizes, so I want to add a qrcode that will be generated by the system in this image, along with the user photo. I have this situation :…
-
0
votes0
answers267
viewsQ: Image over another as a stamp using css
I have an image on the screen where I want to add a stamp, the problem is that as this image is inside a foreach, so if I get the image id, will this repeated. #carimbo-foto{ position:absolute;…
-
2
votes1
answer58
viewsA: Problem with File Upload to Asp.net mvc
The problem of the site not running was the fact of repeating httpRuntime which is created automatically within the system.web in this way: <httpRuntime targetFramework="4.5" /> To resolve I…
asp.net-mvcanswered Harry 3,805 -
0
votes1
answer58
viewsQ: Problem with File Upload to Asp.net mvc
Upload files through Fileupload has a maximum size of 4 MB, after searching I found here in stackoverflow that should add : <configuration> <system.web> <httpRuntime…
asp.net-mvcasked Harry 3,805 -
0
votes1
answer79
viewsQ: How to make a grouping in View Asp.net mv
I have a consultation with grouping with the following result: In my Controller I have : // GET public ActionResult Index() { //lista var tbuscar = new GaleriaVideoAplicacao(); var listar =…
asp.net-mvcasked Harry 3,805 -
0
votes0
answers28
viewsQ: Add a Dropdownlistfor with the result of Jquery Asp.net mvc
I want to know how to do this in the friendliest way possible. I have an Actionresult public ActionResult IncluirProspecto() { //retorna o cadastro classificação do prospecto var…
-
0
votes1
answer60
viewsQ: Web Api Asp.net mvc has any data limit reported on Route?
I have a web api, I’m trying to do an insertion in a user register, but I noticed that the number of parameters has a limit. If I try to add one more parameter it generates an error: [HttpPost]…
asp.net-mvcasked Harry 3,805 -
0
votes1
answer347
viewsQ: Return to View two tables using Homeviewmodel?
I have the next situation, in my Models folder, I have: public class HomeViewModel { public HomeViewModel() { // apenas para garantir que NUNCA seja nulo! Facilica código na view PreviewImages = new…
asp.net-mvcasked Harry 3,805 -
1
votes1
answer566
viewsQ: Listing the return of a Viewbag for View?
Following the instructions of this post (Return the data to the View using Json.net or javascript-Asp.net mvc) answered by Loudenvier was like this: Class: public class TB_RECEBE_IMAGENS { public…
-
0
votes1
answer1580
viewsQ: Return the data to the View using Json.net or javascript-Asp.net mvc
I need to return the data to fill in a script, public JsonResult BuscaImagens() { List<Object> resultado = new List<object>(); resultado.Add(new { IdImagem = 1, URL =…
-
1
votes1
answer189
viewsQ: Call Partial with Ienumerable within a page that has its Ienumerable Asp.net mvc?
In my layout I have an option where I show some notifications, to include in the layout a partial : @Html.Partial("_PartialNotificacoes") @model IEnumerable<Generico.Dominio.TB_NOTIFICACAO>…
-
1
votes3
answers860
viewsQ: Is it possible to call the same method in all Controller Asp.. net mvc without having to repeat the code?
In my Controller Home, I have this: /// <summary> /// Aqui estou trocando o idioma da página de acordo cam a seleção do /// usuário. /// </summary> /// public ActionResult…
-
1
votes1
answer27
viewsQ: How do I get the name that’s in Resources for the field names?
When I have an application using Resources, and on my screen I have a text for example: <section> <div id="banner"> <h1> Com você, aonde você for! <small> dicas sempre…
asp.net-mvcasked Harry 3,805 -
0
votes1
answer60
viewsQ: Doubt with customization of routes Asp.net mvc
I am studying about routes, I have a list and I want to show the name of the product in the url. The way it is shows only the name of the Category. Thanks public class Produto { public int ProdutoId…
asp.net-mvcasked Harry 3,805 -
1
votes2
answers1873
viewsQ: How to check if the query did not return data?
I have a query and would like to know if the same returned data. //classe aplicação- private List<tb_cabecalho> TransformaReaderEmListaObjetos(SqlDataReader reader) { var retornando = new…
-
3
votes1
answer471
viewsQ: Doubt with Time Asp.net mvc
I have a timer that I am testing and the same returns me an error: An Exception of type 'System.Web.Httpexception' occurred in System.Web.dll but was not handled in user code Additional information:…
-
4
votes1
answer3172
viewsQ: How to concatenate data into sql server
I have a field where the date and time is recorded: '2013-06-13 00:00:01' and '2013-06-13 11:59:59' I want to make an appointment by passing the date and a fixed time: CONVERT(VARCHAR(10),…
-
2
votes1
answer158
viewsQ: Doubt with Script to Generate Sql Server 2014 Database Backup
I’m doing it this way: USE CEP_2014_09; GO BACKUP DATABASE CEP_2014_09 TO DISK = 'C:\Backup_teste\CEP_2014_09.bak' WITH FORMAT, MEDIANAME = 'z_CEP_2014_09', NAME = 'Full Backup of CEP_2014_09'; GO…
sql-serverasked Harry 3,805 -
1
votes1
answer557
viewsQ: Is it possible to use Webbrowser on the web Forms Asp.net c#?
I’m looking to use Webbrowser on Asp.net C# My question and log into a website using it using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Web;…
-
1
votes1
answer104
viewsQ: Logging into a website using Webrequest
I need to log into a website using the Asp.net web Forms. I am doing so. How could I redirect to the page after logged in? protected void Button1_Click(object sender, EventArgs e) { var loginAddress…
-
0
votes1
answer116
viewsQ: Xamarin.Forms.Xaml.Xamlparseexception
I am creating a Xamarin project for study, I have a Masterpage and inside it I have the code below: I am compiling for Android and I see that the problem is in this line:…
-
0
votes5
answers2566
viewsA: Is it recommended to use Linq instead of SQL?
What I can say about LINQ, in my point of view it is only worth making records, simple. Even so I see no advantage. You see, Delphi has always been a very fast development language, and it does…
-
1
votes1
answer39
viewsQ: Is it possible to display more than 1 field information in @Html.Dropdownlistfor?
I would like to show more than 1 description No controlle //lista var tbuscar = new TituloPosAplicacao(); var listar = tbuscar.ListarTodos(); ViewBag.TituloPos = new SelectList(listar,…
asp.net-mvcasked Harry 3,805 -
0
votes2
answers939
viewsQ: How to get the value of an @Html.Textboxfor to an Input? Asp.net mvc
I want to take the value that is in @Html.Textboxfor is to add in the input <div class="col-md-3 form-group"> <label>Multiplicador 01:</label> <input class="form-control…
asp.net-mvcasked Harry 3,805 -
0
votes1
answer83
viewsA: Doubt with decimal numbers Asp.net mvc
I made the change to <div class="col-md-3 form-group"> <label>Multiplicador 01:</label> <input class="form-control input-sm" autocomplete="off" type="number"…
-
-1
votes1
answer83
viewsQ: Doubt with decimal numbers Asp.net mvc
I have a register, where I have some fields to enter values, but the same only accepting integer number, if add some value with decimal passes zero. Controller [Display(Name = "Valor Multiplicador…
-
0
votes1
answer163
viewsA: Doubt with if inside a Partial View Asp.net mvc
@if(Model.DESCRICAO03!= string.Empty) { <div class="col-md-3 form-group"> @Html.DisplayFor(c => Model.DESCRICAO03) | R$ @Html.DisplayFor(c => Model.VALOR03) @Html.TextBoxFor(c =>…
asp.net-mvcanswered Harry 3,805 -
0
votes1
answer163
viewsQ: Doubt with if inside a Partial View Asp.net mvc
In my view I have: @if (Model.Count() > 0) { foreach (var item in Model) { @Html.Partial("_FormularioPossibilidade", item) } } In Partial: @if (@Html.Displayfor(c => Model.DESCRICAO03) !=…
asp.net-mvcasked Harry 3,805 -
1
votes1
answer42
viewsQ: Doubt with Handleerror Asp.net mvc
I am searching for a way to avoid an error message when user happens enters for a page that needs a parameter: namespace Projeto.WEB.Controllers { public class ModalidadeController : Controller { //…
-
0
votes2
answers565
viewsQ: Doubt with using jquery.maskMoney with Asp.net mvc
I’m using it to form a value , but it’s not working, I have my partial view, this way: _Formularypossibility.cshtml @model Generico.Dominio.TB_POSSIBILIDADE <script type="text/javascript">…
-
1
votes1
answer31
viewsQ: Doubt with Routes in Asp.net mvc
When creating a Controller a : public ActionResult Index() { return View(); } But in this Controller, if you have a new Action if a parameter is required, if the user tries to open this link it will…
asp.net-mvcasked Harry 3,805 -
1
votes2
answers672
viewsQ: How to pass a Ienumerable Model to a Controller?
I have a page that correctly lists my records. Plus I have a Html.BeginForm for each line, @model IEnumerable<Generico.Dominio.TB_POSSIBILIDADE> @{ ViewBag.Title = ""; } @if (Model.Count()…
-
0
votes5
answers870
viewsQ: Doubt with foreach com group by Asp.net mvc
I have an appointment with a group. public List<TB_POSSIBILIDADE> ListarTodos(int id) { var strQuery = ""; strQuery += " select "; strQuery += " a.IDPOSSIBILIDADE,"; strQuery += "…
-
2
votes1
answer1204
viewsQ: Query with parameter passing in a Url.Action
I have a controller that gets an ID and makes a listing, plus on this page I have a button to return to the previous page, so as it also gets an id, so how could I pass this id dynamically? Here I…
-
0
votes1
answer270
viewsQ: How to remove Essentials Web extension from visual studio 2015?
I added this extension in Visual Studio 2015 to test, but it disables all native commands of Visual Studio, I wanted to remove this to never install again.…
-
0
votes2
answers1523
viewsQ: Doubt with DROP COLUMN sql server command
I tried to delete a column from a database, checked that there are restrictions. ALTER TABLE dbo.TB_ESTRACAO DROP COLUMN MULTIPLIER I get a message, how can I resolve this? I thank you! Message…