Posts by Mariana • 2,512 points
256 posts
-
1
votes1
answer103
viewsQ: Function does not work with Usesubmitbehavior="False"
I own that button: <asp:Button ID="Button11" runat="server" Text="Cancelar" CssClass="btn btn-danger btn-block" OnClick="Button11_Click" OnClientClick="javascript:return confirm('Deseja cancelar…
-
0
votes4
answers110
viewsQ: message : "div is not defined"
I have a function to hide a div and open the data with a href. It works in another form normally, but does not work in this form I need it to work, it returns me the following error: message : "div…
javascriptasked Mariana 2,512 -
1
votes1
answer56
viewsQ: Javascript function not working correctly
Good afternoon, I have the function below javascript to carry out the account when leaving the discount field: function calcular1() { String.prototype.formatMoney = function() { var v = this; if…
javascriptasked Mariana 2,512 -
1
votes1
answer731
viewsQ: Onchange function does not work
Good afternoon, I have a function that checks if the typed email exists in the bank, and if the email is valid. Follow the function: <script type = "text/javascript" > function…
-
0
votes2
answers386
viewsQ: Call function by passing field
I have a function, that when clicking on the dropdownlist, it checks and changes the mask of a field: function HideTextBox(ddlId) { var ControlName = document.getElementById(ddlId.id); if…
-
0
votes1
answer59
viewsQ: Load Fields through Dropdownlist
I am with a dropdownlist (cbrecipes) that is loaded through the Sqldatasource, where after loaded the of cbrecipes, it loads the cbplanos through the Sqldatasouce, follows the code: <div…
-
0
votes1
answer967
viewsQ: Uncaught Typeerror: birthday.split is not a Function
I have this javascript function that calculates age: <script type = "text/javascript" > function calcularIdade(aniversario) { var nascimento = aniversario.split("/"); var dataNascimento = new…
-
1
votes0
answers244
viewsQ: The specified value "2017-00-06" does not conform to the required format, "yyyy-MM-dd"
I have a field filled with date: <asp:TextBox ID="txtValidadeIni" runat="server" CssClass="form-control" MaxLength="10" type="date" name="date" pattern="[0-9]{2}\/[0-9]{2}\/[0-9]{4}$"…
-
1
votes0
answers390
viewsQ: Uncaught Typeerror: Cannot set Property 'value' of null
I have a Javascript function and it is returning me the following error: Uncaught Typeerror: Cannot set Property 'value' of null if (parseInt(data_inicio) < parseInt(dia_vencimento)) {…
javascriptasked Mariana 2,512 -
0
votes1
answer155
viewsQ: Function with if Javascript
Good afternoon, I have a function in javascript, and it does not enter the IF, the field txtTipodePlano is filled as "MONTHLY", it should enter, only it falls in Else, follows as I am doing: if…
-
3
votes1
answer12449
viewsQ: Javascript function Cannot read Property 'value' of null
I created a function in javascript, and it works when the field txtDiaVencing is filled, but not always this field will be filled, when it is not filled it returns me the following error: Cannot…
javascriptasked Mariana 2,512 -
4
votes1
answer247
viewsQ: Javascript function to add days, is adding up a month ahead
I’m with this Javascript function that’s adding up the days on a date, the days it sums up right, only instead of it adding up 24/10/2017 + 2 days = 26/10/2017, He plays a month forward, then he…
javascriptasked Mariana 2,512 -
0
votes1
answer101
viewsA: Conversion date javascript to sqlserver
I used this link as a reference. It was like this in the code: document.getElementById("<%= txtVencimentoC.ClientID %>").value = data.format("dd/MM/yyyy HH:mm:ss");…
-
0
votes1
answer101
viewsQ: Conversion date javascript to sqlserver
I am trying to save a field of type date in the SQLSERVER database, however it does not insert, is returning me the following error: Sequence not recognized as valid datetime. DateTime dat =…
-
0
votes1
answer78
viewsQ: Doubt sum day in Date Javascript
I am with this function in JS: now = new Date; var dia_atual = now.getDate(); var atual_data = new Date(document.getElementById("<%= txtDataInicio.ClientID %>").value); var dia_escolha =…
javascriptasked Mariana 2,512 -
2
votes0
answers122
viewsQ: Keep Tab Selected after Postback
I’m trying to keep the tab selected, after the postback, I’m trying to do it this way: <script type="text/javascript"> $(function () { $("#myTabs").tabs({ activate: function () { var…
-
1
votes1
answer136
viewsQ: File closure
I need to leave the file free, without getting in use, because it is blocking. Follow the code: StringWriter sw = new StringWriter(); XmlTextWriter tw = new XmlTextWriter(sw);…
-
0
votes1
answer192
viewsQ: Error trying to validate field with required="required"
I am trying to validate my fields with required="required", in various modals, it turns out that the page, has tabs, and when I try to use the required="required", nor does the modal…
-
1
votes0
answers147
viewsQ: Open Modal Code Behind
I own this modal and need to open it in code-Behind. I’m trying to JavaScript but it’s not working, follow the code: $(document).ready(function () { //seleciona os elementos a com atributo…
-
3
votes3
answers4572
viewsQ: Clear Field with Javascript
I am using this function below, to validate the date in all fields of the form date type, call the function in txt onBlur event. function VerificaData(digData) { var bissexto = 0; var data =…
javascriptasked Mariana 2,512 -
0
votes0
answers125
viewsQ: Doubt Javascript function generating Postback
I have this function in my system, which clears the fields, and updates the grid: $('.window .close').click(function (e) { //cancela o comportamento padrão do link e.preventDefault(); $('#mask,…
-
1
votes2
answers1534
viewsQ: Get value other than null javascript
I have a function in Javascript, and anyway I put it enters the function, I want it not enter if the value has null, because it is giving error. It only needs to enter the function if attachment is…
javascriptasked Mariana 2,512 -
0
votes1
answer378
viewsA: Message when it exceeds Fileupload size
Actually this example worked, it was missing only put the # here: $('#<%= Attachment.Clientid %>') and it worked.
-
0
votes1
answer378
viewsQ: Message when it exceeds Fileupload size
I’m trying to put a message for when it exceeds the file size in Fileupload, already arranged inside the web config, but always returns me the following error: Maximum request size exceeded. I saw…
-
2
votes1
answer363
viewsA: Demora ao Enviar Email com Anexo
I don’t understand why this happens only when some attachment is included in the email. However, I was able to resolve with proxy by placing the site address in advanced proxy options in "Do not use…
-
6
votes1
answer363
viewsQ: Demora ao Enviar Email com Anexo
I am trying to send an email with attachment, without attachment, the email sends quickly, without any kind of problem, but when I place the attachment, it takes a lot, matter of minutes, and hangs,…
-
1
votes1
answer737
viewsQ: Send email to multiple recipients
I have a class to send email, which works perfectly for only one recipient, but I need to send it to several people, I made a select that searches the necessary emails and puts the ";". But when I…
-
0
votes1
answer26
viewsQ: Send Email Configured Email
I would like to put in my application, sending email. But I would like it to be all configured, that the user could make the settings, before sending the email. For example: put in italics, bold,…
-
0
votes2
answers106
viewsA: Doubt Update Panel Gridview
I was able to solve by creating a function that when updated, goes back to the selected tab, follows how it was done: <script type="text/javascript"> function pageLoad() {…
-
0
votes2
answers106
viewsQ: Doubt Update Panel Gridview
I have a Gridview inside an Update Panel, but when I click on the Grid Gridview3_selectedindexchanged event, the event does not happen, I tried to put as direct Rigger in the selectedindexchanged…
-
0
votes2
answers3218
viewsQ: Clear Modal Bootstrap
How can I clean the modal data, sometimes the user enters the data but not saved, and if he opens the modal again, the data is there, I would like to clean this data, how should I proceed? Sometimes…
-
1
votes1
answer526
viewsQ: Validate textbox with date
I have a textbox field that I need to type the date, I would like to know how I can do for when the user is typing, to validate the field, and if it is not correct, inform the user. What is the best…
-
0
votes1
answer375
viewsQ: Clear Modal with Button Without Saving Data
I have a modal where I use it to include and change the data. I check if the field txtid is completed. If you have a change, it is not included. To fill in the fields the user needs to select the…
-
0
votes1
answer79
viewsQ: By clicking on DIV clear textbox
I have some DIV that open a modal, but I would like that when clicked, clear the textbox, here is where I have the DIV that when clicking opens the modal: <div class="link-box"> <a…
-
0
votes2
answers144
viewsA: Enter call Button in Google Chrome and Firefox
I managed to solve, with this code. Thank you to everyone who helped. if (!IsPostBack) { txtsenha.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) ||…
-
0
votes2
answers144
viewsQ: Enter call Button in Google Chrome and Firefox
I need that when the user presses the enter key, do the button click event. I’m doing it this way, but it’s not working in Google Chrome or firefox: if (!IsPostBack) {…
-
1
votes0
answers26
viewsQ: Doubt Headerfixed Gridview
I am using this code to leave the top of Gridview fixed, however it is not Responsive, and a little short to fully fill the grid. <script language="javascript"> $(document).ready(function () {…
-
0
votes2
answers801
viewsQ: Update Textbox without Postback
I need to update the change textbox when the textbox receives customer value, is filled, I use this function inside the textbox receive customer value in the event Textchanged: protected void…
-
0
votes2
answers1397
viewsA: Adding multiple Gridview lines
I managed to solve, I did it this way: if (Session["dt1"] != null) { dt1 = (DataTable)Session["dt1"]; } else { dt1.Columns.Add("ID"); dt1.Columns.Add("Nome"); dt1.Columns.Add("Quantidade");…
-
1
votes2
answers1397
viewsQ: Adding multiple Gridview lines
I’m trying to include several lines in a Gridview, but it doesn’t add the lines, it always replaces the first. I would like to know how to make it add several lines, and not replacing the first.…
-
4
votes1
answer18492
viewsQ: Cannot read Property 'addeventlistener' of null
I’m trying to use in my project the scrollleft with the button, it works normal on jsfiddle But when I put in my project it returns me this error: Uncaught Typeerror: Cannot read Property…
javascriptasked Mariana 2,512 -
0
votes1
answer193
viewsQ: Scrollleft Javascript
I set the system, for when the screen is smaller, format the grid, to have horizontal scroll bar, is working perfectly. But beyond the scroll bar, I wanted a button or a link so that when the user…
-
0
votes0
answers191
views -
1
votes1
answer273
viewsA: Div Para Imprimir
I got it this way: GridSuprimento.DataSource = gridCarregaSuprimento(); GridSuprimento.AllowPaging = false; GridSuprimento.DataBind(); GridRetirada.DataSource = gridCarregaRetirada();…
javascriptanswered Mariana 2,512 -
0
votes3
answers107
viewsA: Print Items Web Page
I managed to solve the problem by making the configuration this way: sb.Append("<div ID='imprimir' align='Center' style='font-size:25px;'>Relatório de Planos</div>");…
-
0
votes3
answers107
viewsA: Print Items Web Page
I managed to settle by doing this way: GridSuprimento.DataSource = gridCarregaSuprimento(); GridSuprimento.AllowPaging = false; GridSuprimento.DataBind(); GridRetirada.DataSource =…
-
0
votes3
answers107
viewsQ: Print Items Web Page
I would like to know how to print a web page, only I would not like to print the whole page, I would like you to print the title, and some grids, which are formatted (it would be necessary to print…
-
1
votes2
answers321
viewsQ: Show Image before saving to bank
I’m trying to show an image, before saving it in the bank, in an image field. The function I am using is attached: <script type="text/javascript"> function mostraImagem() { var imagem =…
-
1
votes1
answer273
viewsQ: Div Para Imprimir
I am using a JS code that works very well to print: function printdiv(divID) { var headstr = "<html><head><title></title></head><body>"; var footstr =…
javascriptasked Mariana 2,512 -
1
votes1
answer819
viewsA: Open Modal by code-Behind
I was able to solve the problem, which was happening due to the reference to jquery after bootstrap, I did it backwards and it worked. <script type="text/javascript"…