Questions tagged as 'asp.net'

1
answer

Collect View data for the controler

I would like to know how I can collect a View data, and I'm already using @model System.data.dataset. @model System.Data.DataSet @{ ViewBag.Title = "CadastroPorto"; } I need to collect the data that will be typed in this part below when...
asked by 02.07.2017 / 23:20
1
answer

Validate textbox with date

I have a textbox field that I need to enter the date, I would like to know how I can do when the user is typing, validate the field, and if it is not correct, inform the user. What is the best way to do this validation? And how to do it?     
asked by 16.06.2017 / 15:13
1
answer

The input string was not in a correct format

When calling the method below comes the message    the input string was not in a correct format private void SubmitData() { try { string user = usuario.Text; string pass = sen...
asked by 15.06.2017 / 15:43
1
answer

Field validation via jQuery correctly

I have the following validation for the TextBox of justification. But even returning the message and clicking the OK button the system validates the deletion. That's right, you should return the message and focus on the justification f...
asked by 18.08.2017 / 16:02
4
answers

Create method that prevents code repetition in ASP.NET with SQL

I'm building a website in ASP.NET, using C #. I want to 'link' the site information (text and images) to a SQL Server database. That part of the connection I've been able to do successfully. However, I have to repeat BD connection encoding...
asked by 15.05.2017 / 16:10
2
answers

How to know which button called the page?

I have a page with 3 buttons that call the same page and wanted to know if you have how to see which of the 3 buttons called the page. These are Web Forms buttons. What I did was put them to add a value in a hidden field to know on the ot...
asked by 27.02.2017 / 19:17
2
answers

ASP.net JavaScript does not recognize the TextArea if it has a Tag runat="server"

I have a problem with my JavaScript. I am using a code that server to do the numbering in a TextArea when the user gives Enter, however, if that TextArea has the tag runat="server" Javascript does not recognize the box and simply d...
asked by 21.06.2017 / 16:51
2
answers

Return Javascript before finalizing processing

I have this method: var getCardToken = function () { var passa = true; var code = false; var acardNumber= $("#ContentPlaceHolder1_txtNmCartao").val(); var acvv= $("#ContentPlaceHolder1_txtCodigoDeSeguranca").val(); var aex...
asked by 14.02.2017 / 14:35
2
answers

AD Group Restrictions

I am currently developing a WebAPP where I have already been able to have the login confirm the credentials of the user in AD. Basically the login already works correctly. My goal now is to create 1 group in AD and specify that only those in...
asked by 03.02.2017 / 12:20
2
answers

Which event executes first, javascript or asp.net?

I have a method in javascript on a button, which is triggered with the click of the button, but this same button triggers an ASP.NET event. The js event performs a method that processes a value and this value I play inside an asp (). The asp eve...
asked by 01.02.2017 / 20:25