Questions tagged as 'asp.net'

1
answer

How to consume a WebService "asmx" via Jquery Ajax

I have created a button that calls the method findCompany which in turn is made a Ajax request to consume a Web Service Asxm . Why does Ajax not consume the Web Service? <asp:Button ID="btnPesquisar" runat="server"...
asked by 28.09.2014 / 01:41
3
answers

Format output type double with dot instead of comma

I have a collection of coordinates to popular repeater, with city name, latitude and longitude. .aspx <form id="form1" runat="server"> <div id="repetidor"> var markers = [ <asp:Repeater ID="rptMar...
asked by 22.09.2016 / 18:37
2
answers

Multiple projects in MVC and WebAPI

I'm looking for a project template that involves multiple MVC and WebAPI projects. In the solution I'm thinking of designing (if possible) a content management solution for multiple clients and I'm thinking this way: I wanted to have a Pai pr...
asked by 08.02.2016 / 21:45
1
answer

Razor C # make list and sublist with ListString (originally "how to check if an HTML element already exists")

I need to know if an HTML element already exists, in my loop, if it exists I use it, if it does not exist I'll create one. How would you do this within a @foreach (var item in Model){ ... } Following the comment of Gypsy, as it is not po...
asked by 13.05.2015 / 01:28
1
answer

Session and ViewState Comparison with String

I recently received the following Visual Studio warning in code similar to the image: Iunderstandwhathewantedtotellme:thereisareferencecomparisonofthetwovalues(ofthesessionandofthe"test" string), and this will always return false , sin...
asked by 08.03.2017 / 18:20
2
answers

DropDownList Quantity Items

Good morning, I'm using dropdownlist in asp.net to load some data coming from the bank, however I do not know the amount that will be shown, because it depends on the fill in the bank. I'd like to show only a certain amount of i...
asked by 12.04.2017 / 15:18
2
answers

EF6 Code First Relationship between entities

I am trying to create a Condominium Data Model in ASP.NET with SQL Server. I stumbled upon the creation of the proprietario(1) relation with fracao(many) . The error returned is:    The INSERT statement conflicted with the FOR...
asked by 31.01.2014 / 13:14
1
answer

Problem Returning Items in a Relationship in the Entity Framework

Speak Personal All right!? I'm going through the following problem in the entity framework that I think is some error I'm having at the time of relating two classes: I have a class called: RequestPathPathIndexPath that is related to a clas...
asked by 04.08.2016 / 02:54
1
answer

TFS Api - Error in query with DateTime

I'm trying to make a query using the TFS API where I need to get all the WorkItems that have been edited from a certain date, however I get the following error:   An unhandled exception of type   'Microsoft.TeamFoundation.WorkItemTracking.Cli...
asked by 09.11.2015 / 17:32
1
answer

Webbrowser with input type file

Friends, I'm building a virtual robot to work on a particular site. In a certain action I need to upload a file to the site, but when the robot clicks the <input type="file"> button it logically opens a modal window of Windows Ex...
asked by 16.03.2015 / 13:08