Questions tagged as 'asp.net'

1
answer

How to handle multiple forms on the same page.aspx?

I have a page.aspx that I have several forms. One of the forms I placed runat="server" and is of type Textbox , I was able to get form data and insert it into the database. But I wanted to do the same with the other forms, but I do not know h...
asked by 22.09.2014 / 16:02
1
answer

Load records from different tables as anonymous type entity framework

How can I load multiple table data in the Entity Framework? By RAW Query I get normal, but by the Entity Framework I'm not getting to the point. What do I need to select the last entry that contains a specific product (I will pass the...
asked by 29.08.2014 / 15:48
2
answers

Initialize object in Asp.Net MVC

I have a class Cidade that has the property Estado of type Estado : public class Cidade { [Key] public int ID { get; set; } [Required(ErrorMessage = "Campo Nome é obrigatório!")] public String Nome { get; s...
asked by 08.08.2014 / 19:09
1
answer

DropDownList and ListBox - Retrieving Values in Editing

In a CMS I have a DropDownList and a ListBox that work regularly in the registration field, but do not bring values in the edit field. View <div> Tipo de Curso<br /> @Html.DropDownList("TipoCurso", ViewDa...
asked by 23.10.2014 / 19:21
1
answer

Problem to go to server while loading tinyMCE component

When I insert information into the tinyMCE component and click on any button that submits the form, it has generated the error.    JavaScript run-time error:   Sys.WebForms.PageRequestManagerServerErrorException: An error has occurred   when...
asked by 23.10.2014 / 15:31
1
answer

HTTP Error 403 - Access denied

I have a website that uses Forms Authentication. When I test in debug or development server, in IIS7, it works fine. When I publish to the Production server, and press the Logout button, an HTTP 403 error occurs. The code I have for the logout b...
asked by 04.08.2014 / 15:30
1
answer

How to fill a textbox with a MySQL LIKE?

I'm trying to fill in the textbox, when the client is typing the initials of their name, the select goes into the bank and tries to fetch the information. However, I have no idea how to command I'll show you how my View is and my DAL. View...
asked by 25.09.2014 / 18:44
1
answer

Getting the contents of a JS variable in an ASP.NET C #

I have a function that takes the values of my inputs, and I want to take the values of the variable to my method to perform the insert. Does anyone have any tips on how to do this? function insert_veiculo() { var placa = $("#placa").val();...
asked by 23.09.2014 / 17:13
2
answers

Count selected CheckBox rows in a GridView

How do I select a table ( GridView ), write and in the other GridView show the amount of CheckBox chosen from the previous table in the current table?     
asked by 02.07.2014 / 15:54
2
answers

How to apply jQuery Validate rules to multiple fields at once?

I have a form in ASP.NET and I'm using jQuery Validate to apply validation rules in the fields. All my fields have a common rule ( required: true ) but I could not find a way to apply this to all at once. $('#form1').validate({ r...
asked by 03.07.2014 / 16:04