Posts by Hans Miller • 842 points
44 posts
-
0
votes1
answer39
viewsQ: how to connect to Phpmyadm database?
he make that mistake here: Uncaught Error: Call to Undefined Function mysql_connect() I can’t connect to the database.…
-
2
votes2
answers2833
viewsQ: How to upload . txt file and save to a directory using c# net mvc?
I would like to upload text files where I select N files. txt and saved in a directory I specified in the application; I made an example that was on the internet but could not get the files in my…
-
0
votes1
answer207
viewsQ: I cannot enter the Datetime fields in the sql database
I can’t enter in the fields dateCreation and dataRefMovimento in the sql database private Contexto contexto; public void Inserir(RegCabecalho regCabecalho) { var strQuery = ""; strQuery += " INSERT…
-
4
votes1
answer606
viewsQ: PDF formatting
I would like to format the sizes of your cells and your text for PDF export. protected void ExportPDF() { int colCount = _gvConsultaRelatorio.Columns.Count - 1; PdfPTable table = new…
-
1
votes2
answers2579
viewsQ: Get last record of each id in sql query on condition
I’m having trouble getting the last record of each id in an SQL Server table. select c.Serial,v.Descricao,v.Placa,v.Cor,v.AnoFabricacao,v.Chassi c.DataHora,c.Endereco from [CheckPoint] c inner join…
-
0
votes1
answer475
viewsQ: How to add the address to the infowindow Gmaps v3?
I have a collection of dots where I see all of them on the map! would like to add an infowindow "balloon" to each of them informing the full address of each coordinate. function initialize() { var…
-
1
votes1
answer505
viewsQ: how to add a simple polylines to the Map Api Gmaps v3?
I cannot visualize the line on the map the code is apparently correct not break in any lines ,when viewed by the console . no longer visualize the line. function initialize() { var latlng = new…
-
5
votes1
answer2673
viewsQ: How to show multiple bookmarks in Google Map API v3?
I cannot mark several points on the map. They could check if there is something wrong with the code? var map; var idInfoBoxAberto; var infoBox = []; var marker ; var geocoder; function initialize()…
-
7
votes1
answer1432
viewsQ: How to get a List<string> C# and send to a JS variable?
I am developing in an Asp.net C# project and I don’t know how to get on the page a list of strings of my class. How do I get these values? Code I’ve been using. var pontos=…
-
1
votes1
answer282
viewsQ: Get query result by converting Date Time field to local Time zone
I have a table in the sql server database that has the following Datahora field where I have data included in this following format: DataHora 2015-04-20 17:43:04.000 this time is not in the format…
-
0
votes2
answers1574
viewsQ: How to get date and time in different columns through a select Sql server?
I have a problem need to filter a query under the following conditions : I have the Data field and I have the time field both in varchar , when I try to make the query like this: ex: select Serial,…
-
2
votes1
answer768
viewsQ: How to send an object ID in jQuery autocomplete?
I need the ID of the selected item in the jquery Autocomplete, when selecting the item by autocomplete, send the ID of the selected item to the form. On the label Text when sending the item ID via…
-
0
votes1
answer505
viewsQ: How to view several pre-selected dates in the jquery datepicker ui?
My code does not show the dates selected in the calendar ,see I have an array of dates but does not show. <script src="~/Scripts/jquery.js"></script> <script…
-
3
votes2
answers201
viewsQ: How do I return an existing item in my enumerable via Contains?
I have an enumerable, and I intend to query through a code per parameter. if the enumerable "Contains" Code, then it will return to me all items that are with this Code. See I was trying to do it…
-
0
votes0
answers346
viewsQ: How to click on a map an address from a form?
How to show on the map the address of one of a form ? <table> <tr> <td> @Html.Label("Cep: ") <br /> @Html.TextBoxFor(e => e.CEP, new { maxlength = "9", id = "Cep", name =…
-
2
votes1
answer314
viewsQ: How to add items from a IENUMERABLE in . Net MVC into a Jquery array?
How do I add items from a IEnumerable<T> in an array JavaScript? View: @using Colecao.ViewModels @model ConfiguracoesViewModel @foreach (var equipamento in @Model.Equipamentos) { //Gostaria de…
-
5
votes2
answers19768
viewsQ: How to print a page directly, without browser dialog box, using Javascript?
How to print, that is, send a page directly to physical print, without displaying the browser dialog box before? I see many examples on the internet but everyone asks for print confirmation.…
-
1
votes3
answers1378
viewsQ: Datetime field display in View with hours, minutes, day/month/year?
How to manipulate the datetime and show in view in the following format? HH:MM dd/MM/aaaa
-
4
votes1
answer1208
viewsQ: How to print a View to a standard printer using Javascript or c#?
I need to print the contents of a view on the default printer. How can I do this using c# or javascript?
-
1
votes1
answer111
viewsQ: How to always keep 1 record in BD after inserting with entityframework?
I am developing in . NET MVC using Entity framework, how do I save a data by consulting if there is record or not in the table? 1.Query whether or not there is any data in the table 2.If you have…
-
0
votes1
answer289
viewsQ: How to map a table without PK with entityframework?
Guys! in my project ,I am having difficulties in mapping a table without Primary key(PK),The application is breaking,when I implement the table in the MAP of my project. public class Configuracoes {…
-
0
votes1
answer276
viewsQ: How to get values to popular a dropdown dynamically
I am developing in . NET MVC and in my application, I have a form that registers people via Ajax. This registered element should appear in a list dropdown, it should appear dynamically without…
-
2
votes5
answers17869
viewsQ: How to align the Left fields of an Html table?
I cannot align my Labels (Razor) to the left of my html table with Visual Studio! <table cellspacing="6"> <tr > <td > @Html.Label("Cep: ") </td> <td >…
-
1
votes4
answers57975
viewsQ: How to clear html form fields?
javascript variables that reference each field of my form var checkbox = $('input:checkbox[name^=check]:checked'); var categoriaVeiculo = $("#codCategoriaVeiculo").val(); var descricaoVeiculo =…
-
3
votes1
answer20585
viewsQ: How to get current user location through the google maps API?
I am new to the development with this API and would like to show on the map that I am developing the current user position. My code: <script type="text/javascript"…
-
2
votes1
answer2976
viewsQ: How to clear form data after saving to database? via Ajax . net mvc
after saving an object in the database, the view continues to show the fields filled! <fieldset> <legend>Endereco:</legend> @Html.ValidationSummary() @Html.HiddenFor(e =>…
-
2
votes3
answers4590
viewsQ: How to create dropdownlist Razor in . net mvc via ajax?
I would like to dynamically load my dropdownlist without submitting the page! my project is in architecture . net mvc ! @Html.Label("Categoria do Veiculo: ") @Html.DropDownListFor(v =>…
-
0
votes1
answer301
viewsQ: How to get value from a Radiobutton field in JS?
I can’t get the value of my field RadioButton @Html.Label("Ativo") @Html.RadioButtonFor(v => v.Ativo,"S", new { name="ativo"}) @Html.Label("Inativo") @Html.RadioButtonFor(v => v.Ativo,"N", new…
-
1
votes1
answer1642
viewsQ: How to return to View items checked by Checkbox?
I am developing a project in ASP.net MVC. In my registration form, I have a checkbox where I select the items I would like to add in the BD. My edit form, I have to get these checked items and show…
-
0
votes1
answer129
viewsQ: Datepicker Jqueryui error in View
In my project . Net MVC, I can’t get results on the Javascript view @using Forte.Rastreador.ViewModels @model SuperViewModel <script src="~/Scripts/jquery-ui-1.8.24.min.js"></script>…
-
2
votes3
answers134
viewsQ: "Undefined is not a Function" when calling "tabs"
I have an error in my JS function, when I see through the browser, shows the following message: Undefined is not a Function Please any hint regarding this error? <link rel="stylesheet"…
-
5
votes3
answers612
viewsQ: How to leave empty textbox after an Ajax request via Post?
I have a registration application in . net MVC and I am using Ajax to send the contents of the Forms For my Action that registers, when save the value of the fields, in my view the values are still…
-
3
votes3
answers1606
viewsQ: How to request via post for action by AJAX?
I cannot access my action through ajax request: <legend>Procedimento:</legend> @Html.HiddenFor(p => p.CodigoProcedimento, new { id = "codProcedimento", name = "codProcedimento" })…
-
1
votes1
answer513
viewsQ: How to load a partialview for an AJAX request?
I can’t carry a partialview in a div ! <fieldset> <legend>Contato:</legend> @Html.Label("Tipo Contato: ") @Html.DropDownListFor(t => t.CodTipoContato, Model.TipoContatoList, new…
-
2
votes1
answer440
viewsQ: How to get the value of a UF list through the ZIP Code query via Ajax?
I am developing an address form where the user type the zip code and automatically fills other fields, via Ajax. The problem is I can’t get the value of UF, which in my case is a list. my example…
-
6
votes4
answers4566
viewsQ: How do I update my data in the table using the Entityframework?
var contactado = ContactadoRepositorio.ObterListaContactadoPorCodigo(procedimentoVM.CodContactadoPessoa); //obtenho o contactado pelo id obtido; foreach (var c in contactado) { var contactadoPessoa…
-
0
votes1
answer914
viewsQ: How to maintain screen positioning after postback?
I have a very extensive html form with several entries , after making the postback my page is redirected to the top of the form, postback return to the page I left ?
-
0
votes1
answer1699
viewsQ: How to save the same object in the database using entityFramework . net MVC?
I need to update a table in the database using entityFramework, because when I update a value of a field and have it saved ,. Please someone has a way to fix this?? grateful…
-
0
votes1
answer347
viewsQ: Popular a List with database data accessed by Entityframework
As popular as mine List, in C#, with the data stored in the database accessed through the Entityframework? Current code: public static IEnumerable<Contato> GetAll() { return new…
-
1
votes1
answer86
viewsQ: how to get an id of a model in a view via a link?
I have a link that calls a function JS (POPUP), in this popup I have a registration FORM, to validate all parameters of my form, I need to get the ID of My Model that is in the Link view I am not…
-
-1
votes1
answer74
viewsQ: Persist in my database values passed by a Dropdown in my html?
I have a dropdownlist with all the states of Brazil. For example: public IEnumerable<SelectListItem> ObterUF() { return IncluirSelecioneNoDropDown(new List<SelectListItem>() { new…
-
-1
votes1
answer167
viewsQ: How do I get the value of the parameter sent by a view and persist in the database?
When I set mine action register address, she picks up the codigoCliente, parameter master/CadastrarEndereco?codigoCliente=1011. How to persist the chosen customer’s address? My actions: public…
-
-2
votes1
answer69
viewsQ: How to get value from an action property?
How do I get a value from a property action?
asp.net-mvcasked Hans Miller 842 -
2
votes1
answer566
viewsQ: Get values through get method parameters
I have a action that sends by parameters the codCliente: //master/CadastrarEndereco?codigoCliente=1011 How do I get that value codigoClientein my controller so I can persist the value in the BD?…