Questions tagged as 'asp.net'

2
answers

Request Validation asp.net

I have a TextBox that uses the ckeditor text editor. When I run the method to save the information, it gives an error    A potentially dangerous Request.Form value was detected from the client (ctl00 $ ContentPlaceHolder1 $ fTxtConteudo=" sd...
asked by 08.07.2015 / 16:49
1
answer

CheckBox checked as string

I have a string in the format ["0,1,0,1,1,0,1,0,0"]. Where 1 represents checked and 0 is not checked. I also have a grid where I have a checkbox in the first column. I need to checkboxes according to my string. I tried at first using JavaScript,...
asked by 08.07.2015 / 23:43
1
answer

Problem with CSS and ASP Button

I am trying to put a ASP button with a certain class CSS but I am not able to put the ASP button working according to CSS . If the button is HTML it gives no problem. CSS Code : .images_1_of_5 .button{...
asked by 23.06.2015 / 19:17
1
answer

How to put an OnClick event by calling a javascript function on a Link inside a GRIDVIEW in ASP.NET?

I have a form containing a button that will open a query popup. In this popup, I make a query passing as parameters name and cpf where the query returns, creates a gridview where each record contains a link that will return the data to a java sc...
asked by 21.06.2015 / 23:07
2
answers

How to make room in the text of the dimly created checkboxlist

I'm trying to give a space between the square of the checkboxlist and the text, but it's not working, I followed the code. <div class="form-group"> <asp:Label ID="Label2" Text="" runat="server" CssClass="col-sm-2 control...
asked by 16.09.2015 / 13:30
1
answer

Write a code on the magnetic stripe

I have an Evolis Dualys 3 printer that has the option to record a code on the magnetic stripe of the card, by the third party software the recording was successful, now I would like to make this recording by my application, someone already did s...
asked by 19.05.2015 / 15:55
1
answer

How to use event dynamically created buttons to redirect to another ASP.NET page?

I'm trying to call the event from buttons that were created dynamically with a foreach public void adicionarComanda() { List<Comanda> lc = ControllerComanda.getComanda(); foreach (Comanda comanda in lc) { Button bt =...
asked by 26.05.2015 / 04:05
1
answer

Show success / error message after postback

I have the following functions on my page, when I call them via javascript, they work perfectly: function msgSucesso(msg) { toastr.success(msg); } function msgErro(msg) { toastr.error(msg); } So, I have a button on my aspx page tha...
asked by 30.05.2015 / 20:52
1
answer

What to do for the javascript function n give reload on page

I have a javascript function that runs on the onclick of the new button and creates two HTML objects. The problem is that at the end of the function, the page is doing reload and deleting what was created. What can be done to prevent this and th...
asked by 05.07.2015 / 06:08
1
answer

How to open pdf bytes in a new tab in the browser

I have the bytes of a report in pdf but I just found how to download it. byte[] bytes = Relatorio.LocalReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamIds, out warnings); HttpResponse response = Ht...
asked by 09.06.2015 / 15:13