Questions tagged as 'asp.net'

1
answer

Error while changing application template C # asp.net

I needed to change an application made some time ago in C # asp.net. I added the column in the database that needed and when I add the corresponding field in the model, when running the application it no longer identifies me as a user. (The appl...
asked by 22.08.2014 / 21:18
1
answer

"Node is read only" error when trying to encrypt XML

I'm trying to encrypt using XML, while running it returns this error:    the inner text of document node is read only and can not be set! The error happens on line xmlDadosCartao.InnerText = StringEncritacao.Decriptacao(dadoEncriptado)...
asked by 24.04.2014 / 19:36
1
answer

DropDownList with Invalid SelectedValue because it does not exist in the list of items

I can not understand what's wrong. DropDown is in a Formview of a user control. The dropDown binds to a database table that should return 2 id and name values FormView <td><asp:DropDownList width="350px" ID="EntregaRegiaoDropDown...
asked by 25.04.2014 / 11:20
1
answer

Mapping with Entity Framework

Good afternoon, When analyzing a code I see in the mapping the following line: this.HasKey(t => t.IdEstudante); Understand what you do in practice but not theoretically, refers to the object but explicitly what this parameter is sayin...
asked by 03.01.2019 / 19:12
1
answer

How to check if one control is the child of another? "Control.IsChildOf"

I have 3 panels: <asp:Panel ID="ParentPanel" runat="server"> <asp:Panel ID="AnnoyingPanel" runat="server"> <asp:Panel ID="P" runat="server"> </asp:Panel> </asp:Panel> </asp:Panel>...
asked by 22.12.2013 / 01:40
1
answer

How to import MDB file read and write in SQL

I'm trying to import an MDB file, read this file and write to SQL. I am already able to import the file and read, I just can not even get this data and write to SQL. If you notice the code I even managed to show the data in a List. Here is...
asked by 07.02.2014 / 12:33
1
answer

JavaScript Function Error Frame

asked by 04.02.2014 / 19:11
1
answer

Create DropDownList with ViewBag

I'm getting the following error:    InvalidOperationException: There is no ViewData item of type 'IEnumerable' that has the 'Office' key. Here I look for the database: public IEnumerable<SelectListItem> GetAllOfficeAsync(Guid user...
asked by 01.11.2018 / 14:43
0
answers

Use 2 models in a View, but separate them in the form submission

I'm getting the following error:    'AddEmployeeViewModel' does not contain a definition for 'OfficeEmployee' and in the extension method 'OfficeEmployee' accepting the first argument of type 'AddEmployeeViewModel' could be found > Inside...
asked by 01.11.2018 / 18:18
1
answer

Submit of the form inside a modal view me redirects to the view page

I have an MVC project. A View Home / Index loads View Users / Create as a bootstrap modal. However, my <input type="submit" /> redirects me to the Users / Create view address. I wanted the application to remain in the View Ho...
asked by 01.10.2018 / 15:39