Questions tagged as 'webforms'

1
answer

ASP.NET EntityFraord - Grid with Paging

I'm building an asp.net application using entity framwork. To load the grid I use the following instructions: var lista = entity.Usuario.ToList().OrderBy(x=>x.nome); grid.DataSource = lista; grid.DataBind(); But w...
asked by 09.05.2018 / 17:07
1
answer

How to do database transaction in WebForms?

I have an action on a .aspx file that runs multiple inserts in the database. I need that, in case something fails, the operation is canceled, since one record will depend on the other. I usually use a transaction function to do this in...
asked by 02.05.2018 / 21:37
1
answer

Difference between a master page and web form

I would like to know the differences between a master page and a web form, as I need to create a web page and I want to know which one is most advised!     
asked by 20.04.2018 / 11:07
1
answer

Is there any way to extend a main file in Webforms?

I'm servicing an old application that uses Web Forms. This application uses Iframe to make a kind of layout reuse. The problem is that while doing this, a lot of code is being repeated, and I would like a solution for that. I come f...
asked by 09.03.2018 / 13:13
1
answer

Onchange function does not work

Good afternoon, I have a function that verifies if the typed email exists in the database, and if the email is valid. Here is the function: <script type = "text/javascript" > function validateEmail(emailField) { var reg = /^(...
asked by 12.12.2017 / 14:53
1
answer

Lock typing TextBox field with CalendarExtender

Good afternoon, I need to block typing the date in an asp.net TextBox field. It can only receive the date selected in the calenderExtender component applied to the TextBox. Would anyone have some way via front end to block typing?     
asked by 23.01.2018 / 20:11
1
answer

Convert file to Byte Array [duplicate]

I am trying to convert a received file in FileUpload (ASP.NET tool) to an array and then the array to a string . But when trying to use Encoding Visual Studio accuses an error saying that this class only accepts a string...
asked by 27.11.2017 / 15:44
1
answer

Pass Aspx page values to Aspx.cs

I have an Aspx page the following code that loads a list of items. It is working, the list is displayed normally. <table width="100%" class="table table-striped"> <tr> <th>Id</th> <th>Nome</th> <th>CPF...
asked by 23.12.2017 / 21:38
1
answer

Why does each browser interpret / format badly formatted HTML differently from the rest?

This week I came across a bug on a system. This system was developed in Asp Web Forms and on a given page has a input that is as hidden . When I made a Post, I noticed that in Chrome and Firefox the value of this input w...
asked by 16.11.2017 / 13:18
1
answer

Deserialize Image in ASP.NET WebForm

I have a question about the deserialization of an image in webforms, I am working with Oracle Database which is my context and using the entity framework for image I am using BLOB, I was able to serialize and commit in bd, but not I can deserial...
asked by 24.11.2017 / 13:07